aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-04-07 19:49:53 +0000
committerGravatar Peter McGoron 2023-04-07 19:49:53 +0000
commit56c6523e15176ecb5eadeda803d7e54c165d69ca (patch)
tree72e0432d8574cfa21f64e51af7ebfaecd7b4a50b /Makefile
parentadd adc and dac switch (diff)
rerun test suite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d65fe98..35e4bfa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
test: test_asm c_test/encode_decode c_test/creole
+CFLAGS=-DCREOLE_TEST
asm/libcreole.so: creole.c creole.h
- $(CC) -Wall -fPIC -c creole.c -o c_test/creole.o
+ $(CC) $(CFLAGS) -Wall -fPIC -c creole.c -o c_test/creole.o
$(CC) -shared -o asm/libcreole.so c_test/creole.o
test_asm: asm/libcreole.so
cd asm && python3 test.py -f
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
- $(CC) creole.c c_test/encode_decode.c -Wall -pedantic -std=c89 -g -fopenmp -o c_test/encode_decode
+ $(CC) $(CFLAGS) creole.c c_test/encode_decode.c -Wall -pedantic -std=c99 -g -fopenmp -o c_test/encode_decode
# c_test/encode_decode
c_test/creole: c_test/creole.c creole.c creole.h c_test/greatest.h
- $(CC) -g c_test/creole.c -Wall -pedantic -std=c89 -o c_test/creole
+ $(CC) $(CFLAGS) -g c_test/creole.c -Wall -pedantic -std=c99 -o c_test/creole
c_test/creole