sgl

view tests/tests-makefile @ 9:5efd62ff354a

- configure now also heeds mac-framework: options in modules - cleaned up the generated module.c a bit
author John Tsiombikas <nuclear@siggraph.org>
date Sat, 14 May 2011 08:58:49 +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)