]> git.saurik.com Git - apt.git/blame - cmdline/makefile
Add statvfs.h.in to CMake directory
[apt.git] / cmdline / makefile
CommitLineData
1164783d
AL
1# -*- make -*-
2BASE=..
3164dff9 3SUBDIR=cmdline
1164783d
AL
4
5# Bring in the default rules
6include ../buildlib/defaults.mak
7
b9179170
MV
8# The apt program
9PROGRAM=apt
10SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 11LIB_MAKES = apt-pkg/makefile apt-private/makefile
b9179170
MV
12SOURCE = apt.cc
13include $(PROGRAM_H)
14
08e8f724 15# The apt-cache program
1164783d 16PROGRAM=apt-cache
b9179170 17SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 18LIB_MAKES = apt-pkg/makefile apt-private/makefile
8fde7239 19SOURCE = apt-cache.cc
08e8f724 20include $(PROGRAM_H)
1164783d 21
7a1b1f8b 22# The apt-get program
0a8e3465 23PROGRAM=apt-get
b9179170 24SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 25LIB_MAKES = apt-pkg/makefile apt-private/makefile
b9179170 26SOURCE = apt-get.cc
1164783d 27include $(PROGRAM_H)
7a1b1f8b
AL
28
29# The apt-config program
30PROGRAM=apt-config
b9179170 31SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 32LIB_MAKES = apt-pkg/makefile apt-private/makefile
7a1b1f8b
AL
33SOURCE = apt-config.cc
34include $(PROGRAM_H)
83d89a9f
AL
35
36# The apt-cdrom program
37PROGRAM=apt-cdrom
b9179170 38SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 39LIB_MAKES = apt-pkg/makefile apt-private/makefile
a75c6a6e 40SOURCE = apt-cdrom.cc
83d89a9f 41include $(PROGRAM_H)
b2e465d6 42
c15f5690 43# The apt-mark program
c98fb5e0 44PROGRAM=apt-mark
b9179170 45SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
d39d7f88 46LIB_MAKES = apt-pkg/makefile apt-private/makefile
c98fb5e0
DK
47SOURCE = apt-mark.cc
48include $(PROGRAM_H)
a577a938 49
e43a426e
MV
50# The apt-helper
51PROGRAM=apt-helper
f106fecc 52SLIBS = -lapt-pkg -lapt-private $(INTLLIBS) -lresolv
d39d7f88 53LIB_MAKES = apt-pkg/makefile apt-private/makefile
e43a426e
MV
54SOURCE = apt-helper.cc
55include $(PROGRAM_H)
56
23c5897c
MV
57# The apt-report-mirror-failure program
58#SOURCE=apt-report-mirror-failure
59#TO=$(BIN)
60#TARGET=program
61#include $(COPY_H)
4128c846 62
53ec04bb
DK
63#
64# the following programs are shipped in apt-utils
65#
66APT_DOMAIN:=apt-utils
67
68# The apt-sortpkgs program
69PROGRAM=apt-sortpkgs
ad7e0941
DK
70SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
71LIB_MAKES = apt-pkg/makefile apt-private/makefile
53ec04bb
DK
72SOURCE = apt-sortpkgs.cc
73include $(PROGRAM_H)
74
75# The apt-extracttemplates program
76PROGRAM=apt-extracttemplates
ad7e0941
DK
77SLIBS = -lapt-pkg -lapt-inst -lapt-private $(INTLLIBS)
78LIB_MAKES = apt-pkg/makefile apt-inst/makefile apt-private/makefile
53ec04bb
DK
79SOURCE = apt-extracttemplates.cc
80include $(PROGRAM_H)
81
8e99b22c 82# The internal solver/planner acting as an external
4128c846 83PROGRAM=apt-internal-solver
d39d7f88
DK
84SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
85LIB_MAKES = apt-pkg/makefile apt-private/makefile
4128c846
DK
86SOURCE = apt-internal-solver.cc
87include $(PROGRAM_H)
7f471354 88
8e99b22c 89PROGRAM=apt-internal-planner
f74d99c6
DK
90SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
91LIB_MAKES = apt-pkg/makefile apt-private/makefile
8e99b22c 92SOURCE = apt-internal-planner.cc
f74d99c6
DK
93include $(PROGRAM_H)
94
a2cba9cc 95# This just dumps out the state
7f471354 96PROGRAM=apt-dump-solver
385d9f2f
DK
97SLIBS = -lapt-pkg -lapt-private $(INTLLIBS)
98LIB_MAKES = apt-pkg/makefile apt-private/makefile
7f471354
DK
99SOURCE = apt-dump-solver.cc
100include $(PROGRAM_H)
46a78c65
MV
101
102# The apt-key program
103apt-key: apt-key.in
104 sed -e "s#&keyring-filename;#$(shell ../vendor/getinfo keyring-filename)#" \
105 -e "s#&keyring-removed-filename;#$(shell ../vendor/getinfo keyring-removed-filename)#" \
106 -e "s#&keyring-master-filename;#$(shell ../vendor/getinfo keyring-master-filename)#" \
107 -e "s#&keyring-uri;#$(shell ../vendor/getinfo keyring-uri)#" \
108 -e "s#&keyring-package;#$(shell ../vendor/getinfo keyring-package)#" $< > $@
109 chmod 755 $@
110
111SOURCE=apt-key
112TO=$(BIN)
113TARGET=program
114include $(COPY_H)
115
116clean: clean/apt-key
117
118clean/apt-key:
119 rm -f apt-key