]> git.saurik.com Git - apt.git/blame - methods/makefile
doc/apt-get.8.xml: document download
[apt.git] / methods / makefile
CommitLineData
9391a747
AL
1# -*- make -*-
2BASE=..
3SUBDIR=methods
4
5# Bring in the default rules
6include ../buildlib/defaults.mak
7BIN := $(BIN)/methods
8
23d84658
DK
9include ../buildlib/libversion.mak
10APT_DOMAIN := libapt-pkg$(LIBAPTPKG_MAJOR)
80948457 11
9391a747
AL
12# The file method
13PROGRAM=file
8cd53bd4 14SLIBS = -lapt-pkg $(INTLLIBS)
f760b7d2 15LIB_MAKES = apt-pkg/makefile
9391a747
AL
16SOURCE = file.cc
17include $(PROGRAM_H)
561ab0db
AL
18
19# The copy method
20PROGRAM=copy
8cd53bd4 21SLIBS = -lapt-pkg $(INTLLIBS)
f760b7d2 22LIB_MAKES = apt-pkg/makefile
561ab0db
AL
23SOURCE = copy.cc
24include $(PROGRAM_H)
92173b19
AL
25
26# The gzip method
27PROGRAM=gzip
8cd53bd4 28SLIBS = -lapt-pkg $(INTLLIBS)
f760b7d2 29LIB_MAKES = apt-pkg/makefile
92173b19
AL
30SOURCE = gzip.cc
31include $(PROGRAM_H)
be4401bf 32
b3d44315
MV
33# The gpgv method
34PROGRAM=gpgv
8cd53bd4 35SLIBS = -lapt-pkg $(INTLLIBS)
b3d44315
MV
36LIB_MAKES = apt-pkg/makefile
37SOURCE = gpgv.cc
38include $(PROGRAM_H)
39
f46e7681
AL
40# The cdrom method
41PROGRAM=cdrom
8e372e79 42SLIBS = -lapt-pkg -ldl $(INTLLIBS)
f760b7d2 43LIB_MAKES = apt-pkg/makefile
f46e7681
AL
44SOURCE = cdrom.cc
45include $(PROGRAM_H)
46
be4401bf
AL
47# The http method
48PROGRAM=http
8cd53bd4 49SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
f760b7d2 50LIB_MAKES = apt-pkg/makefile
5f6b130d 51SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc
be4401bf 52include $(PROGRAM_H)
30b30ec1 53
d546f98d
MV
54# The https method
55PROGRAM=https
8cd53bd4 56SLIBS = -lapt-pkg -lcurl $(INTLLIBS)
d546f98d
MV
57LIB_MAKES = apt-pkg/makefile
58SOURCE = https.cc
59include $(PROGRAM_H)
60
30b30ec1
AL
61# The ftp method
62PROGRAM=ftp
8cd53bd4 63SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
f760b7d2 64LIB_MAKES = apt-pkg/makefile
0837bd25 65SOURCE = ftp.cc rfc2553emu.cc connect.cc
30b30ec1 66include $(PROGRAM_H)
b2e465d6 67
2e178d1c
MV
68# The rred method
69PROGRAM=rred
8cd53bd4 70SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
2e178d1c 71LIB_MAKES = apt-pkg/makefile
4a0a786f 72SOURCE = rred.cc
2e178d1c
MV
73include $(PROGRAM_H)
74
b2e465d6
AL
75# The rsh method
76PROGRAM=rsh
8cd53bd4 77SLIBS = -lapt-pkg $(INTLLIBS)
b2e465d6
AL
78LIB_MAKES = apt-pkg/makefile
79SOURCE = rsh.cc
80include $(PROGRAM_H)
81
5f6b130d
MV
82# The mirror method
83PROGRAM=mirror
84SLIBS = -lapt-pkg $(SOCKETLIBS)
85LIB_MAKES = apt-pkg/makefile
86SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc
87include $(PROGRAM_H)
88
b0966366
DK
89# The gzip method
90PROGRAM=bzip2
91SLIBS = -lapt-pkg $(INTLLIBS)
92LIB_MAKES = apt-pkg/makefile
93SOURCE = bzip2.cc
94include $(PROGRAM_H)
95
96# SSH and lzma method symlink
97binary: $(BIN)/ssh $(BIN)/lzma
98veryclean: clean-$(BIN)/ssh clean-$(BIN)/lzma
ac3dee0e 99
b2e465d6
AL
100$(BIN)/ssh:
101 echo "Installing ssh method link"
102 ln -fs rsh $(BIN)/ssh
103clean-$(BIN)/ssh:
2204bd80
AL
104 -rm $(BIN)/ssh
105
96c1153a
MV
106$(BIN)/lzma:
107 echo "Installing lzma method link"
b0966366 108 ln -fs bzip2 $(BIN)/lzma
96c1153a
MV
109clean-$(BIN)/lzma:
110 -rm $(BIN)/lzma