1 # sdcc-extra 'Extra' sdcc related modules used mainly for regression tests.
3 # Prevent multiple inclusion
4 ifneq ($(SDCCEXTRAMKINCLUDE
), 1)
7 # Add sdcc-extra to the list of source trees that need to be fetched
10 SDCCEXTRADIR
= $(SRCDIR
)/sdcc-extra
11 # Add sdcc-extra to the list of source trees, that are archieved and copied to the snapshot page
12 ARCHIVETREES
+= sdcc-extra
15 # don't build sdcc-extra if cross compiling
16 ifneq ($(CROSSCOMPILING
), 1)
17 mkdir
-p
$(SDCCEXTRADIR
)
21 STRIP
=$(TARGETSTRIP
) \
22 RANLIB
=$(TARGETRANLIB
) \
23 CPPFLAGS
=$(TARGETCPPFLAGS
) \
24 CFLAGS
=$(TARGETCFLAGS
) \
25 CXXFLAGS
=$(TARGETCXXFLAGS
) \
26 LDFLAGS
=$(TARGETLDFLAGS
) \
27 $(ORIGDIR
)/sdcc-extra
/configure
--host
=$(TARGETOS
) --build
=$(HOSTOS
)
28 $(MAKE
) -C
$(SDCCEXTRADIR
)
32 $(MAKE
) -C
$(SDCCEXTRADIR
) clean