-.PHONY: all clean realclean distclean emptyoutput prepinstall actualinstall install copyonlyinstall uninstall troubleshoot outputdirs bootstrap deps ecere ecerecom ecerevanilla ear compiler prepbinaries epj2make ide documentor eda prepcodeguard codeguard
+.PHONY: all clean realclean distclean emptyoutput prepinstall actualinstall install copyonlyinstall uninstall troubleshoot outputdirs bootstrap deps ecere ecerecom ecerevanilla ear compiler prepbinaries epj2make ide documentor eda prepcodeguard codeguard fixprecompile
+ifneq "$V" "1"
.SILENT:
+endif
include crossplatform.mk
include default.cf
endif
export CPPFLAGS
-CPPFLAGS += -DDEB_HOST_MULTIARCH=\"$(PREFIXLIBDIR)\"
+CPPFLAGS += -DDEB_HOST_MULTIARCH=\"$(call escspace,$(PREFIXLIBDIR))\"
DESTLIBDIR := $(DESTDIR)$(PREFIXLIBDIR)
ifdef SLIBDIR
deps:
ifdef CROSS_TARGET
+ifndef LINUX_HOST
@$(call echo,Building dependencies (host)...)
cd deps && $(MAKE) $(XBOOT)
endif
+endif
+ifndef LINUX_TARGET
@$(call echo,Building dependencies...)
cd deps && $(MAKE)
+endif
ecere: bootstrap deps
ifdef CROSS_TARGET
cd ear && cd cmd && $(MAKE) cleantarget
cd ear && $(MAKE)
+fixprecompile:
+ cd compiler && $(MAKE) fixprecompile
+
compiler: ecere ear
ifdef CROSS_TARGET
@$(call echo,Building 2nd stage compiler (host))
endif
clean: emptyoutput
+ifndef LINUX_TARGET
cd deps && $(MAKE) clean
+endif
cd ecere && $(MAKE) clean
cd compiler && $(MAKE) clean
cd ear && $(MAKE) clean
@$(call echo,Done.)
realclean: outputdirs
+ifndef LINUX_TARGET
cd deps && $(MAKE) realclean
+endif
cd ecere && $(MAKE) realclean
cd compiler && $(MAKE) realclean
cd ear && $(MAKE) realclean
@$(call echo,Done.)
distclean: outputdirs
+ifndef LINUX_TARGET
cd deps && $(MAKE) distclean
+endif
cd ecere && $(MAKE) distclean
cd compiler && $(MAKE) distclean
cd ear && $(MAKE) distclean
@$(call echo,PREFIXLIBDIR=$(PREFIXLIBDIR))
@$(call echo,ARCH=$(ARCH))
@$(call echo,ARCH_FLAGS=$(ARCH_FLAGS))
+ @$(call echo,GIT_REPOSITORY=$(GIT_REPOSITORY))
+ @$(call echo,DIR_VER=$(DIR_VER))
+ @$(call echo,REPOSITORY_VER=$(REPOSITORY_VER))