Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lpc17xx/Makefile')
-rw-r--r--lib/lpc17xx/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/lpc17xx/Makefile b/lib/lpc17xx/Makefile
index 5a34606e..eaaef8c8 100644
--- a/lib/lpc17xx/Makefile
+++ b/lib/lpc17xx/Makefile
@@ -20,10 +20,8 @@
LIBNAME = libopencm3_lpc17xx
SRCLIBDIR ?= ..
-PREFIX ?= arm-none-eabi
-
-CC = $(PREFIX)-gcc
-AR = $(PREFIX)-ar
+CC = $(PREFIX)gcc
+AR = $(PREFIX)ar
TGT_CFLAGS = -Os \
-Wall -Wextra -Wimplicit-function-declaration \
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
@@ -35,7 +33,9 @@ TGT_CFLAGS += $(DEBUG_FLAGS)
TGT_CFLAGS += $(STANDARD_FLAGS)
# ARFLAGS = rcsv
ARFLAGS = rcs
-OBJS = gpio.o pwr.o
+
+OBJS += gpio.o
+OBJS += pwr.o
VPATH += ../cm3