summaryrefslogtreecommitdiff
path: root/Makefile
blob: bfb3df5cdf19358e5da918655e4075289ccd728b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
BUILD := debug

cflags.debug := -Wall -o0 -g -DDEBUG=1
cflags.release := -os -s
CFLAGS := ${cflags.${BUILD}}

test: main
	./main

main: clean

clean:
	rm -f ./main

%:
	$(CC)  $(CFLAGS) -o $@ $@.c

..