From 7ccd7afce2a158eb852b5f7c61cd51e8febe56a9 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 31 Aug 2012 16:12:14 -0400 Subject: Fixups for Wire library builds. Add libraries directory to global include path, so Wire sub-headers can be included in a directory-independent way. Tweak Wire global declaration and definition so it builds. Signed-off-by: Marti Bolivar --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6a76000..1f19f37 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ BUILD_PATH = build LIBMAPLE_PATH := $(SRCROOT)/libmaple WIRISH_PATH := $(SRCROOT)/wirish SUPPORT_PATH := $(SRCROOT)/support +LIBRARIES_PATH := $(SRCROOT)/libraries # Support files for linker LDDIR := $(SUPPORT_PATH)/ld # Support files for this Makefile @@ -52,6 +53,7 @@ include $(MAKEDIR)/build-templates.mk # It slows compilation noticeably; remove after 1 release. TARGET_FLAGS += -I$(LIBMAPLE_PATH)/include/libmaple \ -I$(WIRISH_PATH)/include/wirish +TARGET_FLAGS += -I$(LIBRARIES_PATH) # for internal lib. includes, e.g. GLOBAL_CFLAGS := -Os -g3 -gdwarf-2 -nostdlib \ -ffunction-sections -fdata-sections \ -Wl,--gc-sections $(TARGET_FLAGS) -- cgit v1.2.3