sgl
annotate tests/tests-makefile @ 8:0b07dd867b2f
added empty-file warning silencers in wsys_* files
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 14 May 2011 08:33:41 +0300 |
parents | |
children | bf34fa677960 |
rev | line source |
---|---|
nuclear@5 | 1 name = $(shell pwd | sed 's/.*\///') |
nuclear@5 | 2 bin = $(name) |
nuclear@5 | 3 src = $(wildcard *.c) |
nuclear@5 | 4 obj = $(src:.c=.o) |
nuclear@5 | 5 |
nuclear@5 | 6 sgldir = ../.. |
nuclear@5 | 7 |
nuclear@5 | 8 CC = gcc |
nuclear@5 | 9 CFLAGS = -pedantic -Wall -g -I$(sgldir)/include |
nuclear@5 | 10 LDFLAGS = -L. -Wl,-rpath=. -lsgl -lGL -lGLU -lm |
nuclear@5 | 11 |
nuclear@5 | 12 $(bin): $(obj) libsgl.so |
nuclear@5 | 13 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@5 | 14 |
nuclear@5 | 15 libsgl.so: $(sgldir)/libsgl.so.0.0 |
nuclear@5 | 16 ln -s $< $@.0 |
nuclear@5 | 17 ln -s $< $@ |
nuclear@5 | 18 |
nuclear@5 | 19 .PHONY: clean |
nuclear@5 | 20 clean: |
nuclear@5 | 21 rm -f $(obj) $(bin) |