dtms

view 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 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)