@@ -149,67 +149,23 @@ $(OBJDIR)startup.o : $(APP_SRC)startup.s
149149
150150
151151# FreeRTOS core
152-
153- $(OBJDIR ) queue.o : $(FREERTOS_SRC ) queue.c
154- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
155-
156- $(OBJDIR ) list.o : $(FREERTOS_SRC ) list.c
157- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
158-
159- $(OBJDIR ) tasks.o : $(FREERTOS_SRC ) tasks.c
160- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
161-
162- $(OBJDIR ) timers.o : $(FREERTOS_SRC ) timers.c
163- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
164-
165- $(OBJDIR ) croutine.o : $(FREERTOS_SRC ) croutine.c
166- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
167-
168- $(OBJDIR ) event_groups.o : $(FREERTOS_SRC ) event_groups.c
169- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
170-
171- $(OBJDIR ) stream_buffer.o : $(FREERTOS_SRC ) stream_buffer.c
152+ $(OBJDIR ) % .o : $(FREERTOS_SRC ) % .c
172153 $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
173154
174155
175156# HW specific part, in FreeRTOS/Source/portable/$(PORT_COMP_TARGET)
176-
177- $(OBJDIR ) port.o : $(FREERTOS_PORT_SRC ) port.c
178- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $(INC_FLAG_DRIVERS ) $< $(OFLAG ) $@
179-
180- $(OBJDIR ) portISR.o : $(FREERTOS_PORT_SRC ) portISR.c
157+ $(OBJDIR ) % .o : $(FREERTOS_PORT_SRC ) % .c
181158 $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $(INC_FLAG_DRIVERS ) $< $(OFLAG ) $@
182159
183-
184160# Rules for all MemMang implementations are provided
185161# Only one of these object files must be linked to the final target
186-
187- $(OBJDIR ) heap_1.o : $(FREERTOS_MEMMANG_SRC ) heap_1.c
188- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
189-
190- $(OBJDIR ) heap_2.o : $(FREERTOS_MEMMANG_SRC ) heap_2.c
191- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
192-
193- $(OBJDIR ) heap_3.o : $(FREERTOS_MEMMANG_SRC ) heap_3.c
194- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
195-
196- $(OBJDIR ) heap_4.o : $(FREERTOS_MEMMANG_SRC ) heap_4.c
162+ $(OBJDIR ) % .o : $(FREERTOS_MEMMANG_SRC ) % .c
197163 $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
198164
199- $(OBJDIR ) heap_5.o : $(FREERTOS_MEMMANG_SRC ) heap_5.c
200- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAGS ) $< $(OFLAG ) $@
201-
202-
203165# Drivers
204-
205- $(OBJDIR ) timer.o : $(DRIVERS_SRC ) timer.c $(DEP_BSP )
166+ $(OBJDIR ) % .o : $(DRIVERS_SRC ) % .c $(DEP_BSP )
206167 $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAG_DRIVERS ) $< $(OFLAG ) $@
207168
208- $(OBJDIR ) interrupt.o : $(DRIVERS_SRC ) interrupt.c $(DEP_BSP )
209- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAG_DRIVERS ) $< $(OFLAG ) $@
210-
211- $(OBJDIR ) uart.o : $(DRIVERS_SRC ) uart.c $(DEP_BSP )
212- $(CC ) $(CFLAG ) $(CFLAGS ) $(INC_FLAG_DRIVERS ) $< $(OFLAG ) $@
213169
214170# Demo application
215171
0 commit comments