diff --git a/Makefile b/Makefile index cf0c8b87..53e38b5b 100644 --- a/Makefile +++ b/Makefile @@ -1438,6 +1438,7 @@ D_FILES += $(LIB_C_FILES:%.c=%.d) all: $(LIB) $(TESTS) $(TEST_NETWORK_CONFIG) $(NET_TESTS) $(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES) + rm -f $@ $(AR) rcu $@ $^ run_tests: $(RUN_TESTS) diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py index 394a621a..c77a534a 100755 --- a/freebsd-to-rtems.py +++ b/freebsd-to-rtems.py @@ -478,6 +478,7 @@ class ModuleManager: 'all: $(LIB) $(TESTS) $(TEST_NETWORK_CONFIG) $(NET_TESTS)\n' \ '\n' \ '$(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES)\n' \ + '\trm -f $@\n' \ '\t$(AR) rcu $@ $^\n' \ '\n' \ 'run_tests: $(RUN_TESTS)\n' \