diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-10-09 09:52:11 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-10-09 09:52:11 +0200 |
| commit | 1109973fc1aae971439331c76eb46cbaf976690b (patch) | |
| tree | c55826d4cca08387725ddef706b05687c654f850 /makefile | |
| parent | 32b5bc923add402eb33555157d329e1d379583c9 (diff) | |
| download | attocc-1109973fc1aae971439331c76eb46cbaf976690b.tar attocc-1109973fc1aae971439331c76eb46cbaf976690b.tar.bz2 attocc-1109973fc1aae971439331c76eb46cbaf976690b.tar.zst | |
unit testing
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,8 +1,11 @@ -.PHONY: all clean +.PHONY: all clean test ALL = attocc attocc-small attocc-debug all: $(ALL) clean: rm $(ALL) +test: attocc-test attocc-test-opt + ./attocc-test + ./attocc-test-opt attocc: attocc.c cc -DDEBUG -O3 -o $@ $< @@ -13,3 +16,8 @@ attocc-debug: attocc.c 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 $@ $< |