Makefile_fpmake.fpc 1001 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Makefile.fpc for TDataSet for FCL
  3. #
  4. [package]
  5. name=fcl-web
  6. version=2.5.1
  7. [require]
  8. packages=rtl fcl-base fcl-xml fcl-db fcl-json fcl-net fcl-process fastcgi httpd22
  9. [default]
  10. fpcdir=../..
  11. [prerules]
  12. # If no fpmake exists and clean is called, do not try to build fpmake, it will
  13. # most often fail because the dependencies are cleared. So simply skip the
  14. # clean by replacing the command with 'echo'
  15. FPMAKE_BIN_CLEAN=$(wildcard ./fpmake$(SRCEXEEXT))
  16. ifeq ($(FPMAKE_BIN_CLEAN),)
  17. FPMAKE_BIN_CLEAN=$(ECHO)
  18. endif
  19. [rules]
  20. fpmake: fpmake.pp
  21. $(FPC) fpmake.pp -Fu../fpmkunit/src -dNO_UNIT_PROCESS -dNO_UNIT_ZIPPER $(FPCOPT)
  22. all: fpmake
  23. ./fpmake build --localunitdir=../.. --globalunitdir=.. $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
  24. clean:
  25. $(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
  26. install: fpmake
  27. ./fpmake install --localunitdir=../.. --globalunitdir=.. $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(PREFIX)