| VERSION := 3.6.2 |
| |
| JDK_HOME := /opt/openjdk7 |
| JDK_JAVAC = $(JDK_HOME)/bin/javac |
| JDK_JAVAC_FLAGS += -source 1.5 -target 1.5 |
| #JAR ?= $(JDK_HOME)/bin/jar |
| 7Z ?= 7za |
| CLASS_PATH := lib/lwjgl.jar:lib/lwjgl_util.jar:lib/log4j-1.2.16.jar:lib/gson-2.2.4.jar |
| |
| CLASSES := \ |
| build/com/apocalyptech/minecraft/xray/CameraPreset.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftConstants.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftConstants$$1.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftConstants$$ACTION_CAT.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftConstants$$BLOCK_TYPE.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftConstants$$KEY_ACTION.class \ |
| build/com/apocalyptech/minecraft/xray/BlockTypeCollection.class \ |
| build/com/apocalyptech/minecraft/xray/TextureTool.class \ |
| build/com/apocalyptech/minecraft/xray/DimensionFilter.class \ |
| build/com/apocalyptech/minecraft/xray/RegionFile.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$3.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$4.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$5.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$DisplayModesRenderer.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ResolutionDialog$$LevelDatFileFilter.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$3.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$4.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$5.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$6.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyHelpDialog$$STATE.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindMainButton.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/WarningDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/WarningDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/WarningDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyPanel.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyPanel$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindButton.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindChooserButton.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$3.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$4.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$5.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/JumpDialog$$6.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyField.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/KeyField$$KeyFieldMouseListener.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ExceptionDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog$$3.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog$$4.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindDialog$$5.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ExceptionDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/ExceptionDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindChooserDialog.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindChooserDialog$$1.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindChooserDialog$$2.class \ |
| build/com/apocalyptech/minecraft/xray/dialog/BlockBindChooserDialog$$3.class \ |
| build/com/apocalyptech/minecraft/xray/RegionFileFilter.class \ |
| build/com/apocalyptech/minecraft/xray/RegionFileFilter$$1.class \ |
| build/com/apocalyptech/minecraft/xray/ChunkAnvil.class \ |
| build/com/apocalyptech/minecraft/xray/DimensionFilterException.class \ |
| build/com/apocalyptech/minecraft/xray/TextureDecorationStats.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/LongTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/IntArrayTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/EndTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/StringTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/ShortArrayTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/FloatTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/ShortTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/DTFReader.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/DoubleTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/ListTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/IntTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/ByteArrayTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/CompoundTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/ByteTag.class \ |
| build/com/apocalyptech/minecraft/xray/dtf/Tag.class \ |
| build/com/apocalyptech/minecraft/xray/PaintingEntity.class \ |
| build/com/apocalyptech/minecraft/xray/WorldInfo.class \ |
| build/com/apocalyptech/minecraft/xray/WorldInfo$$MAP_TYPE.class \ |
| build/com/apocalyptech/minecraft/xray/WorldInfo$$PlayerDatFilter.class \ |
| build/com/apocalyptech/minecraft/xray/XRayProperties.class \ |
| build/com/apocalyptech/minecraft/xray/Texture.class \ |
| build/com/apocalyptech/minecraft/xray/LightSourceRegistry.class \ |
| build/com/apocalyptech/minecraft/xray/BlockTypeLoadException.class \ |
| build/com/apocalyptech/minecraft/xray/BlockTypeRegular.class \ |
| build/com/apocalyptech/minecraft/xray/Chunk.class \ |
| build/com/apocalyptech/minecraft/xray/Chunk$$1.class \ |
| build/com/apocalyptech/minecraft/xray/Chunk$$RENDER_PASS.class \ |
| build/com/apocalyptech/minecraft/xray/Chunk$$SOLID_PASS.class \ |
| build/com/apocalyptech/minecraft/xray/Chunk$$STAIR_RENDER.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftLevel.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftLevel$$1.class \ |
| build/com/apocalyptech/minecraft/xray/RegionFileCache.class \ |
| build/com/apocalyptech/minecraft/xray/RegionFileCache$$1.class \ |
| build/com/apocalyptech/minecraft/xray/BlockTypeFilename.class \ |
| build/com/apocalyptech/minecraft/xray/ChunkOriginal.class \ |
| build/com/apocalyptech/minecraft/xray/SpriteTool.class \ |
| build/com/apocalyptech/minecraft/xray/IntegerPair.class \ |
| build/com/apocalyptech/minecraft/xray/XRay.class \ |
| build/com/apocalyptech/minecraft/xray/XRay$$1.class \ |
| build/com/apocalyptech/minecraft/xray/XRay$$HIGHLIGHT_TYPE.class \ |
| build/com/apocalyptech/minecraft/xray/XRay$$RenderToggles.class \ |
| build/com/apocalyptech/minecraft/xray/PaintingInfo.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment$$1.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment$$BlockdefFilter.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment$$CaseInsensitiveComparator.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment$$MCDirectoryFilter.class \ |
| build/com/apocalyptech/minecraft/xray/MinecraftEnvironment$$OS.class \ |
| build/com/apocalyptech/minecraft/xray/BlockType.class \ |
| build/com/apocalyptech/minecraft/xray/BlockType$$DIRECTION_ABS.class \ |
| build/com/apocalyptech/minecraft/xray/BlockType$$DIRECTION_REL.class \ |
| build/com/apocalyptech/minecraft/xray/Block.class \ |
| build/com/apocalyptech/minecraft/xray/FirstPersonCameraController.class |
| |
| default: build minecraft_xray_${VERSION}.jar |
| |
| minecraft_xray_${VERSION}.jar: $(CLASSES) $(RESOURCES) build/META-INF/MANIFEST.MF |
| #cd build && $(JAR) -c $(patsubst build/%,%,$(subst $$,\$$,$^)) > ../$@ |
| rm -f $@ |
| cd build && $(7Z) a -tzip ../$@ $(patsubst build/%,%,$(subst $$,\$$,$^)) |
| |
| clean: |
| rm -f minecraft_xray_${VERSION}.jar $(subst $$,\$$,$(CLASSES)) $(RESOURCES) |
| |
| build: |
| mkdir $@ |
| |
| build/%.class: src/%.java |
| $(JDK_JAVAC) $(JDK_JAVAC_FLAGS) -classpath $(CLASS_PATH):build:src -d build $< |
| |
| build/%$$*.class: src/%.java |
| |
| build/META-INF/MANIFEST.MF: META-INF/MANIFEST.MF |
| [ -d build/META-INF ] || mkdir -p build/META-INF |
| cp $< $@ |