blob: cd8b45b9963a4e579352519df3809db0f40d79ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
.PHONY: all clean test
ALL = attocc attocc-small attocc-debug
all: $(ALL)
clean:
rm $(ALL)
test: attocc-test attocc-test-opt
./attocc-test
./attocc-test-opt
attocc: attocc.c
cc -DDEBUG -O3 -o $@ $<
attocc-debug: attocc.c
cc -DDEBUG -Wall -Wextra -Wpedantic -o $@ $<
attocc-small: attocc.c
cc -DDEBUG -Wl,--gc-sections -flto -ffunction-sections -fdata-sections -fPIC -s -Os -o $@ $<
strip -x $@
attocc-test: attocc.c
cc -DDEBUG -DTEST -o $@ $<
attocc-test-opt: attocc.c
cc -DDEBUG -DTEST -O3 -o $@ $<
|