dtms

view Makefile @ 1:49df14292d38

README.md edited online with Bitbucket
author Eleni Maria Stea <elene.mst@gmail.com>
date Fri, 13 May 2016 18:08:29 +0000
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)