Merge pull request #1330 from openmv/fix_makefiles

Add special Makefile rule for string functions.
This commit is contained in:
Ibrahim Abd Elkader 2021-05-22 22:19:53 +02:00 committed by GitHub
commit a1600a2ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ $(BUILD)/%.o : %.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/src/string0.o : src/string0.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -ffreestanding -fno-builtin -fno-lto -c -o $@ $<
$(BUILD)/%.o : %.s
$(ECHO) "AS $<"
$(AS) $(AFLAGS) $< -o $@

View File

@ -18,6 +18,10 @@ $(BUILD)/%.o : %.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -c -o $@ $<
$(BUILD)/src/string0.o : src/string0.c
$(ECHO) "CC $<"
$(CC) $(CFLAGS) -ffreestanding -fno-builtin -fno-lto -c -o $@ $<
$(BUILD)/%.o : %.s
$(ECHO) "AS $<"
$(AS) $(AFLAGS) $< -o $@