use gcc 4.0.2 and deselect ppp by default for Aruba, use gcc 3.4.5 for the other...
[openwrt.git] / package / linux-atm / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=linux-atm
6 PKG_VERSION:=2.4.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,BR2684CTL,br2684ctl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include/ \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 )
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 rm -rf $(PKG_INSTALL_DIR)
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 all install
55 touch $@
56
57 $(IPKG_LINUX_ATM):
58 install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1* $(IDIR_LINUX_ATM)/usr/lib
60 $(RSTRIP) $(IDIR_LINUX_ATM)/
61 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
62
63 $(IPKG_BR2684CTL):
64 install -d -m0755 $(IDIR_BR2684CTL)/usr/sbin
65 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/
66 install -d -m0755 $(IDIR_BR2684CTL)/etc/hotplug.d/net
67 install -m0644 ./files/br2684.init $(IDIR_BR2684CTL)/etc/hotplug.d/net/30-br2684
68 $(RSTRIP) $(IDIR_BR2684CTL)/
69 $(IPKG_BUILD) $(IDIR_BR2684CTL) $(PACKAGE_DIR)
70
71 $(STAGING_DIR)/usr/lib/libatm.so: $(PKG_BUILD_DIR)/.built
72 mkdir -p $(STAGING_DIR)/usr/include
73 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
74 mkdir -p $(STAGING_DIR)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
76 touch $@
77
78 install-dev: $(STAGING_DIR)/usr/lib/libatm.so
79
80 uninstall-dev:
81 rm -rf \
82 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
83 $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
84
85 compile-targets: install-dev
86 clean-targets: uninstall-dev
87
88 mostlyclean:
89 $(MAKE) -C $(PKG_BUILD_DIR) clean
90 rm -f $(PKG_BUILD_DIR)/.built
91
This page took 0.043285 seconds and 5 git commands to generate.