summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/complex/Makefile.am
blob: 7861d4a43708910baa7e7656bf58346697080518 (plain) (blame)
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
if HAS_COMPLEX
rtems_tests_PROGRAMS = complex
complex_SOURCES = init.c docomplex.c docomplexf.c docomplexl.c
endif

# FIXME: Skip long double, not yet supported in newlib
complex_CPPFLAGS = $(AM_CPPFLAGS) -DNO_LONG_DOUBLE

dist_rtems_tests_DATA = complex.scn

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am

if HAS_COMPLEX
complex_LDADD = -lm

LINK_OBJS = $(complex_OBJECTS) $(complex_LDADD)
LINK_LIBS = $(complex_LDLIBS)

complex$(EXEEXT): $(complex_OBJECTS) $(complex_DEPENDENCIES)
	@rm -f complex$(EXEEXT)
	$(make-exe)
endif

include $(top_srcdir)/../automake/local.am