aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/l1/Makefile
diff options
context:
space:
mode:
authorKarl Palsson2012-10-20 19:37:46 +0000
committerKarl Palsson2012-11-07 21:50:27 +0000
commit49412864544c3b7c5ab321098c419b61dfc05b3b (patch)
tree341e28d8f49ed347f5dd0cbcea4964d7238296b1 /lib/stm32/l1/Makefile
parente4f84278f2b62dee7b4e0ac718c7c6ce998240ba (diff)
STM32L1 support, rebased onto upstream generalizations branch.
Working example again.
Diffstat (limited to 'lib/stm32/l1/Makefile')
-rw-r--r--lib/stm32/l1/Makefile30
1 files changed, 4 insertions, 26 deletions
diff --git a/lib/stm32/l1/Makefile b/lib/stm32/l1/Makefile
index 9bd942d..a009857 100644
--- a/lib/stm32/l1/Makefile
+++ b/lib/stm32/l1/Makefile
@@ -25,34 +25,12 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
- -ffunction-sections -fdata-sections -MD -DSTM32L1
+ -ffunction-sections -fdata-sections -MD -DSTM32F1
# ARFLAGS = rcsv
ARFLAGS = rcs
-OBJS = vector.o desig.o crc.o gpio.o rcc.o
+OBJS = rcc.o gpio.o desig.o crc.o
-VPATH += ../../usb:../
+VPATH += ../../usb:../:../../cm3
-# 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