blob: a15ddef417f9baf04fbfbfa2c0a4350c002d62e3 [file] [log] [blame]
Eric Andersenb108a5b2000-06-19 09:21:34 +00001#!/usr/bin/make -f
2
Glenn L McGrath1b16bf62002-11-23 07:14:55 +00003export DH_VERBOSE=1
4export DH_COMPAT=3
Eric Andersenb108a5b2000-06-19 09:21:34 +00005
Glenn L McGrath0ff941e2002-11-26 09:05:15 +00006# These wont actually do anything yet, need to hack Rules.mak
Glenn L McGrath1b16bf62002-11-23 07:14:55 +00007ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
8 CFLAGS += -g
9endif
10ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
11 INSTALL_PROGRAM += -s
12endif
Eric Andersenb108a5b2000-06-19 09:21:34 +000013
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000014busybox-deb:
Eric Andersenb108a5b2000-06-19 09:21:34 +000015 dh_testdir
16 dh_testroot
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000017 $(MAKE) clean
18 cp ./debian/config-deb .config
Glenn L McGrath2f79f5b2002-11-26 03:08:31 +000019 cp ./debian/Rules.mak.shared Rules.mak
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000020 $(MAKE) dep
21 $(MAKE)
Glenn L McGrath0ff941e2002-11-26 09:05:15 +000022 install -D busybox ./debian/busybox-unstable/bin/busybox
23 dh_installchangelogs Changelog -pbusybox-unstable
24 dh_installdocs -pbusybox-unstable
25 dh_strip -pbusybox-unstable
26 dh_compress -pbusybox-unstable
27 dh_fixperms -pbusybox-unstable
28 dh_installdeb -pbusybox-unstable
29 dh_shlibdeps -pbusybox-unstable
30 dh_gencontrol -pbusybox-unstable
31 dh_md5sums -pbusybox-unstable
32 dh_builddeb -pbusybox-unstable
33
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000034busybox-udeb:
Eric Andersenb108a5b2000-06-19 09:21:34 +000035 dh_testdir
36 dh_testroot
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000037 $(MAKE) clean
38 cp ./debian/config-udeb .config
Glenn L McGrath2f79f5b2002-11-26 03:08:31 +000039 cp ./debian/Rules.mak.shared Rules.mak
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000040 $(MAKE) dep
41 $(MAKE)
Glenn L McGrath10d905c2002-11-27 23:24:49 +000042 $(MAKE) PREFIX=./debian/busybox-udeb/ install
Glenn L McGrath0ff941e2002-11-26 09:05:15 +000043 dh_strip -pbusybox-unstable-udeb
44 dh_compress -pbusybox-unstable-udeb
45 dh_fixperms -pbusybox-unstable-udeb
46 dh_installdeb -pbusybox-unstable-udeb
47 dh_shlibdeps -pbusybox-unstable-udeb
48 dh_gencontrol -pbusybox-unstable-udeb
49 dh_md5sums -pbusybox-unstable-udeb
50 dh_builddeb -pbusybox-unstable-udeb
Eric Andersenb108a5b2000-06-19 09:21:34 +000051
52
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000053busybox-static:
Eric Andersene2f6e122000-12-01 19:55:04 +000054 dh_testdir
55 dh_testroot
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000056 $(MAKE) clean
57 cp ./debian/config-static .config
Glenn L McGrath2f79f5b2002-11-26 03:08:31 +000058 cp ./debian/Rules.mak.static Rules.mak
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000059 $(MAKE) dep
60 $(MAKE)
Glenn L McGrath0ff941e2002-11-26 09:05:15 +000061 install -D busybox ./debian/busybox-unstable-static/bin/busybox
62 dh_installchangelogs Changelog -pbusybox-unstable-static
63 dh_installdocs -pbusybox-unstable-static
64 dh_strip -pbusybox-unstable-static
65 dh_compress -pbusybox-unstable-static
66 dh_fixperms -pbusybox-unstable-static
67 dh_installdeb -pbusybox-unstable-static
68 dh_shlibdeps -pbusybox-unstable-static
69 dh_gencontrol -pbusybox-unstable-static
70 dh_md5sums -pbusybox-unstable-static
71 dh_builddeb -pbusybox-unstable-static
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000072
73binary-arch: busybox-deb busybox-udeb busybox-static
Eric Andersene2f6e122000-12-01 19:55:04 +000074
Glenn L McGrath12371f92002-11-26 02:16:06 +000075binary-indep:
76 dh_testdir
77 dh_testroot
78 $(MAKE) clean
79 $(MAKE) newdoc
Glenn L McGrath0ff941e2002-11-26 09:05:15 +000080 dh_installdocs -pbusybox-unstable-doc
81 dh_installchangelogs Changelog -pbusybox-unstable-doc
82 dh_compress -pbusybox-unstable-doc
83 dh_fixperms -pbusybox-unstable-doc
84 dh_installdeb -pbusybox-unstable-doc
85 dh_gencontrol -pbusybox-unstable-doc
86 dh_md5sums -pbusybox-unstable-doc
87 dh_builddeb -pbusybox-unstable-doc
Glenn L McGrath12371f92002-11-26 02:16:06 +000088
Eric Andersenb108a5b2000-06-19 09:21:34 +000089binary: binary-indep binary-arch
Glenn L McGrath1b16bf62002-11-23 07:14:55 +000090.PHONY: build clean binary-indep binary-arch binary install configure