summaryrefslogtreecommitdiff
path: root/n/avr/modules/math/fixed/test/Makefile
blob: c69021255fd0b0a3af91aa5b6e933e34c84b2f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
BASE = ../../../..
PROGS = test_fixed
test_fixed_SOURCES = test_fixed.c
DOC =
EXTRACTDOC =
MODULES = uart proto utils math/fixed math/random
CONFIGFILE = avrconfig.h
# atmega8, atmega8535, atmega128...
AVR_MCU = atmega128
# -O2 : speed
# -Os : size
OPTIMIZE = -O2

DEFS =
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' | ./$< > $@