Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # makes the utilities for FPC
  2. #
  3. # Copyright (c) 1996 by Michael Van Canneyt
  4. #####################################################################
  5. # Start of configurable section.
  6. # Please note that all these must be set in the main makefile, and
  7. # should be set there.
  8. # Don't remove the indef statements. They serve to avoid conflicts
  9. # with the main makefile.
  10. #####################################################################
  11. # where are the units ?
  12. ifndef UNITDIR
  13. UNITDIR=../linux
  14. endif
  15. # set the directory where to install the units.
  16. ifndef UNITINSTALLDIR
  17. UNITINSTALLDIR=/usr/lib/ppc/0.99.0/objpas
  18. endif
  19. # What is the Operating System ?
  20. ifndef OS_SRC
  21. OS_SRC=linux
  22. endif
  23. # What is the target processor :
  24. ifndef CPU
  25. CPU=i386
  26. #CPU=m68k
  27. endif
  28. # What compiler to use ?
  29. ifndef PP
  30. PP=ppc386
  31. endif
  32. # What options to pass to the compiler ?
  33. # You may want to specify a config file or error definitions file here.
  34. ifndef OPT
  35. OPT=
  36. endif
  37. #####################################################################
  38. # End of configurable section.
  39. # Do not edit after this line.
  40. #####################################################################
  41. # Where are the include files ?
  42. INC=../inc
  43. PROCINC=../$(CPU)
  44. # add required options...
  45. override OPT:= $(OPT) -d$(CPU)
  46. # Add unitdir
  47. ifdef UNITDIR
  48. override OPT:=$(OPT) -Up$(UNITDIR)
  49. endif
  50. # To copy pograms
  51. ifndef COPY
  52. ifeq ($(DOS),YES)
  53. COPY=copy
  54. else
  55. COPY=cp -p
  56. endif
  57. endif
  58. # Check delete program
  59. ifndef DEL
  60. ifeq ($(DOS),YES)
  61. DEL=del
  62. else
  63. DEL=rm -f
  64. endif
  65. endif
  66. # To install programs
  67. ifndef INSTALL
  68. ifeq ($(DOS),YES)
  69. INSTALL=copy
  70. else
  71. INSTALL=install
  72. endif
  73. endif
  74. # To make a directory.
  75. ifndef MKDIR
  76. ifeq ($(DOS),YES)
  77. MKDIR=mkdir
  78. else
  79. MKDIR=install -m 755 -d
  80. endif
  81. endif
  82. # diff program
  83. ifndef REFPATH
  84. REFPATH=/usr/local/fpk/work/new/rtl
  85. endif
  86. ifndef DIFF
  87. DIFF=diff
  88. endif
  89. ifndef DIFFOPTS
  90. DIFFOPTS=-b -c
  91. endif
  92. # Was a config file specified ?
  93. ifdef CFGFILE
  94. override OPT:=$(OPT) @$(CONFIG)
  95. endif
  96. # determine needed extensions.
  97. PPUEXT=.ppu
  98. OEXT=.o
  99. # Targets
  100. UNITOBJECTS=math.ppu sysutils.ppu
  101. .PHONY : all clean diffs install diffclean
  102. all : $(UNITOBJECTS)
  103. $(UNITOBJECTS): %.ppu: %.pp
  104. $(PP) $(OPT) $*
  105. install : all
  106. $(INSTALL) -m 755 $(UNITOBJECTS) $(UNITINSTALLDIR)
  107. clean:
  108. -$(DEL) *.o *.s *.ppu
  109. -$(DEL) $(UNITOBJECTS)