source: trunk/debian/packages/swconfig/trunk/debian/rules @ 821

Last change on this file since 821 was 821, checked in by amain, 4 years ago

swconfig: update with upstream

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/usr/bin/make -f
2
3export DH_VERBOSE=1
4
5DEB_HOST_GNU_TYPE?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6CC=$(DEB_HOST_GNU_TYPE)-gcc
7DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
8
9PACKAGE := swconfig
10PACKAGE_LIB := libsw0
11PACKAGE_DEV := libsw-dev
12
13# ../include contains switch.sh kernel API (see patch 007)
14CFLAGS+=-O2 -g -I ../include/uapi -I /usr/include/netlink-tiny
15
16%:
17        dh $@ 
18
19override_dh_auto_build: 
20        $(MAKE) -C src
21
22override_dh_auto_test:
23        :
24
25override_dh_auto_install:
26        install -d debian/$(PACKAGE)/usr/sbin
27        install -d debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
28        install -d debian/$(PACKAGE_DEV)/usr/lib/$(DEB_HOST_MULTIARCH)
29        install -d debian/$(PACKAGE_DEV)/usr/include/sw
30        install src/swconfig debian/$(PACKAGE)/usr/sbin/swconfig
31        cp -v src/libsw.so.*.*.* debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
32        cp -dv src/libsw.so.* debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
33        cp -dv src/libsw.so debian/$(PACKAGE_DEV)/usr/lib/$(DEB_HOST_MULTIARCH)
34        cp -v src/swlib.h debian/$(PACKAGE_DEV)/usr/include
35
36override_dh_auto_clean:
37        rm -f src/swconfig src/*.o src/libsw.*
38
Note: See TracBrowser for help on using the repository browser.