--reread_libs --warn_sections \
--display_error_number --rom_model \
--search_path=$(ARM_COMPILER_DIR)/lib \
- --search_path=../../../Debug \
- --library=rpp-lib.lib \
--library="rtsv7R4_T_be_v3D16_eabi.lib" \
--generate_dead_funcs_list=$(@:%.out=%.deadfuncs.xml)
all:: rpp-test-suite.out
-rpp-test-suite.out: $(rpp-test-suite_OBJS) ../../../rpp/TMS570LS313xFlashLnk.cmd
- $(MAKE) -C ../../../Debug # Compile the library
+.PHONY: FORCE
+../../../Debug/rpp-lib.lib: FORCE
+ $(MAKE) -C ../../../Debug
+
+rpp-test-suite.out: $(rpp-test-suite_OBJS) ../../../Debug/rpp-lib.lib ../../../rpp/TMS570LS313xFlashLnk.cmd
$(LD) $(LDFLAGS) -o $@ $^
-include $(rpp-test-suite_OBJS:%.obj=%.dep)
all:: rpp-test-suite
-rpp-test-suite: $(rpp-test-suite_OBJS) ../../../POSIX/rpp-lib.a
+.PHONY: FORCE
+../../../POSIX/rpp-lib.a: FORCE
$(MAKE) -C ../../../POSIX # Compile the library
+
+rpp-test-suite: $(rpp-test-suite_OBJS) ../../../POSIX/rpp-lib.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-include $(rpp-test-suite_DEPS)