summaryrefslogtreecommitdiff
path: root/n/avr/modules/math/fixed/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'n/avr/modules/math/fixed/test/Makefile')
-rw-r--r--n/avr/modules/math/fixed/test/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/n/avr/modules/math/fixed/test/Makefile b/n/avr/modules/math/fixed/test/Makefile
index 38517e5..c690212 100644
--- a/n/avr/modules/math/fixed/test/Makefile
+++ b/n/avr/modules/math/fixed/test/Makefile
@@ -12,6 +12,21 @@ AVR_MCU = atmega128
OPTIMIZE = -O2
DEFS =
-LIBS =
+HOST_LIBS = -lm
include $(BASE)/make/Makefile.gen
+
+EXTRA_CLEAN_FILES += test_fixed.mul test_fixed.div test_fixed.cos \
+ test_fixed.sqrt
+
+test_fixed.mul: test_fixed.host
+ echo '!m' | ./$< > $@
+
+test_fixed.div: test_fixed.host
+ echo '!d' | ./$< > $@
+
+test_fixed.cos: test_fixed.host
+ echo '!c' | ./$< > $@
+
+test_fixed.sqrt: test_fixed.host
+ echo '!s' | ./$< > $@