diff options
Diffstat (limited to 'libs/JSystem/JSupport')
| -rw-r--r-- | libs/JSystem/JSupport/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/JSystem/JSupport/Makefile b/libs/JSystem/JSupport/Makefile index 66b713ac18..34ca9caf1c 100644 --- a/libs/JSystem/JSupport/Makefile +++ b/libs/JSystem/JSupport/Makefile @@ -27,9 +27,16 @@ $(BUILD_DIR)/libJSupport.a: $(LIBJSUPPORT_A_O_FILES) @echo $(LIBJSUPPORT_A_O_FILES) > build/LIBJSUPPORT_A_ofiles @$(LD) -xm l $(LIBJSUPPORT_A_LDFLAGS) -o $(BUILD_DIR)/libJSupport.a @build/LIBJSUPPORT_A_ofiles -$(BUILD_DIR)/libs/JSystem/JSupport/%.o: libs/JSystem/JSupport/%.cpp +$(BUILD_DIR)/libs/JSystem/JSupport/%.o: libs/JSystem/JSupport/%.cpp $(BUILD_DIR)/libs/JSystem/JSupport/%.d @mkdir -p $(@D) @echo building... $< @$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp - @$(CC) $(CFLAGS) $(LIBJSUPPORT_A_CFLAGS) -c -o $@ $(basename $@).cpp + @$(CC) $(CFLAGS) $(LIBJSUPPORT_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 +LIBJSUPPORT_A_D_FILES := $(LIBJSUPPORT_A_O_FILES:.o=.d) +$(LIBJSUPPORT_A_D_FILES): +include $(wildcard $(LIBJSUPPORT_A_D_FILES)) +endif |
