sgl

view tests/tests-makefile @ 11:b925dabd4e96

fixed whitespace stripping from link-with options
author John Tsiombikas <nuclear@siggraph.org>
date Sat, 14 May 2011 09:06:46 +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)