Makefile.fpc 1.3 KB

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