mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-13 19:44:32 -04:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -38,10 +38,17 @@ $(M464_TARGET): $(M464_O_FILES) $(M464_LIBS)
|
||||
@python3 tools/lcf.py rel 464 --output $(M464_LDSCRIPT)
|
||||
@$(LD) -opt_partial -strip_partial $(M464_LDFLAGS) -o $(M464_TARGET) @build/M464_ofiles
|
||||
|
||||
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.o: rel/d/a/obj/d_a_obj_graWall/%.cpp
|
||||
$(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.o: rel/d/a/obj/d_a_obj_graWall/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_graWall/%.d
|
||||
@echo [464] building $@
|
||||
@mkdir -p $(@D)
|
||||
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M464_CFLAGS) -c -o $@ $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(M464_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
|
||||
@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi
|
||||
|
||||
ifndef DISABLE_DEPS
|
||||
M464_D_FILES := $(M464_O_FILES:.o=.d)
|
||||
$(M464_D_FILES):
|
||||
include $(wildcard $(M464_D_FILES))
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user