sgl

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/tests-makefile	Fri May 13 07:49:47 2011 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +name = $(shell pwd | sed 's/.*\///')
     1.5 +bin = $(name)
     1.6 +src = $(wildcard *.c)
     1.7 +obj = $(src:.c=.o)
     1.8 +
     1.9 +sgldir = ../..
    1.10 +
    1.11 +CC = gcc
    1.12 +CFLAGS = -pedantic -Wall -g -I$(sgldir)/include
    1.13 +LDFLAGS = -L. -Wl,-rpath=. -lsgl -lGL -lGLU -lm
    1.14 +
    1.15 +$(bin): $(obj) libsgl.so
    1.16 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.17 +
    1.18 +libsgl.so: $(sgldir)/libsgl.so.0.0
    1.19 +	ln -s $< $@.0
    1.20 +	ln -s $< $@
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin)