2
0

Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #
  2. # $Id$
  3. # Copyright (c) 1998 by the Free Pascal Development Team
  4. #
  5. # Makefile for Free Pascal Environment
  6. #
  7. # See the file COPYING.FPC, included in this distribution,
  8. # for details about the copyright.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. #####################################################################
  15. # Defaults
  16. #####################################################################
  17. ifdef inlinux
  18. LIBDIR=/usr/lib/gcc-lib/i486-linux/2.7.2.3
  19. endif
  20. # We always need the API and FV
  21. NEEDUNITDIR=../../api ../../fv
  22. # Adding these is not possible, because it will then find views.pas before
  23. # it finds views.ppu !! (PFV)
  24. # ../../fv/base ../../fv/app ../../fv/dialogs
  25. # when making a full version include the compiler
  26. ifdef FULL
  27. override NEEDUNITDIR+=../../compiler
  28. override NEEDOPT+=-dBrowserCol -Sg
  29. else
  30. override NEEDUNITDIR+=../fake/compiler
  31. endif
  32. # when including debugger include the gdbinterface
  33. ifndef GDBINT
  34. GDBINT=gdbint
  35. endif
  36. ifdef GDB
  37. override NEEDUNITDIR+=../../$(GDBINT)
  38. NEEDLIBDIR+=../../$(GDBINT)/libgdb
  39. NEEDOBJDIR+=../../$(GDBINT)/libgdb
  40. else
  41. override NEEDUNITDIR+=../fake/gdb
  42. endif
  43. #####################################################################
  44. # Real targets
  45. #####################################################################
  46. UNITOBJECTS=
  47. EXEOBJECTS=fp
  48. #####################################################################
  49. # Include default makefile
  50. #####################################################################
  51. ifndef FPCMAKE
  52. ifdef FPCDIR
  53. FPCMAKE=$(FPCDIR)/makefile.fpc
  54. else
  55. FPCMAKE=makefile.fpc
  56. endif
  57. endif
  58. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  59. ifeq ($(FPCMAKE),)
  60. nofpcmake:
  61. @echo
  62. @echo makefile.fpc not found!
  63. @echo Check the FPCMAKE and FPCDIR environment variables.
  64. @echo
  65. @exit
  66. else
  67. include $(FPCMAKE)
  68. endif
  69. #####################################################################
  70. # Dependencies
  71. #####################################################################
  72. fp$(EXEEXT): $(wildcard *.pas) $(wildcard *.inc)
  73. full:
  74. make all FULL=1
  75. fullgdb: clean_compiler
  76. make all FULL=1 GDB=1
  77. clean_compiler:
  78. make -C ../../compiler clean
  79. #
  80. # $Log$
  81. # Revision 1.8 1999-02-04 17:19:23 peter
  82. # * linux fixes
  83. #
  84. # Revision 1.7 1999/02/04 13:32:00 pierre
  85. # * Several things added (I cannot commit them independently !)
  86. # + added TBreakpoint and TBreakpointCollection
  87. # + added cmResetDebugger,cmGrep,CmToggleBreakpoint
  88. # + Breakpoint list in INIFile
  89. # * Select items now also depend of SwitchMode
  90. # * Reading of option '-g' was not possible !
  91. # + added search for -Fu args pathes in TryToOpen
  92. # + added code for automatic opening of FileDialog
  93. # if source not found
  94. #
  95. # Revision 1.6 1999/01/29 10:34:31 peter
  96. # + needobjdir,needlibdir
  97. #
  98. # Revision 1.5 1999/01/28 19:58:23 peter
  99. # * makefile updates
  100. #
  101. # Revision 1.4 1999/01/22 18:10:42 pierre
  102. # * added missing directories
  103. #
  104. # Revision 1.3 1999/01/21 11:54:09 peter
  105. # + tools menu
  106. # + speedsearch in symbolbrowser
  107. # * working run command
  108. #
  109. # Revision 1.2 1999/01/19 18:21:49 peter
  110. # * Use FPCDIR and FPCMAKE environment to find makefile.fpc
  111. # * better install dir setting
  112. #
  113. #