Changeset a10d422 in lost-perception for makefile


Ignore:
Timestamp:
Jun 4, 2020, 4:15:10 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
master
Children:
57674f3
Parents:
5d846bb
Message:

Create a working makefile target for MapEditor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • makefile

    r5d846bb ra10d422  
    1 ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/AStarSearch.class astar/BinaryHeap.class astar/QuadTree.class
     1# Use something like "LostPerception: MAP_FILE_DEPS = maps/*.txt" to specify var for a specific target
     2
     3#ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/AStarSearch.class astar/BinaryHeap.class astar/QuadTree.class
     4#COLLISION_DEPS = collision/Bound.class
     5#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
     6#UTILS_DEPS = utils/DynamicImage.class utils/Utils.class utils/WrappedString.class
     7
     8#MAIN_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
     9
     10#GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
     11#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
     12#UTILS_INNER_DEPS = utils/Utils\$$1.class
     13
     14#INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS) $(UTILS_INNER_DEPS)
     15
     16#DIALOG_FILE_DEPS = dialog/*.txt
     17#IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png images/*/*.ttf
     18#MAP_FILE_DEPS = maps/*.txt
     19
     20#CLASS_DEPS = $(MAIN_DEPS) $(ASTAR_DEPS) $(GAMEGUI_DEPS) $(COLLISION_DEPS) $(UTILS_DEPS)
     21#FILE_DEPS = $(DIALOG_FILE_DEPS) $(IMAGE_FILE_DEPS) $(MAP_FILE_DEPS)
     22
     23#LostPerception: $(CLASS_DEPS) $(FILE_DEPS)
     24#       jar cfe $@.jar main.LostHavenRPG $^ $(INNER_DEPS)
     25
     26ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/QuadTree.class
    227COLLISION_DEPS = collision/Bound.class
    3 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
    4 UTILS_DEPS = utils/DynamicImage.class utils/Utils.class utils/WrappedString.class
     28GAMEGUI_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
     29UTILS_DEPS = utils/DynamicImage.class utils/Utils.class
    530
    6 MAIN_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
     31MAIN_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
    732
    833GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
    9 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
     34MAIN_INNER_DEPS = main/MapEditor\$$1.class main/MapEditor\$$AuxState.class  main/MapEditor\$$GroundType.class main/MapEditor\$$State.class main/Model\$$1.class
    1035UTILS_INNER_DEPS = utils/Utils\$$1.class
    1136
    1237INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS) $(UTILS_INNER_DEPS)
    1338
    14 DIALOG_FILE_DEPS = dialog/*.txt
    15 IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png images/*/*.ttf
    16 MAP_FILE_DEPS = maps/*.txt
     39IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png
    1740
    1841CLASS_DEPS = $(MAIN_DEPS) $(ASTAR_DEPS) $(GAMEGUI_DEPS) $(COLLISION_DEPS) $(UTILS_DEPS)
    19 FILE_DEPS = $(DIALOG_FILE_DEPS) $(IMAGE_FILE_DEPS) $(MAP_FILE_DEPS)
     42FILE_DEPS = $(IMAGE_FILE_DEPS)
    2043
    21 LostPerception: $(CLASS_DEPS) $(FILE_DEPS)
    22         jar cfe $@.jar main.LostHavenRPG $^ $(INNER_DEPS)
     44MapEditor: $(CLASS_DEPS) $(FILE_DEPS)
     45        jar cfe $@.jar main.MapEditor $^ $(INNER_DEPS)
Note: See TracChangeset for help on using the changeset viewer.