|
@@ -26,13 +26,11 @@ endif
|
|
ifdef CPU_TARGET
|
|
ifdef CPU_TARGET
|
|
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
|
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
|
endif
|
|
endif
|
|
-LOCALFPMAKE=.$(PATHSEP)fpmake$(EXEEXT)
|
|
|
|
|
|
+LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
|
|
|
|
|
[rules]
|
|
[rules]
|
|
-$(COMPILER_UNITTARGETDIR):
|
|
|
|
- $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
|
|
|
|
-fpmake: $(COMPILER_UNITTARGETDIR) fpmake.pp
|
|
|
|
- $(FPC) fpmake.pp $(FPCOPT)
|
|
|
|
|
|
+fpmake: fpmake.pp
|
|
|
|
+ $(FPCFPMAKE) fpmake.pp
|
|
all: fpmake
|
|
all: fpmake
|
|
$(LOCALFPMAKE) build --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
$(LOCALFPMAKE) build --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
smart: fpmake
|
|
smart: fpmake
|
|
@@ -43,10 +41,10 @@ debug: fpmake
|
|
$(LOCALFPMAKE) build --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -o "-dDEBUG"
|
|
$(LOCALFPMAKE) build --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -o "-dDEBUG"
|
|
clean:
|
|
clean:
|
|
$(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
$(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
|
- -$(DEL) $(LOCALFPMAKE)
|
|
|
|
install: fpmake
|
|
install: fpmake
|
|
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX)
|
|
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX)
|
|
# Normally distinstall also installs the examples, but in this case there are
|
|
# Normally distinstall also installs the examples, but in this case there are
|
|
# none.
|
|
# none.
|
|
distinstall: install
|
|
distinstall: install
|
|
distclean: clean
|
|
distclean: clean
|
|
|
|
+ -$(DEL) $(LOCALFPMAKE)
|