sgl

view tests/tests-makefile @ 5:0570e27e5ebc

pretty much done with the basic functionality and GLX shit
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 13 May 2011 07:49:47 +0300
parents
children bf34fa677960
line source
1 name = $(shell pwd | sed 's/.*\///')
2 bin = $(name)
3 src = $(wildcard *.c)
4 obj = $(src:.c=.o)
6 sgldir = ../..
8 CC = gcc
9 CFLAGS = -pedantic -Wall -g -I$(sgldir)/include
10 LDFLAGS = -L. -Wl,-rpath=. -lsgl -lGL -lGLU -lm
12 $(bin): $(obj) libsgl.so
13 $(CC) -o $@ $(obj) $(LDFLAGS)
15 libsgl.so: $(sgldir)/libsgl.so.0.0
16 ln -s $< $@.0
17 ln -s $< $@
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)