Changeset b2d7893 in lost-haven for makefile


Ignore:
Timestamp:
Feb 20, 2021, 6:43:24 PM (4 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
4d8825f
Parents:
a49176d
Message:

Change all file paths to work from inside a JAR and update the makefile to correctly build the project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • makefile

    ra49176d rb2d7893  
    1 # Copied from lost-perception
    2 # TODO: Make this makefile work for this project
     1GAMEGUI_DEPS = gamegui/Align.class gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Listable.class gamegui/Member.class gamegui/MultiTextbox.class gamegui/ScrollBar.class gamegui/ScrollList.class gamegui/Textbox.class gamegui/Window.class
    32
    4 #ASTAR_DEPS = astar/AStarMap.class astar/AStarNode.class astar/AStarSearch.class astar/BinaryHeap.class astar/QuadTree.class
    5 #COLLISION_DEPS = collision/Bound.class
    6 #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
    7 GAMEGUI_DEPS = gamegui/Animation.class gamegui/Button.class gamegui/Label.class gamegui/Member.class gamegui/RadioGroup.class gamegui/Textbox.class
    8 #UTILS_DEPS = utils/DynamicImage.class utils/Utils.class utils/WrappedString.class
     3MAIN_DEPS = main/Action.class main/AreaOfEffect.class main/ArtifactPoint.class main/AttackType.class main/Attribute.class main/AuxState.class main/ChangeDamage.class main/Confuse.class main/Creature.class main/CreatureType.class main/Damage.class main/Direction.class main/Disable.class main/GameState.class main/Effect.class main/EffectType.class main/EquippedWeapon.class main/Gem.class main/Item.class main/ItemDrop.class main/ItemType.class main/Land.class main/LandType.class main/Location.class main/LostHavenRPG.class main/ManaDrain.class main/Map.class main/MapElement.class main/Model.class main/MoveSpeed.class main/Penetrate.class main/Player.class main/Point.class main/ProjectileSpeed.class main/RespawnPoint.class main/Skill.class main/SpawnPoint.class main/Structure.class main/StructureType.class main/TargetType.class main/TimedEffect.class main/Weapon.class
    94
    10 #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
    11 MAIN_DEPS = main/LostHavenRPG.class
     5GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
     6MAIN_INNER_DEPS = main/Creature\$$1.class main/EquippedWeapon\$$1.class main/LostHavenRPG\$$1.class main/Model\$$1.class main/Player\$$1.class main/Player\$$ItemImg.class
    127
    13 #GAMEGUI_INNER_DEPS = gamegui/Button\$$1.class gamegui/Label\$$1.class
    14 #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
    15 #UTILS_INNER_DEPS = utils/Utils\$$1.class
     8INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS)
    169
    17 #INNER_DEPS = $(GAMEGUI_INNER_DEPS) $(MAIN_INNER_DEPS) $(UTILS_INNER_DEPS)
     10IMAGE_FILE_DEPS = images/*.png images/*/*.png images/*/*/*.png
     11MAP_FIL_DEPS =
    1812
    19 #DIALOG_FILE_DEPS = dialog/*.txt
    20 #IMAGE_FILE_DEPS = images/*/*.png images/creatures/*/*/*.png images/*/*.ttf
    21 #MAP_FILE_DEPS = maps/*.txt
     13CLASS_DEPS = $(MAIN_DEPS) $(GAMEGUI_DEPS)
     14FILE_DEPS = $(IMAGE_FILE_DEPS) $(MAP_FILE_DEPS)
    2215
    23 #CLASS_DEPS = $(MAIN_DEPS) $(ASTAR_DEPS) $(GAMEGUI_DEPS) $(COLLISION_DEPS) $(UTILS_DEPS)
    24 CLASS_DEPS = $(MAIN_DEPS)
    25 #FILE_DEPS = $(DIALOG_FILE_DEPS) $(IMAGE_FILE_DEPS) $(MAP_FILE_DEPS)
    26 FILE_DEPS =
    27 
    28 LostHaven: $(CLASS_DEPS) #$(FILE_DEPS)
    29         jar cfe [email protected] main.LostHavenRPG $^
     16LostHaven: $(CLASS_DEPS) $(FILE_DEPS)
     17        jar cfe [email protected] main.LostHavenRPG $(INNER_DEPS) $^
Note: See TracChangeset for help on using the changeset viewer.