rpp_lib_c_OBJS = $(addsuffix .obj,$(basename $(filter %.c, $(rpp_lib_SOURCES))))
rpp_lib_asm_OBJS = $(addsuffix .obj,$(basename $(filter %.asm, $(rpp_lib_SOURCES))))
rpp_lib_OBJS = $(rpp_lib_c_OBJS) $(rpp_lib_asm_OBJS)
-rpp_lib_DEPS = $(rpp_lib_OBJS:%=%.dep)
+rpp_lib_DEPS = $(rpp_lib_OBJS:%=%.dep) rpp/src/gio_names.txt.dep
rpp-lib.lib: $(rpp_lib_OBJS) #../rpp/TMS570LS313xFlashLnk.cmd
$(AR) r $@ $^
$(call mkdir,$(dir $@))
$(RPP_PREPROC_CMD)
+# Work around TI compiler bug in dependency generation - it always
+# adds .obj even if the output file lacks this extension.
+rpp/src/gio_names.txt: rpp/src/gio_names.txt.obj
+rpp/src/gio_names.txt.obj:
+ $(call mkdir,$(dir $@))
+ echo xxx > $(call pathconv,$@)
.PHONY: all clean $(makefile_lib_inc_dir)/../rpp-lib.lib
--preproc_with_compile
RPP_COMPILE_CMD = $(CC) $(RPP_CFLAGS) $(RPP_MAKE_CFLAGS) $<
-RPP_PREPROC_CMD = $(CC) $(RPP_CFLAGS) --preproc_only --output_file=$@ $<
+RPP_PREPROC_CMD = $(CC) $(RPP_CFLAGS) --preproc_dependency=$(@:%=%.dep) --obj_directory=$(dir $@) $< && \
+ $(CC) $(RPP_CFLAGS) --preproc_only --output_file=$@ $<
+
BUILD_DIR ?= Debug
RPP_LIB_DIR = $(makefile_rules_arm_dir)/$(TARGET)/$(BUILD_DIR)