dtms
view Makefile @ 3:bf6dda0e9daf
added GPL License text
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Fri, 13 May 2016 23:02:26 +0300 |
parents | |
children | db4bb4b5905a |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = dtms
6 dbg = -g
7 opt = -O0
9 CC = gcc
10 INCLUDE = -I/usr/include
11 CFLAGS = -pedantic -Wall -std=c99 -D_XOPEN_SOURCE=600 $(dbg) $(INCLUDE)
12 LDFLAGS = -L/usr/lib $(libs)
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 -include $(dep)
19 %.d: %.c
20 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin) $(dep)