12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #
- # Makefile.fpc for FastCGI
- #
- [package]
- name=fastcgi
- version=2.5.1
- [require]
- packages=rtl fpmkunit
- [install]
- fpcpackage=y
- [default]
- fpcdir=../..
- [prerules]
- # If no fpmake exists and clean is called, do not try to build fpmake, it will
- # most often fail because the dependencies are cleared. So simply skip the
- # clean by replacing the command with 'echo'
- FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
- ifeq ($(FPMAKE_BIN_CLEAN),)
- FPMAKE_BIN_CLEAN=$(ECHO)
- endif
- ifdef OS_TARGET
- FPC_TARGETOPT+=--os=$(OS_TARGET)
- endif
- ifdef CPU_TARGET
- FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
- endif
- LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
- [rules]
- fpmake: fpmake.pp
- $(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR))
- all: fpmake
- $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
- smart: fpmake
- $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -o "-XX -CX"
- release: fpmake
- $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -o "-dRELEASE"
- debug: fpmake
- $(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -o "-dDEBUG"
- clean:
- $(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
- install: fpmake
- ifdef UNIXHier
- $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX)
- else
- $(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR)
- endif
- # Normally distinstall also installs the examples, but in this case there are
- # none.
- distinstall: install
- distclean: clean
- -$(DEL) $(LOCALFPMAKE)
|