aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f1/Makefile
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2012-08-13 14:37:07 -0700
committerPiotr Esden-Tempski2012-08-13 15:19:57 -0700
commit3441bba1c4fc2710bef73402f58b5499cea20b42 (patch)
tree3516e5351d97e3f345245826294fa30542a98bf1 /lib/stm32/f1/Makefile
parenta2c5b6391d82684838e923c6d7437367110f5480 (diff)
Changed local build target for library and linker files.
- The library files are now being built into the lib subdirectory of the source. - The linker files for each library are being copied into the lib source subdirectory. Motivation: The relative locations of files in the source directory after make are now the same as after make install now. This makes it easier to reuse examples with their makefiles outside of the libopencm3 sourcecode directory.
Diffstat (limited to 'lib/stm32/f1/Makefile')
-rw-r--r--lib/stm32/f1/Makefile24
1 files changed, 1 insertions, 23 deletions
diff --git a/lib/stm32/f1/Makefile b/lib/stm32/f1/Makefile
index 0059ba1..3b4252b 100644
--- a/lib/stm32/f1/Makefile
+++ b/lib/stm32/f1/Makefile
@@ -35,27 +35,5 @@ OBJS = vector.o rcc.o gpio.o usart.o adc.o spi.o flash.o nvic.o \
VPATH += ../../usb:../
-# Be silent per default, but 'make V=1' will show all compiler calls.
-ifneq ($(V),1)
-Q := @
-endif
-
-all: $(LIBNAME).a
-
-$(LIBNAME).a: $(OBJS)
- @printf " AR $(subst $(shell pwd)/,,$(@))\n"
- $(Q)$(AR) $(ARFLAGS) $@ $^
-
-%.o: %.c
- @printf " CC $(subst $(shell pwd)/,,$(@))\n"
- $(Q)$(CC) $(CFLAGS) -o $@ -c $<
-
-clean:
- @printf " CLEAN lib/stm32/f1\n"
- $(Q)rm -f *.o *.d
- $(Q)rm -f $(LIBNAME).a
-
-.PHONY: clean
-
--include $(OBJS:.o=.d)
+include ../../Makefile.include