imtk
annotate Makefile @ 16:1cf212375db3
textbox cursor handling
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Tue, 19 Apr 2011 08:24:39 +0300 |
parents | 1b27a69603ac |
children | 737e9047d9c9 |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard *.c src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@14 | 3 depfiles = $(obj:.o=.d) |
nuclear@0 | 4 bin = test |
nuclear@0 | 5 |
nuclear@0 | 6 CC = gcc |
nuclear@0 | 7 CFLAGS = -pedantic -Wall -g -Isrc |
nuclear@0 | 8 LDFLAGS = $(libgl) |
nuclear@0 | 9 |
nuclear@0 | 10 ifeq ($(shell uname -s), Darwin) |
nuclear@0 | 11 libgl = -framework OpenGL -framework GLUT |
nuclear@0 | 12 else |
nuclear@9 | 13 libgl = -lGL -lGLU -lglut |
nuclear@0 | 14 endif |
nuclear@0 | 15 |
nuclear@0 | 16 $(bin): $(obj) |
nuclear@0 | 17 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 18 |
nuclear@14 | 19 -include $(depfiles) |
nuclear@14 | 20 |
nuclear@14 | 21 %.d: %.c |
nuclear@14 | 22 @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@ |
nuclear@14 | 23 |
nuclear@0 | 24 .PHONY: clean |
nuclear@0 | 25 clean: |
nuclear@0 | 26 rm -f $(obj) $(bin) |
nuclear@14 | 27 |
nuclear@14 | 28 .PHONY: cleandep |
nuclear@14 | 29 cleandep: |
nuclear@14 | 30 rm -f $(depfiles) |