Makefile.mgwtty 4.3 KB

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