From 7d78f85cb2da3354f8d05d2054f90d83d84de66f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 15 Jun 2024 01:29:58 +0200 Subject: makefile --- makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..ffd9c32 --- /dev/null +++ b/makefile @@ -0,0 +1,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 $@ -- cgit v1.2.3-70-g09d2