workaround that allows LIBOPENCM3 to point to either the source dir or the install dir

This commit is contained in:
Michael Ossmann
2012-06-07 20:11:33 -06:00
parent 31db86b5d5
commit 077f4dece0

View File

@ -51,7 +51,8 @@ CFLAGS += -O2 -g3 -Wall -Wextra -I$(LIBOPENCM3)/include -I../common \
$(HACKRF_OPTS) $(HACKRF_OPTS)
#LDSCRIPT ?= $(BINARY).ld #LDSCRIPT ?= $(BINARY).ld
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \ LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/armv7e-m/fpu \
-L$(LIBOPENCM3)/lib/lpc43xx -T$(LDSCRIPT) -nostartfiles \ -L$(LIBOPENCM3)/lib -L$(LIBOPENCM3)/lib/lpc43xx \
-T$(LDSCRIPT) -nostartfiles \
-Wl,--gc-sections -Xlinker -Map=$(BINARY).map -Wl,--gc-sections -Xlinker -Map=$(BINARY).map
OBJ = $(SRC:.c=.o) OBJ = $(SRC:.c=.o)