Makefile.fpc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Makefile.fpc for FP IDE
  3. #
  4. [targets]
  5. programs=fp
  6. [dirs]
  7. fpcdir=../..
  8. unitdir=$(COMPUNITDIR) $(GDBUNITDIR)
  9. objdir=$(GDBOBJDIR)
  10. libdir=$(GDBLIBDIR)
  11. [require]
  12. options=-Sg
  13. packages=api fv gdbint
  14. [libs]
  15. libgcc=1
  16. [presettings]
  17. # when making a full version include the compiler
  18. ifeq ($(FULL),1)
  19. override COMPUNITDIR+=../../compiler
  20. else
  21. override COMPUNITDIR+=../fake/compiler
  22. endif
  23. # when including debugger include the gdbinterface
  24. ifndef GDBINT
  25. GDBINT=gdbint
  26. endif
  27. ifeq ($(GDB),1)
  28. GDBUNITDIR+=$(PACKAGESDIR)/$(GDBINT)
  29. GDBLIBDIR+=$(PACKAGESDIR)/$(GDBINT)/libgdb/$(OS_TARGET)
  30. GDBOBJDIR+=$(PACKAGESDIR)/$(GDBINT)/libgdb/$(OS_TARGET)
  31. ifeq ($(OS_TARGET),go32v2)
  32. ifneq ($(DJDIR),)
  33. GDBLIBDIR+=$(DJDIR)/lib
  34. endif
  35. endif
  36. else
  37. override GDBUNITDIR+=../fake/gdb
  38. endif
  39. [postsettings]
  40. ifeq ($(FULL),1)
  41. override NEEDOPT+=-dBrowserCol -dGDB -Sg
  42. endif
  43. [rules]
  44. .PHONY: gdb full fullgdb clean_compiler clean
  45. clean: fpc_cleanall
  46. distclean: clean
  47. fp$(EXEEXT): $(wildcard *.pas) $(wildcard *.inc)
  48. gdb:
  49. $(MAKE) all GDB=1
  50. full:
  51. $(MAKE) all FULL=1
  52. fullgdb:
  53. $(MAKE) all FULL=1 GDB=1
  54. # This is necessary because we don't have all units separate in the
  55. # units targets
  56. clean: fpc_cleanall
  57. #
  58. # Installation
  59. #
  60. install: fpc_install
  61. $(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) readme.txt $(BININSTALLDIR)
  62. #
  63. # Misc
  64. #
  65. clean_compiler:
  66. $(MAKE) -C ../../compiler clean