You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
######################################################################
|
|
# Top Level: STM32F103C8T6 Projects
|
|
######################################################################
|
|
|
|
PROJECTS_DIR = project
|
|
|
|
.PHONY = libopencm3 clobber_libopencm3 clean_libopencm3
|
|
|
|
all: libopencm3
|
|
$(MAKE) -$(MAKEFLAGS) -C $(PROJECTS_DIR)
|
|
|
|
clean: clean_libopencm3
|
|
for d in $(PROJECTS) ; do \
|
|
$(MAKE) -C $$d clean ; \
|
|
done
|
|
$(MAKE) -$(MAKEFLAGS) -C $(PROJECTS_DIR) clean
|
|
|
|
clobber: clobber_libopencm3
|
|
for d in $(PROJECTS) ; do \
|
|
$(MAKE) -C $$d clobber ; \
|
|
done
|
|
$(MAKE) -$(MAKEFLAGS) -C $(PROJECTS_DIR) clobber
|
|
|
|
clean_libopencm3: clobber_libopencm3
|
|
|
|
clobber_libopencm3:
|
|
rm -f libopencm3/lib/libopencm3_stm32f1.a
|
|
rm -f libopencm3/lib/libopencm3_stm32f4.a
|
|
-$(MAKE) -$(MAKEFLAGS) -C ./libopencm3 clean
|
|
|
|
libopencm3: libopencm3/lib/libopencm3_stm32f1.a libopencm3/lib/libopencm3_stm32f4.a
|
|
|
|
libopencm3/lib/libopencm3_stm32f1.a:
|
|
$(MAKE) -C libopencm3 TARGETS=stm32/f1
|
|
|
|
libopencm3/lib/libopencm3_stm32f4.a:
|
|
$(MAKE) -C libopencm3 TARGETS=stm32/f4
|
|
|
|
# Uncomment if necessary:
|
|
# MAKE = gmake
|
|
|
|
# End
|
|
|
|
|