diff --git a/cpu/native/Makefile.native b/cpu/native/Makefile.native
index e7e3bb6..4dbe235 100644
--- a/cpu/native/Makefile.native
+++ b/cpu/native/Makefile.native
@@ -7,7 +7,7 @@ CC ?= gcc
ifdef LD_OVERRIDE
LD = $(LD_OVERRIDE)
else
- LD = gcc
+ LD = $(CC)
endif
AS ?= as
NM ?= nm
@@ -16,7 +16,8 @@ STRIP ?= strip
ifdef WERROR
CFLAGSWERROR=-Werror
endif
-CFLAGSNO = -Wall -g -I/usr/local/include $(CFLAGSWERROR)
+#CFLAGSNO = -Wall -g -I/usr/local/include $(CFLAGSWERROR)
+CFLAGSNO = -Wall -g $(CFLAGSWERROR)
CFLAGS += $(CFLAGSNO)
ifeq ($(HOST_OS),Darwin)
diff --git a/examples/6lbr/Makefile b/examples/6lbr/Makefile
index 88ba957..6ad81d5 100644
--- a/examples/6lbr/Makefile
+++ b/examples/6lbr/Makefile
@@ -18,7 +18,7 @@ CONTIKI = $(6LBR)/../..
APPDIRS = $(6LBR)/apps $(6LBR)/../6lbr-demo/apps
PROJECTDIRS += $(6LBR) $(6LBR)/6lbr $(6LBR)/../6lbr-demo/apps/udp-client $(6LBR)/../6lbr-demo/apps/coap/rest-types
-
+CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
ifeq ($(TARGET),)
@@ -118,7 +118,6 @@ ifeq ($(WITH_IP64),1)
MODULES += core/net/ip64 core/net/ip64-addr
PROJECT_SOURCEFILES += ip64-eth-driver.c
endif
-
LDGENFLAGS += $(CFLAGS)
tools:
diff --git a/examples/6lbr/platform/native/Makefile.native b/examples/6lbr/platform/native/Makefile.native
index 24e55ea..317f1aa 100644
--- a/examples/6lbr/platform/native/Makefile.native
+++ b/examples/6lbr/platform/native/Makefile.native
@@ -93,6 +93,19 @@ VERSION=$(shell echo $(word 3,$(shell awk '/CETIC_6LBR_VERSION/' project-conf.h)
IPK=6lbr-$(VERSION)-$(PKG_VERSION)-ipk
DESTDIR=
+installstrip:
+ install -d $(DESTDIR)/etc/6lbr
+ cp -r package/etc/6lbr $(DESTDIR)/etc
+ install -d $(DESTDIR)/etc/init.d
+ install package/etc/init.d/* $(DESTDIR)/etc/init.d
+ install -d $(DESTDIR)/usr/bin
+ install package/usr/bin/* $(DESTDIR)/usr/bin
+ install -d $(DESTDIR)/usr/lib/6lbr
+ cp -r package/usr/lib/6lbr $(DESTDIR)/usr/lib
+ install -d $(DESTDIR)/usr/lib/6lbr/bin
+ install -s --strip-program=$(STRIP) bin/* $(DESTDIR)/usr/lib/6lbr/bin
+ install -s --strip-program=$(STRIP) tools/nvm_tool $(DESTDIR)/usr/lib/6lbr/bin
+
install:
install -d $(DESTDIR)/etc/6lbr
cp -r package/etc/6lbr $(DESTDIR)/etc
@@ -126,6 +139,8 @@ $(PLUGINS_DIRS):
LDFLAGS="$(LDFLAGS_ORIG)" $(MAKE) -C $@
endif
+plugins-install-strip:
+ for plugin in $(PLUGINS_DIRS); do $(MAKE) -C $$plugin installstrip; done
plugins-install:
for plugin in $(PLUGINS_DIRS); do $(MAKE) -C $$plugin install; done
@@ -137,6 +152,10 @@ else
all: $(6LBR_PLUGIN)
+installstrip:
+ install -d $(DESTDIR)/usr/lib/6lbr/plugins
+ install -s --strip-program=$(STRIP) $(6LBR_PLUGIN) $(DESTDIR)/usr/lib/6lbr/plugins
+
install:
install -d $(DESTDIR)/usr/lib/6lbr/plugins
install $(6LBR_PLUGIN) $(DESTDIR)/usr/lib/6lbr/plugins
diff --git a/examples/6lbr/tools/Makefile b/examples/6lbr/tools/Makefile
index 7cd87fe..3bcc59d 100644
--- a/examples/6lbr/tools/Makefile
+++ b/examples/6lbr/tools/Makefile
@@ -1,3 +1,5 @@
+CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
+LDFLAGS = -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
CFLAGS+=-Wall -I../6lbr -I../platform/native -I../../6lbr-demo/apps/coap/ -I.
all: nvm_tool