1 Allow cross compilation. Adapted from crosstool-ng.
3 Signed-off-by: Baruch Siach <baruch at tkos.co.il>
6 ===================================================================
22 createconf$(EXEPOSTFIX): createconf.o
23 - $(RMFORCE) createconf$(EXEPOSTFIX)
24 - $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
25 + $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
27 tstheap$(EXEPOSTFIX): libduma.a tstheap.o
28 - $(RMFORCE) tstheap$(EXEPOSTFIX)
30 # define rules how to build objects for createconf
33 - $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
34 + $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@