diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-01 23:29:37 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-06-01 23:29:37 +0000 |
commit | 00495d614bec3eabf4cfa9db37513e13d6ea2b70 (patch) | |
tree | 82c9193659d745fe1ebcc125b50f0451adb9b0cb /openwrt/package/openssl/Makefile | |
parent | 43512102defc9f28b1ebb61ebf54eb1e19dc4f1c (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@1136 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/openssl/Makefile')
-rw-r--r-- | openwrt/package/openssl/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/openwrt/package/openssl/Makefile b/openwrt/package/openssl/Makefile index fddba2f7b..50e334cdf 100644 --- a/openwrt/package/openssl/Makefile +++ b/openwrt/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 |