mirror of
http://git.openwrt.org/packages.git
synced 2025-01-08 11:57:34 +08:00
skels: clean up the makefile template a bit
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32374 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cadd2e940e
commit
8c1ded461f
@ -28,40 +28,16 @@ endef
|
|||||||
define Package/package/description
|
define Package/package/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# add extra configure flags here
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--enable-shared
|
--enable-shared
|
||||||
|
|
||||||
# If you wish to link against uclibc++ consider using the
|
# add make variable overrides here
|
||||||
# following variables :
|
MAKE_FLAGS +=
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
||||||
$(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*}
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/package/install
|
define Package/package/install
|
||||||
|
Loading…
Reference in New Issue
Block a user