makefile 799 B

123456789101112131415161718192021222324252627282930
  1. # Makefile for creating dungeon
  2. # 20121204 bkw: modified for use with gnu fortran 4.7.x
  3. ifeq ($(DEBUG),1)
  4. GDT = gdt.for
  5. DLINE = -fd-lines-as-code
  6. else
  7. DLINE = -fd-lines-as-comments
  8. endif
  9. FORS = actors.for ballop.for clockr.for demons.for\
  10. dgame.for dinit.for dmain.for dso1.for dso2.for\
  11. dso3.for dso4.for dso5.for dso6.for dso7.for\
  12. dsub.for dverb1.for dverb2.for lightp.for\
  13. nobjs.for np.for np2.for np3.for nrooms.for objcts.for\
  14. rooms.for sobjs.for sverbs.for verbs.for villns.for\
  15. np1.for blkdata.for rtim.for $(GDT)
  16. dungeon: $(FORS)
  17. g77 $(FFLAGS) -fbackslash $(DLINE) -o dungeon $(FORS)
  18. clean:
  19. rm -f dungeon
  20. install: dungeon
  21. mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/games/dungeon
  22. install -s dungeon $(DESTDIR)/usr/bin
  23. install *.dat $(DESTDIR)/usr/share/games/dungeon