makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 =
  36. INCFILES = m68k.inc
  37. all:
  38. .PHONY: clean diffclean diffs
  39. clean:
  40. -$(DEL) *.dif
  41. diffclean:
  42. -$(DEL) *.dif
  43. %.dif : %.inc
  44. -$(DIFF) $(DIFFOPTS) $*.inc $(REFPATH)/m68k/$*.inc > $*.dif
  45. %.dif : %.pp
  46. -$(DIFF) $(DIFFOPTS) $*.pp $(REFPATH)/m68k/$*.pp > $*.dif
  47. makefile.dif : makefile
  48. -$(DIFF) $(DIFFOPTS) makefile $(REFPATH)/m68k/makefile > makefile.dif
  49. diffs : $(patsubst %.inc,%.dif,$(INCFILES)) \
  50. $(patsubst %.pp,%.dif,$(PPFILES)) \
  51. makefile.dif