blob: 7b198333f77ed3fa07938db23c70d34135d44311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
.PHONY: all clean
ALL = attocc attocc-small attocc-debug
all: $(ALL)
clean:
rm $(ALL)
attocc: attocc.c
cc -O3 -o $@ $<
attocc-debug: attocc.c
cc -DDEBUG -Wall -Wextra -Wpedantic -o $@ $<
attocc-small: attocc.c
cc -Wl,--gc-sections -flto -ffunction-sections -fdata-sections -fPIC -s -Os -o $@ $<
strip -x $@
|