summaryrefslogtreecommitdiff
path: root/makefile
blob: ffd9c320f67642f3637bf6b686d1289fefa51c1f (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
	gcc -O3 -o $@ $<

attocc-debug: attocc.c
	gcc -DDEBUG -Wall -Wextra -Wpedantic -o $@ $<

attocc-small: attocc.c
	gcc -Wl,--gc-sections -flto -ffunction-sections -fdata-sections -fPIC -s -Os -o $@ $<
	strip -x $@