.PHONY: all clean test attocc: attocc.c cc -DDEBUG -O3 -o $@ $< ALL = attocc attocc-small attocc-debug attocc-test attocc-test-opt all: $(ALL) clean: rm $(ALL) test: attocc-test attocc-test-opt ./attocc-test ./attocc-test-opt attocc-debug: attocc.c cc -DDEBUG -Wall -Wextra -Wpedantic -Og -g -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 $@ $<