Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. # We always need the API and FV
  18. NEEDUNITDIR=../../api ../../fv
  19. # Adding these is not possible, because it will then find views.pas before
  20. # it finds views.ppu !! (PFV)
  21. # ../../fv/base ../../fv/app ../../fv/dialogs
  22. # when making a full version include the compiler
  23. ifdef FULL
  24. override NEEDUNITDIR+=../../compiler
  25. override NEEDOPT+=-dBrowserCol -dGDB -Sg
  26. else
  27. override NEEDUNITDIR+=../fake/compiler
  28. endif
  29. # when including debugger include the gdbinterface
  30. ifndef GDBINT
  31. GDBINT=gdbint
  32. endif
  33. ifdef GDB
  34. override NEEDUNITDIR+=../../$(GDBINT)
  35. NEEDLIBDIR+=../../$(GDBINT)/libgdb /pp/dj/lib
  36. NEEDOBJDIR+=../../$(GDBINT)/libgdb
  37. else
  38. override NEEDUNITDIR+=../fake/gdb
  39. endif
  40. #####################################################################
  41. # Real targets
  42. #####################################################################
  43. UNITOBJECTS=
  44. EXEOBJECTS=fp
  45. #####################################################################
  46. # Include default makefile
  47. #####################################################################
  48. ifndef FPCMAKE
  49. ifdef FPCDIR
  50. FPCMAKE=$(FPCDIR)/makefile.fpc
  51. else
  52. FPCMAKE=makefile.fpc
  53. endif
  54. endif
  55. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  56. ifeq ($(FPCMAKE),)
  57. nofpcmake:
  58. @echo
  59. @echo makefile.fpc not found!
  60. @echo Check the FPCMAKE and FPCDIR environment variables.
  61. @echo
  62. @exit
  63. else
  64. include $(FPCMAKE)
  65. endif
  66. #####################################################################
  67. # Dependencies
  68. #####################################################################
  69. ifdef inlinux
  70. LIBDIR=/usr/lib/gcc-lib/i486-linux/2.7.2.3
  71. endif
  72. fp$(EXEEXT): $(wildcard *.pas) $(wildcard *.inc)
  73. gdb:
  74. make all GDB=1
  75. full:
  76. make all FULL=1
  77. fullgdb:
  78. make all FULL=1 GDB=1
  79. clean_compiler:
  80. make -C ../../compiler clean
  81. #
  82. # $Log$
  83. # Revision 1.10 1999-02-22 02:15:12 peter
  84. # + default extension for save in the editor
  85. # + Separate Text to Find for the grep dialog
  86. # * fixed redir crash with tp7
  87. #
  88. # Revision 1.9 1999/02/16 10:43:53 peter
  89. # * use -dGDB for the compiler
  90. # * only use gdb_file when -dDEBUG is used
  91. # * profiler switch is now a toggle instead of radiobutton
  92. #
  93. # Revision 1.8 1999/02/04 17:19:23 peter
  94. # * linux fixes
  95. #
  96. # Revision 1.7 1999/02/04 13:32:00 pierre
  97. # * Several things added (I cannot commit them independently !)
  98. # + added TBreakpoint and TBreakpointCollection
  99. # + added cmResetDebugger,cmGrep,CmToggleBreakpoint
  100. # + Breakpoint list in INIFile
  101. # * Select items now also depend of SwitchMode
  102. # * Reading of option '-g' was not possible !
  103. # + added search for -Fu args pathes in TryToOpen
  104. # + added code for automatic opening of FileDialog
  105. # if source not found
  106. #
  107. # Revision 1.6 1999/01/29 10:34:31 peter
  108. # + needobjdir,needlibdir
  109. #
  110. # Revision 1.5 1999/01/28 19:58:23 peter
  111. # * makefile updates
  112. #
  113. # Revision 1.4 1999/01/22 18:10:42 pierre
  114. # * added missing directories
  115. #
  116. # Revision 1.3 1999/01/21 11:54:09 peter
  117. # + tools menu
  118. # + speedsearch in symbolbrowser
  119. # * working run command
  120. #
  121. # Revision 1.2 1999/01/19 18:21:49 peter
  122. # * Use FPCDIR and FPCMAKE environment to find makefile.fpc
  123. # * better install dir setting
  124. #
  125. #