Makefile.TTY 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. CC=cc
  2. LD=cc
  3. RC=windres
  4. CFLAGS=-Wall -DUNIX_TTY
  5. LDFLAGS=
  6. LIB=-lncurses
  7. INSTALL_PATH=/opt/vlarn/bin
  8. LIB_PATH=/opt/vlarn/lib
  9. OBJECT=ularn.o ularn_wintty.o ularn_game.o ularn_ask.o store.o sphere.o spell.o show.o scroll.o scores.o saveutils.o savegame.o potion.o player.o object.o monster.o itm.o help.o getopt.o fortune.o dungeon_obj.o dungeon.o diag.o action.o
  10. all: vlarn
  11. vlarn: $(OBJECT)
  12. $(LD) $(LDFLAGS) -o vlarn $(OBJECT) $(LIB)
  13. install: vlarn lib/vlarn_gfx.xpm lib/Vhelp lib/Vfortune lib/Vmaps
  14. mkdir -p $(INSTALL_PATH)
  15. mkdir -p $(LIB_PATH)
  16. cp vlarn $(INSTALL_PATH)
  17. chmod 555 $(INSTALL_PATH)/vlarn
  18. cp lib/vlarn_gfx.xpm $(LIB_PATH)
  19. chmod 544 $(LIB_PATH)/vlarn_gfx.xpm
  20. cp lib/Vhelp $(LIB_PATH)
  21. chmod 544 $(LIB_PATH)/Vhelp
  22. cp lib/Vfortune $(LIB_PATH)
  23. chmod 544 $(LIB_PATH)/Vfortune
  24. cp lib/Vmaps $(LIB_PATH)
  25. chmod 544 $(LIB_PATH)/Vmaps
  26. rebuild: archive vlarn
  27. clean:
  28. rm -f vlarn *.o
  29. archive: clean
  30. rm -f lib/Vscore
  31. rm -f lib/vlarn.pid
  32. rm -f vlarn.ini
  33. rm -f vlarn.opt
  34. ularn.o: ularn.c patchlevel.h ularn_game.h ularn_win.h ularn_ask.h getopt.h savegame.h scores.h header.h dungeon_obj.h dungeon.h player.h monster.h action.h object.h potion.h scroll.h spell.h show.h help.h diag.h itm.h
  35. $(CC) $(CFLAGS) -c ularn.c
  36. ularn_wintty.o: ularn_wintty.c ularn_win.h header.h ularn_game.h config.h dungeon.h player.h monster.h itm.h x11_simple_menu.h
  37. $(CC) $(CFLAGS) -c ularn_wintty.c
  38. ularn_game.o: ularn_game.c ularn_game.h config.h monster.h player.h
  39. $(CC) $(CFLAGS) -c ularn_game.c
  40. ularn_ask.o: ularn_ask.c ularn_ask.h ularn_game.h ularn_win.h header.h player.h dungeon.h
  41. $(CC) $(CFLAGS) -c ularn_ask.c
  42. store.o: store.c store.h ularn_game.h ularn_win.h ularn_ask.h saveutils.h header.h player.h potion.h scroll.h dungeon.h scores.h show.h itm.h
  43. $(CC) $(CFLAGS) -c store.c
  44. sphere.o: sphere.c sphere.h ularn_game.h ularn_win.h saveutils.h header.h monster.h player.h itm.h
  45. $(CC) $(CFLAGS) -c sphere.c
  46. spell.o: spell.c spell.h header.h ularn_game.h ularn_win.h ularn_ask.h sphere.h show.h dungeon.h monster.h player.h itm.h
  47. $(CC) $(CFLAGS) -c spell.c
  48. show.o: show.c show.h header.h ularn_game.h ularn_win.h ularn_ask.h dungeon.h player.h potion.h scroll.h spell.h itm.h
  49. $(CC) $(CFLAGS) -c show.c
  50. scroll.o: scroll.c scroll.h ularn_win.h header.h potion.h spell.h player.h dungeon.h dungeon_obj.h monster.h itm.h
  51. $(CC) $(CFLAGS) -c scroll.c
  52. scores.o: scores.c scores.h header.h ularn_game.h ularn_win.h ularn_ask.h monster.h itm.h dungeon.h player.h potion.h scroll.h store.h sphere.h show.h
  53. $(CC) $(CFLAGS) -c scores.c
  54. saveutils.o: saveutils.c saveutils.h ularn_win.h scores.h
  55. $(CC) $(CFLAGS) -c saveutils.c
  56. savegame.o: savegame.c savegame.h header.h saveutils.h ularn_game.h ularn_win.h monster.h player.h spell.h dungeon.h sphere.h store.h scores.h itm.h
  57. $(CC) $(CFLAGS) -c savegame.c
  58. potion.o: potion.c potion.h header.h player.h monster.h dungeon.h itm.h ularn_win.h
  59. $(CC) $(CFLAGS) -c potion.c
  60. player.o: player.c player.h ularn_game.h ularn_win.h ularn_ask.h header.h saveutils.h scores.h monster.h dungeon.h dungeon_obj.h scroll.h potion.h spell.h show.h itm.h
  61. $(CC) $(CFLAGS) -c player.c
  62. object.o: object.c object.h ularn_game.h ularn_win.h header.h player.h monster.h itm.h potion.h scroll.h spell.h dungeon.h dungeon_obj.h store.h fortune.h scores.h
  63. $(CC) $(CFLAGS) -c object.c
  64. monster.o: monster.c monster.h header.h ularn_win.h ularn_game.h saveutils.h itm.h player.h dungeon.h sphere.h show.h
  65. $(CC) $(CFLAGS) -c monster.c
  66. itm.o: itm.c itm.h
  67. $(CC) $(CFLAGS) -c itm.c
  68. help.o: help.c help.h header.h ularn_game.h ularn_win.h player.h
  69. $(CC) $(CFLAGS) -c help.c
  70. getopt.o: getopt.c getopt.h
  71. $(CC) $(CFLAGS) -c getopt.c
  72. fortune.o: fortune.c fortune.h header.h
  73. $(CC) $(CFLAGS) -c fortune.c
  74. dungeon_obj.o: dungeon_obj.c dungeon_obj.h ularn_win.h header.h player.h monster.h potion.h scores.h itm.h
  75. $(CC) $(CFLAGS) -c dungeon_obj.c
  76. dungeon.o: dungeon.c dungeon.h ularn_game.h ularn_win.h header.h monster.h itm.h player.h potion.h scroll.h saveutils.h scores.h
  77. $(CC) $(CFLAGS) -c dungeon.c
  78. diag.o: diag.c diag.h header.h ularn_game.h itm.h dungeon.h monster.h player.h potion.h scroll.h spell.h ularn_win.h
  79. $(CC) $(CFLAGS) -c diag.c
  80. action.o: action.c action.h ularn_game.h ularn_win.h header.h savegame.h itm.h player.h monster.h dungeon.h dungeon_obj.h potion.h scroll.h show.h fortune.h
  81. $(CC) $(CFLAGS) -c action.c