fix 'Preparing...' message for V=5 compile
[openwrt.git] / openwrt / 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 ifneq ($(BOARD),ar7)
20 BR2_PACKAGE_LINUX_ATM:=m
21 BR2_PACKAGE_BR2684CTL:=m
22 endif
23
24 $(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25 $(eval $(call PKG_template,BR2684CTL,br2684ctl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26
27 $(PKG_BUILD_DIR)/.configured:
28 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include/ \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 )
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built:
55 rm -rf $(PKG_INSTALL_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 all install
60 touch $@
61
62 $(IPKG_LINUX_ATM):
63 install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
64 cp $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib
65 $(RSTRIP) $(IDIR_LINUX_ATM)/
66 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
67
68 $(IPKG_BR2684CTL):
69 install -d -m0755 $(IDIR_BR2684CTL)/usr/sbin
70 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/
71 install -d -m0755 $(IDIR_BR2684CTL)/etc/init.d
72 install -m0755 ./files/br2684.init $(IDIR_BR2684CTL)/etc/init.d/S30br2684
73 $(RSTRIP) $(IDIR_BR2684CTL)/
74 $(IPKG_BUILD) $(IDIR_BR2684CTL) $(PACKAGE_DIR)
75
76 $(STAGING_DIR)/usr/lib/libatm.so: $(PKG_BUILD_DIR)/.built
77 mkdir -p $(STAGING_DIR)/usr/include
78 cp -fpR $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
79 mkdir -p $(STAGING_DIR)/usr/lib
80 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
81 touch $@
82
83 install-dev: $(STAGING_DIR)/usr/lib/libatm.so
84
85 uninstall-dev:
86 rm -rf \
87 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
88 $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
89
90 compile-targets: install-dev
91 clean-targets: uninstall-dev
92
93 mostlyclean:
94 $(MAKE) -C $(PKG_BUILD_DIR) clean
95 rm -f $(PKG_BUILD_DIR)/.built
96
This page took 0.044581 seconds and 5 git commands to generate.