From eb6004033a7b2c657aead1fbbbd9a001edb23a00 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 14 Jun 2012 20:26:27 +0000 Subject: [PATCH] skels: clean up the makefile template a bit SVN-Revision: 32374 --- skels/Makefile.template | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/skels/Makefile.template b/skels/Makefile.template index 0de8f270c..893fb54be 100644 --- a/skels/Makefile.template +++ b/skels/Makefile.template @@ -28,40 +28,16 @@ endef define Package/package/description endef +# add extra configure flags here CONFIGURE_ARGS += \ --enable-static \ --enable-shared -# If you wish to link against uclibc++ consider using the -# following variables : -CONFIGURE_VARS += \ - CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \ - CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \ - LDFLAGS="$$$$LDFLAGS" \ - LIBS="-nodefaultlibs -luClibc++ -lm -lnotimpl" \ - -MAKE_FLAGS += \ - CFLAGS="$(TARGET_CFLAGS)" - -define Build/Compile - # pass CFLAGS again to override -O2 set by configure - $(MAKE) -C $(PKG_BUILD_DIR) \ - CFLAGS="$(TARGET_CFLAGS)" \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install -endef - +# add make variable overrides here +MAKE_FLAGS += define Build/InstallDev - mkdir -p $(1)/usr/include/ - $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ - mkdir -p $(1)/usr/package - $(CP) $(PKG_INSTALL_DIR)/usr/package/package.{a,so*} $(1)/usr/package/ -endef - -define Build/UninstallDev - rm -rf $(1)/usr/include/package \ - $(1)/usr/package/package.{a,so*} + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ endef define Package/package/install -- 2.30.2