dtms
diff Makefile @ 0:50af08b83a1f
a program that shouts "Don't touch my screen, bro" whenever someone
touches the screen
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Fri, 13 May 2016 21:03:06 +0300 |
parents | |
children | db4bb4b5905a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Fri May 13 21:03:06 2016 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +dep = $(obj:.o=.d) 1.7 +bin = dtms 1.8 + 1.9 +dbg = -g 1.10 +opt = -O0 1.11 + 1.12 +CC = gcc 1.13 +INCLUDE = -I/usr/include 1.14 +CFLAGS = -pedantic -Wall -std=c99 -D_XOPEN_SOURCE=600 $(dbg) $(INCLUDE) 1.15 +LDFLAGS = -L/usr/lib $(libs) 1.16 + 1.17 +$(bin): $(obj) 1.18 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.19 + 1.20 +-include $(dep) 1.21 + 1.22 +%.d: %.c 1.23 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.24 + 1.25 +.PHONY: clean 1.26 +clean: 1.27 + rm -f $(obj) $(bin) $(dep)