diff options
| author | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2019-06-17 09:17:19 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-17 09:17:19 +0300 |
| commit | fd01d546a914be8060a04982ea9f3121d547ec2d (patch) | |
| tree | 125a76d2542b51c85448759751fde36f65772c56 /unittests/Makefile | |
| parent | 47a5aa74ff33b224b3f9150b0fff8b4a01d177fc (diff) | |
| parent | 11855068c37558b01e519e89d27961379ae57589 (diff) | |
| download | libfixmath-fd01d546a914be8060a04982ea9f3121d547ec2d.tar.gz | |
Merge pull request #12 from dlech/master
Fixes
Diffstat (limited to 'unittests/Makefile')
| -rw-r--r-- | unittests/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/unittests/Makefile b/unittests/Makefile index 329caf4..78433fe 100644 --- a/unittests/Makefile +++ b/unittests/Makefile @@ -12,6 +12,10 @@ all: run_fix16_unittests run_fix16_exp_unittests run_fix16_str_unittests run_fix clean: rm -f fix16_unittests_???? + rm -f fix16_str_unittests_default + rm -f fix16_str_unittests_no_ctype + rm -f fix16_exp_unittests + rm -f fix16_macros_unittests # The library is tested automatically under different compilations # options. @@ -44,6 +48,7 @@ fix16_unittests_ro08: DEFINES=-DFIXMATH_OPTIMIZE_8BIT fix16_unittests_no08: DEFINES=-DFIXMATH_NO_ROUNDING -DFIXMATH_OPTIMIZE_8BIT fix16_unittests_rn08: DEFINES=-DFIXMATH_NO_OVERFLOW -DFIXMATH_OPTIMIZE_8BIT fix16_unittests_nn08: DEFINES=-DFIXMATH_NO_OVERFLOW -DFIXMATH_NO_ROUNDING -DFIXMATH_OPTIMIZE_8BIT +fix16_str_unittests_no_ctype: DEFINES=-DFIXMATH_NO_CTYPE fix16_unittests_% : fix16_unittests.c $(FIX16_SRC) $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm @@ -55,12 +60,13 @@ run_fix16_exp_unittests: fix16_exp_unittests fix16_exp_unittests: fix16_exp_unittests.c $(FIX16_SRC) $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm - -# Tests for string conversion, run only in default config -run_fix16_str_unittests: fix16_str_unittests - ./fix16_str_unittests > /dev/null -fix16_str_unittests: fix16_str_unittests.c $(FIX16_SRC) +# Tests for string conversion, run only in default config and no ctype +run_fix16_str_unittests: fix16_str_unittests_default fix16_str_unittests_no_ctype + ./fix16_str_unittests_default > /dev/null + ./fix16_str_unittests_no_ctype > /dev/null + +fix16_str_unittests_%: fix16_str_unittests.c $(FIX16_SRC) $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm # Tests for literal macros, run only in default config |
