Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # $Id$
  3. # Copyright (c) 1998 by the Free Pascal Development Team
  4. #
  5. # Makefile for <template>
  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. # Where are the include files located
  18. INC=
  19. PROCINC=
  20. OSINC=
  21. # Needed options, without it won't compile
  22. NEEDOPT=
  23. # Needed unit dir, which is searched as the first path
  24. NEEDUNITDIR=
  25. # Where need we to place the executables/ppu/objects
  26. TARGETDIR=
  27. UNITTARGETDIR=
  28. # As default make only the units
  29. #DEFAULTUNITS=1
  30. #####################################################################
  31. # Real targets
  32. #####################################################################
  33. UNITOBJECTS=
  34. EXEOBJECTS=
  35. #####################################################################
  36. # Include default makefile
  37. #####################################################################
  38. ifndef FPCMAKE
  39. ifdef FPCDIR
  40. FPCMAKE=$(FPCDIR)/makefile.fpc
  41. else
  42. FPCMAKE=makefile.fpc
  43. endif
  44. endif
  45. override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
  46. ifeq ($(FPCMAKE),)
  47. nofpcmake:
  48. @echo
  49. @echo makefile.fpc not found!
  50. @echo Check the FPCMAKE and FPCDIR environment variables.
  51. @echo
  52. @exit
  53. else
  54. include $(FPCMAKE)
  55. endif
  56. #####################################################################
  57. # Dependencies
  58. #####################################################################
  59. #
  60. # $Log$
  61. # Revision 1.4 1999-01-19 18:21:51 peter
  62. # * Use FPCDIR and FPCMAKE environment to find makefile.fpc
  63. # * better install dir setting
  64. #
  65. #
  66. #