mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Generate makefiles from dol2asm
This commit is contained in:
@@ -23,9 +23,16 @@ $(BUILD_DIR)/libJ3DU.a: $(LIBJ3DU_A_O_FILES)
|
||||
@echo $(LIBJ3DU_A_O_FILES) > build/LIBJ3DU_A_ofiles
|
||||
@$(LD) -xm l $(LIBJ3DU_A_LDFLAGS) -o $(BUILD_DIR)/libJ3DU.a @build/LIBJ3DU_A_ofiles
|
||||
|
||||
$(BUILD_DIR)/libs/JSystem/J3DU/%.o: libs/JSystem/J3DU/%.cpp
|
||||
$(BUILD_DIR)/libs/JSystem/J3DU/%.o: libs/JSystem/J3DU/%.cpp $(BUILD_DIR)/libs/JSystem/J3DU/%.d
|
||||
@mkdir -p $(@D)
|
||||
@echo building... $<
|
||||
@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(LIBJ3DU_A_CFLAGS) -c -o $@ $(basename $@).cpp
|
||||
@$(CC) $(CFLAGS) $(LIBJ3DU_A_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
|
||||
LIBJ3DU_A_D_FILES := $(LIBJ3DU_A_O_FILES:.o=.d)
|
||||
$(LIBJ3DU_A_D_FILES):
|
||||
include $(wildcard $(LIBJ3DU_A_D_FILES))
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user