makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #****************************************************************************
  2. #
  3. # Copyright (c) 1993,96 by Florian Klaempfl
  4. #
  5. #****************************************************************************
  6. #
  7. # makefile for FPK Pascal DOS directory
  8. #
  9. #####################################################################
  10. # Start of configurable section
  11. #####################################################################
  12. # set here the type of the ppc386 you use:
  13. # Choose from: dos go32v2 linux or os2
  14. OS_SRC=dos
  15. # Set REFPATH if you want to generate diffs to a standard RTL
  16. ifndef REFPATH
  17. REFPATH=/usr/local/fpk/work/new/rtl
  18. endif
  19. ifndef DIFF
  20. DIFF=diff
  21. endif
  22. ifndef DIFFOPTS
  23. DIFFOPTS=-b -c
  24. endif
  25. #######################################################################
  26. # End of configurable section.
  27. # Do not edit after this line.
  28. #######################################################################
  29. # Check operating system.
  30. ifeq ($(OS_SRC),linux)
  31. DOS=NO
  32. else
  33. DOS=YES
  34. endif
  35. # Check copy delete commands.
  36. # You need cp and rm from GNU to handle / as directory separator
  37. ifeq ($(DOS),YES)
  38. COPY=cp
  39. DEL=rm
  40. else
  41. COPY=cp
  42. DEL=rm
  43. endif
  44. # To install programs
  45. ifndef INSTALL
  46. ifeq ($(DOS),YES)
  47. INSTALL=copy
  48. else
  49. INSTALL=install -m 644
  50. endif
  51. endif
  52. # To make a directory.
  53. ifndef MKDIR
  54. ifeq ($(DOS),YES)
  55. MKDIR=mkdir
  56. else
  57. MKDIR=install -m 755 -d
  58. endif
  59. endif
  60. PPI=ppi
  61. PPFILES = crt.pp \
  62. dos.pp \
  63. fmouse.pp \
  64. go32.pp \
  65. graph.pp \
  66. mouse.pp \
  67. objects.pp \
  68. printer.pp \
  69. watch.pp
  70. PPIFILES = arc.ppi \
  71. colors.ppi \
  72. dpmi2raw.ppi \
  73. ellipse.ppi \
  74. fill.ppi \
  75. font.ppi \
  76. global.ppi \
  77. ibm.ppi \
  78. image.ppi \
  79. line.ppi \
  80. modes.ppi \
  81. move.ppi \
  82. palette.ppi \
  83. pixel.ppi \
  84. stdcolor.ppi \
  85. text.ppi \
  86. triangle.ppi \
  87. vesadeb.ppi
  88. # Here we have a conflict between modes.inc and modes.ppi
  89. # that generate the same modes.dif !!
  90. # so we use modes.dii for modes.inc
  91. INCFILES = modes.inc
  92. DIFFFILES = $(patsubst %.pp,%.dif,$(PPFILES)) \
  93. $(patsubst %.ppi,$(PPI)/%.dif,$(PPIFILES)) \
  94. $(patsubst %.inc,%.dii,$(INCFILES)) makefile.dif
  95. .PHONY: clean diff diffclean
  96. clean:
  97. -$(DEL) *.dif
  98. -$(DEL) *.dii
  99. diffclean:
  100. -$(DEL) *.dif
  101. -$(DEL) *.dii
  102. -$(DEL) $(PPI)/*.dif
  103. %.dii : %.inc
  104. -$(DIFF) $(DIFFOPTS) $*.inc $(REFPATH)/dos/$*.inc > $*.dii
  105. %.dif : %.pp
  106. -$(DIFF) $(DIFFOPTS) $*.pp $(REFPATH)/dos/$*.pp > $*.dif
  107. %.dif : %.ppi
  108. -$(DIFF) $(DIFFOPTS) $*.ppi $(REFPATH)/dos/$*.ppi > $*.dif
  109. makefile.dif : makefile
  110. -$(DIFF) $(DIFFOPTS) makefile $(REFPATH)/dos/makefile > makefile.dif
  111. diffs : $(DIFFFILES)