diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-15 01:29:58 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-15 01:29:58 +0200 |
commit | 7d78f85cb2da3354f8d05d2054f90d83d84de66f (patch) | |
tree | b2d26b0369cc767c0061c85f28d4e1684f18492b /makefile | |
parent | fdedfa4b7e08263ce00e5c0b42b98ab249d5582b (diff) | |
download | attocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar attocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar.bz2 attocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar.zst |
makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 $@ |