makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #****************************************************************************
  2. #
  3. # Copyright (c) 1993,96 by Florian Klaempfl
  4. #
  5. #****************************************************************************
  6. #
  7. # makefile for FPKPascal
  8. #
  9. #####################################################################
  10. # Start of configurable section
  11. #####################################################################
  12. # Set REFPATH if you want to generate diffs to a standard RTL
  13. ifndef REFPATH
  14. REFPATH=/usr/local/fpk/work/new/rtl
  15. endif
  16. ifndef DIFF
  17. DIFF=diff
  18. endif
  19. ifndef DIFFOPTS
  20. DIFFOPTS=-b -c
  21. endif
  22. #######################################################################
  23. # End of configurable section.
  24. # Do not edit after this line.
  25. #######################################################################
  26. # Check copy delete commands.
  27. # You need cp from GNU to handle / as directory separator
  28. ifeq ($(DOS),YES)
  29. COPY=cp -p -f
  30. DEL=del
  31. else
  32. COPY=cp -p -f
  33. DEL=rm
  34. endif
  35. PPFILES = complex.pp \
  36. cpne.pp
  37. INCFILES = heaph.inc \
  38. innr.inc \
  39. mathh.inc \
  40. real2str.inc \
  41. system.inc \
  42. systemh.inc \
  43. textrec.inc \
  44. filerec.inc
  45. .PHONY: clean diffclean diffs
  46. all:
  47. clean:
  48. -$(DEL) *.dif
  49. diffclean:
  50. -$(DEL) *.dif
  51. %.dif : %.inc
  52. -$(DIFF) $(DIFFOPTS) $*.inc $(REFPATH)/inc/$*.inc > $*.dif
  53. %.dif : %.pp
  54. -$(DIFF) $(DIFFOPTS) $*.pp $(REFPATH)/inc/$*.pp > $*.dif
  55. makefile.dif : makefile
  56. -$(DIFF) $(DIFFOPTS) makefile $(REFPATH)/inc/makefile > makefile.dif
  57. diffs : $(patsubst %.inc,%.dif,$(INCFILES)) \
  58. $(patsubst %.pp,%.dif,$(PPFILES)) \
  59. makefile.dif