diff options
| author | PetteriAimonen <PetteriAimonen@d3e1167c-abe1-51d5-8199-f9061ebe54e4> | 2014-12-30 18:41:55 +0000 |
|---|---|---|
| committer | PetteriAimonen <PetteriAimonen@d3e1167c-abe1-51d5-8199-f9061ebe54e4> | 2014-12-30 18:41:55 +0000 |
| commit | cbbfe85a4adb27394898600eea62afbacdb962f3 (patch) | |
| tree | 60f0e147c5a3995d7ca42d5e8fed1ea22945039d /unittests/Makefile | |
| parent | 516f37428ba501ca5a179c35474d6e3e70997fcb (diff) | |
| download | libfixmath-cbbfe85a4adb27394898600eea62afbacdb962f3.tar.gz | |
Add F16C() macro for defining values without float support.
Implementation by Jonas Zeiger.
Diffstat (limited to 'unittests/Makefile')
| -rw-r--r-- | unittests/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unittests/Makefile b/unittests/Makefile index 14dac10..329caf4 100644 --- a/unittests/Makefile +++ b/unittests/Makefile @@ -8,7 +8,7 @@ CFLAGS = -g -O0 -I../libfixmath -Wall -Wextra -Werror FIX16_SRC = ../libfixmath/fix16.c ../libfixmath/fix16_sqrt.c ../libfixmath/fix16_str.c \ ../libfixmath/fix16_exp.c ../libfixmath/fix16.h -all: run_fix16_unittests run_fix16_exp_unittests run_fix16_str_unittests +all: run_fix16_unittests run_fix16_exp_unittests run_fix16_str_unittests run_fix16_macros_unittests clean: rm -f fix16_unittests_???? @@ -63,3 +63,10 @@ run_fix16_str_unittests: fix16_str_unittests fix16_str_unittests: fix16_str_unittests.c $(FIX16_SRC) $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm +# Tests for literal macros, run only in default config +run_fix16_macros_unittests: fix16_macros_unittests + ./fix16_macros_unittests > /dev/null + +fix16_macros_unittests: fix16_macros_unittests.c $(FIX16_SRC) + $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm + |
