dsys2

view Makefile @ 4:95f010f7eadc

*burp*
author John Tsiombikas <nuclear@siggraph.org>
date Thu, 01 Sep 2011 07:55:22 +0300
parents 34d90cd9ef9b
children 94ce16dd20c0
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
5 lib_a = libdsys2.a
7 CC = gcc
8 AR = ar
9 CFLAGS = -pedantic -Wall -g -Isrc
11 test: test.o $(lib_a)
12 $(CC) $(CFLAGS) -o $@ test.o $(lib_a) -lGL -lGLU -lglut -lm
14 $(lib_a): $(obj)
15 $(AR) rcs $@ $(obj)
17 -include $(dep)
19 %.d: %.c
20 @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin)
26 .PHONY: cleandep
27 cleandep:
28 rm -f $(dep)