sgl

annotate 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
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)