source: lost-perception/makefile@ 57674f3

Last change on this file since 57674f3 was 57674f3, checked in by Dmitry Portnoy <dmp1488@…>, 4 years ago

Fix the makefile so it works correctly for both MapEditor and LostPerception

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[57674f3]1NOTE: Currently, this assumes that I have first compiled the .java files into .class files
2
[a10d422]3# Use something like "LostPerception: MAP_FILE_DEPS = maps/*.txt" to specify var for a specific target
4
[57674f3]5ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/AStarSearch.class astar/BinaryHeap.class astar/QuadTree.class
6COLLISION_DEPS = collision/Bound.class
[a10d422]7#GAMEGUI_DEPS = gamegui/Align.class gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Listable.class gamegui/Member.class gamegui/ScrollBar.class gamegui/ScrollList.class gamegui/Textbox.class gamegui/Window.class
[57674f3]8GAMEGUI_DEPS = gamegui/Align.class gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Member.class gamegui/ScrollBar.class gamegui/ScrollList.class gamegui/Window.class
9UTILS_DEPS = utils/DynamicImage.class utils/Utils.class utils/WrappedString.class
[a10d422]10
[57674f3]11MAIN_DEPS = main/Action.class main/Armor.class main/Creature.class main/Dialog.class main/Direction.class main/Effect.class main/Enemy.class main/Item.class main/Location.class main/LostHavenRPG.class main/Map.class main/MapImage.class main/MapObject.class main/MapType.class main/Model.class main/NPC.class main/Player.class main/StatType.class main/Tile.class main/Weapon.class
[a10d422]12
13#GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
[57674f3]14LostPerception: GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class
[a10d422]15#MAIN_INNER_DEPS = main/Armor\$$ArmorType.class main/Effect\$$MoveSpeed.class main/Effect\$$Hitpoints.class main/Effect\$$Manapoints.class main/Effect\$$Damage.class main/Effect\$$AttackSpeed.class main/LostHavenRPG\$$1.class main/LostHavenRPG\$$AuxState.class main/LostHavenRPG\$$GameState.class main/Model\$$1.class
[57674f3]16LostPerception: MAIN_INNER_DEPS = main/Armor\$$ArmorType.class main/Effect\$$AttackSpeed.class main/Effect\$$Damage.class main/Effect\$$Hitpoints.class main/Effect\$$MoveSpeed.class main/LostHavenRPG\$$1.class main/LostHavenRPG\$$AuxState.class main/LostHavenRPG\$$GameState.class main/Model\$$1.class
17LostPerception: UTILS_INNER_DEPS = utils/Utils\$$1.class
[a10d422]18
[57674f3]19LostPerception: INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS) $(UTILS_INNER_DEPS)
[a10d422]20
[57674f3]21DIALOG_FILE_DEPS = dialog/*.txt
22IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png images/*/*.ttf
23MAP_FILE_DEPS = maps/*.txt
[a10d422]24
[57674f3]25CLASS_DEPS = $(MAIN_DEPS) $(ASTAR_DEPS) $(GAMEGUI_DEPS) $(COLLISION_DEPS) $(UTILS_DEPS)
26FILE_DEPS = $(DIALOG_FILE_DEPS) $(IMAGE_FILE_DEPS) $(MAP_FILE_DEPS)
[a10d422]27
[57674f3]28LostPerception: $(CLASS_DEPS) $(FILE_DEPS)
29 jar cfe $@.jar main.LostHavenRPG $^ $(INNER_DEPS)
[a10d422]30
31ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/QuadTree.class
[ebd3538]32COLLISION_DEPS = collision/Bound.class
[a10d422]33GAMEGUI_DEPS = gamegui/Align.class gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Member.class gamegui/ScrollBar.class gamegui/Textbox.class gamegui/Window.class
34UTILS_DEPS = utils/DynamicImage.class utils/Utils.class
[ebd3538]35
[a10d422]36MAIN_DEPS = main/Action.class main/Creature.class main/Direction.class main/Enemy.class main/Item.class main/Location.class main/Map.class main/MapEditor.class main/MapImage.class main/MapObject.class main/MapType.class main/Model.class main/Player.class main/StatType.class main/Tile.class
[ebd3538]37
[57674f3]38MapEditor: GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
39MapEditor: MAIN_INNER_DEPS = main/MapEditor\$$1.class main/MapEditor\$$AuxState.class main/MapEditor\$$GroundType.class main/MapEditor\$$State.class main/Model\$$1.class
40MapEditor: UTILS_INNER_DEPS = utils/Utils\$$1.class
[ebd3538]41
[57674f3]42MapEditor: INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS) $(UTILS_INNER_DEPS)
[ebd3538]43
[a10d422]44IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png
[ebd3538]45
46CLASS_DEPS = $(MAIN_DEPS) $(ASTAR_DEPS) $(GAMEGUI_DEPS) $(COLLISION_DEPS) $(UTILS_DEPS)
[a10d422]47FILE_DEPS = $(IMAGE_FILE_DEPS)
[ebd3538]48
[a10d422]49MapEditor: $(CLASS_DEPS) $(FILE_DEPS)
50 jar cfe $@.jar main.MapEditor $^ $(INNER_DEPS)
Note: See TracBrowser for help on using the repository browser.