From 7be0926cefd5b04084939394f50f3e2aed74f84a Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 11 2021 08:58:39 +0000 Subject: project: added missing inference rule for application objects (.ao suffix). --- diff --git a/project/variants/3.6.3/common.mk b/project/variants/3.6.3/common.mk index b68c998..984d170 100644 --- a/project/variants/3.6.3/common.mk +++ b/project/variants/3.6.3/common.mk @@ -1,3 +1,4 @@ +core/%.ao: CFLAGS_APP += -DPy_BUILD_CORE core/%.lo: CFLAGS_SHARED += -DPy_BUILD_CORE core/%.o: CFLAGS_STATIC += -DPy_BUILD_CORE @@ -7,6 +8,9 @@ core/Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.t core/Modules/config.o: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_STATIC) +core/%.ao: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_APP) + core/%.lo: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) diff --git a/project/variants/3.7.1/common.mk b/project/variants/3.7.1/common.mk index 0b79544..add8705 100644 --- a/project/variants/3.7.1/common.mk +++ b/project/variants/3.7.1/common.mk @@ -1,6 +1,6 @@ +core/%.ao: CFLAGS_APP += -DPy_BUILD_CORE core/%.lo: CFLAGS_SHARED += -DPy_BUILD_CORE core/%.o: CFLAGS_STATIC += -DPy_BUILD_CORE -core/%.o: CFLAGS_APP += -DPy_BUILD_CORE core/Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) @@ -8,6 +8,9 @@ core/Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.t core/Modules/config.o: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_STATIC) +core/%.ao: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_APP) + core/%.lo: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) diff --git a/project/variants/3.7.2/common.mk b/project/variants/3.7.2/common.mk index 0b79544..add8705 100644 --- a/project/variants/3.7.2/common.mk +++ b/project/variants/3.7.2/common.mk @@ -1,6 +1,6 @@ +core/%.ao: CFLAGS_APP += -DPy_BUILD_CORE core/%.lo: CFLAGS_SHARED += -DPy_BUILD_CORE core/%.o: CFLAGS_STATIC += -DPy_BUILD_CORE -core/%.o: CFLAGS_APP += -DPy_BUILD_CORE core/Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED) @@ -8,6 +8,9 @@ core/Modules/config.lo: build/config.c $(ALL_HEADERS) host.tag tree.tag config.t core/Modules/config.o: build/config.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_STATIC) +core/%.ao: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag + $(CC) -c -o $@ $< $(CFLAGS_APP) + core/%.lo: $(SOURCE_DIR)/%.c $(ALL_HEADERS) host.tag tree.tag config.tag $(CC) -c -o $@ $< $(CFLAGS_SHARED)