mirror of
https://github.com/n64decomp/mk64
synced 2026-09-07 18:50:36 -04:00
4c4cb36b4d
* Add Windows Support * Modify readme instructions for windows building * Remove unused files * Modified extract_assets.py, new_extract_assets.py, and build.py to work on windows
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
BOWSERS_CASTLE_DIR := assets/courses/bowsers_castle
|
|
|
|
THWOMP_PALETTE := $(BOWSERS_CASTLE_DIR)/gTLUTThwomp.png
|
|
|
|
THWOMP_FACE_FRAMES := \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace1.png \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace2.png \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace3.png \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace4.png \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace5.png \
|
|
$(BOWSERS_CASTLE_DIR)/gTextureThwompFace6.png
|
|
|
|
THOWMP_SIDE_PNG := $(BOWSERS_CASTLE_DIR)/gTextureThwompSide.png
|
|
|
|
BOWSERS_CASTLE_EXPORT_SENTINEL := $(BOWSERS_CASTLE_DIR)/.export
|
|
|
|
$(BUILD_DIR)/courses/bowsers_castle/course_data.inc.o: $(THWOMP_FACE_FRAMES:%.png=%.inc.c) $(THWOMP_PALETTE:%.png=%.inc.c)
|
|
$(BUILD_DIR)/courses/bowsers_castle/course_data.inc.o: $(THOWMP_SIDE_PNG:%.png=%.inc.c)
|
|
|
|
$(THOWMP_SIDE_PNG:%.png=%.inc.c) $(THWOMP_PALETTE:%.png=%.inc.c): %.inc.c : %.png
|
|
$(N64GRAPHICS) -i $@ -g $< -s u8 -f rgba16
|
|
|
|
$(THWOMP_FACE_FRAMES:%.png=%.inc.c): %.inc.c : %.png
|
|
$(N64GRAPHICS) -Z $@ -g $< -s u8 -f ci8 -c rgba16 -p $(THWOMP_PALETTE)
|
|
|
|
$(THWOMP_PALETTE) $(THWOMP_FACE_FRAMES) $(THOWMP_SIDE_PNG): $(BOWSERS_CASTLE_EXPORT_SENTINEL) ;
|
|
|
|
$(BOWSERS_CASTLE_EXPORT_SENTINEL): $(ASSET_DIR)/courses/bowsers_castle.json
|
|
$(ASSET_EXTRACT) $(BASEROM) $<
|
|
$(TOUCH) $@
|
|
|
|
.PHONY: distclean_bowsers_castle
|
|
distclean_bowsers_castle:
|
|
rm -rf $(BOWSERS_CASTLE_DIR)
|
|
|
|
distclean_assets: distclean_bowsers_castle
|