diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-11 15:35:30 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-11 15:35:30 +0000 |
commit | 936ed6e3e623e373091872a0ef559cdc3133370d (patch) | |
tree | 8f8ce2e2a1834e5e24249bdb20b4ac77e6191c81 /openwrt/package/dhcp/Makefile | |
parent | 28fd9cd55ae93617c5e109d496ee6da74009bc45 (diff) |
Simplify configure and add target optimizations,
Rename dhcp package to dhcp-server,
Add dhcp-relay package.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1405 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/dhcp/Makefile')
-rw-r--r-- | openwrt/package/dhcp/Makefile | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/openwrt/package/dhcp/Makefile b/openwrt/package/dhcp/Makefile index 70a72c5ca..947948e05 100644 --- a/openwrt/package/dhcp/Makefile +++ b/openwrt/package/dhcp/Makefile @@ -16,15 +16,14 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(TOPDIR)/package/rules.mk -$(eval $(call PKG_template,DHCP,dhcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,DHCP_RELAY,dhcp-relay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,DHCP_SERVER,dhcp-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared - (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ - LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ + (cd $(PKG_BUILD_DIR) ; \ ./configure \ + --copts "$(TARGET_CFLAGS)" \ + linux-2.2 \ ); touch $@ @@ -37,8 +36,14 @@ $(PKG_BUILD_DIR)/.built: all install touch $@ -$(IPKG_DHCP): - install -d -m0755 $(IDIR_DHCP)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP)/usr/sbin - $(RSTRIP) $(IDIR_DHCP) - $(IPKG_BUILD) $(IDIR_DHCP) $(PACKAGE_DIR) +$(IPKG_DHCP_RELAY): + install -d -m0755 $(IDIR_DHCP_RELAY)/usr/sbin + cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/ + $(RSTRIP) $(IDIR_DHCP_RELAY) + $(IPKG_BUILD) $(IDIR_DHCP_RELAY) $(PACKAGE_DIR) + +$(IPKG_DHCP_SERVER): + install -d -m0755 $(IDIR_DHCP_SERVER)/usr/sbin + cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP_SERVER)/usr/sbin/ + $(RSTRIP) $(IDIR_DHCP_SERVER) + $(IPKG_BUILD) $(IDIR_DHCP_SERVER) $(PACKAGE_DIR) |