sgl
view tests/tests-makefile @ 6:0cb438c86b98
X11 sounds about ready
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 13 May 2011 09:44:21 +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)