summaryrefslogtreecommitdiffstats
path: root/package/openssl/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-06-01 23:29:37 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-06-01 23:29:37 +0000
commitc9bf3cc1380ca0ef5cb1cf3b08732f9276a36e78 (patch)
tree60af8b8b5d62a47fb86a78a067932b5577af6900 /package/openssl/Makefile
parentc2f6f47deefcb0797610f93772be5c223f167483 (diff)
Split patches.
Use full target optimization flags (save a few KB). Do a make depend before building. Remove unneeded targets from main Makefile. git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1136 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openssl/Makefile')
-rw-r--r--package/openssl/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/package/openssl/Makefile b/package/openssl/Makefile
index fddba2f7b..50e334cdf 100644
--- a/package/openssl/Makefile
+++ b/package/openssl/Makefile
@@ -41,7 +41,11 @@ $(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
+ MAKEDEPPROG="$(TARGET_CC)" \
+ depend
+ $(MAKE) -C $(PKG_BUILD_DIR) -j1 \
CC="$(TARGET_CC)" \
+ CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \
AR="$(TARGET_CROSS)ar r" \
RANLIB="$(TARGET_CROSS)ranlib" \
all build-shared
@@ -49,6 +53,7 @@ $(PKG_BUILD_DIR)/.built:
-rm $(PKG_BUILD_DIR)/libssl.so.*.*.*
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
CC=$(TARGET_CC) \
+ CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \
do_linux-shared
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
@@ -57,18 +62,18 @@ $(PKG_BUILD_DIR)/.built:
$(IPKG_LIBOPENSSL):
install -d -m0755 $(IDIR_LIBOPENSSL)/usr/lib
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(IDIR_LIBOPENSSL)/usr/lib/
+ cp -fp $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(IDIR_LIBOPENSSL)/usr/lib/
chmod 0644 $(IDIR_LIBOPENSSL)/usr/lib/*
$(RSTRIP) $(IDIR_LIBOPENSSL)
$(IPKG_BUILD) $(IDIR_LIBOPENSSL) $(PACKAGE_DIR)
$(IPKG_OPENSSL_UTIL):
install -d -m0755 $(IDIR_OPENSSL_UTIL)/etc/ssl
- cp -fpR $(PKG_INSTALL_DIR)/etc/ssl/openssl.cnf $(IDIR_OPENSSL_UTIL)/etc/ssl/
+ cp -fp $(PKG_INSTALL_DIR)/etc/ssl/openssl.cnf $(IDIR_OPENSSL_UTIL)/etc/ssl/
install -d -m0755 $(IDIR_OPENSSL_UTIL)/etc/ssl/certs
install -d -m0700 $(IDIR_OPENSSL_UTIL)/etc/ssl/private
install -d -m0755 $(IDIR_OPENSSL_UTIL)/usr/bin
- cp -fpR $(PKG_INSTALL_DIR)/usr/bin/openssl $(IDIR_OPENSSL_UTIL)/usr/bin/
+ cp -fp $(PKG_INSTALL_DIR)/usr/bin/openssl $(IDIR_OPENSSL_UTIL)/usr/bin/
$(RSTRIP) $(IDIR_OPENSSL_UTIL)
$(IPKG_BUILD) $(IDIR_OPENSSL_UTIL) $(PACKAGE_DIR)
@@ -76,15 +81,15 @@ $(STAGING_DIR)/usr/lib/libssl.so: $(PKG_BUILD_DIR)/.built
mkdir -p $(STAGING_DIR)/usr/include
cp -fpR $(PKG_INSTALL_DIR)/usr/include/openssl $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib/
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} $(STAGING_DIR)/usr/lib/
+ cp -fp $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} $(STAGING_DIR)/usr/lib/
touch $@
install-dev: $(STAGING_DIR)/usr/lib/libssl.so
uninstall-dev:
rm -rf \
- $(STAGING_DIR)/usr/include/openssl \
- $(STAGING_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} \
+ $(STAGING_DIR)/usr/include/openssl \
+ $(STAGING_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} \
compile: install-dev
clean: uninstall-dev