Skip to content

Commit 1c3356d

Browse files
committed
Remove redundant C object build rule
Delete the explicit `$(BUILD)%.o: %.c` compile rule from `firmware-template-gd32/lib/Rules.mk`. This simplifies the make rules and avoids maintaining a duplicate object-build path when the build already resolves object compilation elsewhere.
1 parent 1147bab commit 1c3356d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

firmware-template-gd32/lib/Rules.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ clean:
8585
rm -rf build_gd32
8686
rm -rf lib_gd32
8787

88-
$(BUILD)%.o: %.c
89-
$(CC) $(COPS) -c $< -o $@
90-
9188
$(TARGET): Makefile.GD32 $(OBJECTS)
9289
$(AR) -r $(TARGET) $(OBJECTS)
9390
$(PREFIX)objdump -d $(TARGET) | $(PREFIX)c++filt > lib_gd32/lib.list

0 commit comments

Comments
 (0)