[regtest] Fix new places of ucsim simulators
[sdcc.git] / sdcc-build / components / sdcc-extra.mk
blob2785802cad0a22c6bd2d571f428e4fe6ce1f819a
1 # sdcc-extra 'Extra' sdcc related modules used mainly for regression tests.
3 # Prevent multiple inclusion
4 ifneq ($(SDCCEXTRAMKINCLUDE), 1)
5 SDCCEXTRAMKINCLUDE = 1
7 # Add sdcc-extra to the list of source trees that need to be fetched
8 SRCTREES += sdcc-extra
9 # PENDING
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
14 sdcc-extra:
15 # don't build sdcc-extra if cross compiling
16 ifneq ($(CROSSCOMPILING), 1)
17 mkdir -p $(SDCCEXTRADIR)
18 cd $(SDCCEXTRADIR); \
19 CC=$(TARGETCC) \
20 CXX=$(TARGETCXX) \
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)
29 endif
31 sdcc-extra-clean:
32 $(MAKE) -C $(SDCCEXTRADIR) clean
34 endif