summaryrefslogtreecommitdiff
path: root/makefile
blob: 17351fd9bebd780f420ae6a4215ffbf08e46fdd7 (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 -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 $@