]> git.saurik.com Git - apt.git/blame_incremental - methods/makefile
* [ABI break] merge support for http redirects, thanks to
[apt.git] / methods / makefile
... / ...
CommitLineData
1# -*- make -*-
2BASE=..
3SUBDIR=methods
4
5# Bring in the default rules
6include ../buildlib/defaults.mak
7BIN := $(BIN)/methods
8
9# FIXME..
10LIB_APT_PKG_MAJOR = 4.7
11APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
12
13# The file method
14PROGRAM=file
15SLIBS = -lapt-pkg $(INTLLIBS)
16LIB_MAKES = apt-pkg/makefile
17SOURCE = file.cc
18include $(PROGRAM_H)
19
20# The copy method
21PROGRAM=copy
22SLIBS = -lapt-pkg $(INTLLIBS)
23LIB_MAKES = apt-pkg/makefile
24SOURCE = copy.cc
25include $(PROGRAM_H)
26
27# The gzip method
28PROGRAM=gzip
29SLIBS = -lapt-pkg $(INTLLIBS)
30LIB_MAKES = apt-pkg/makefile
31SOURCE = gzip.cc
32include $(PROGRAM_H)
33
34# The gpgv method
35PROGRAM=gpgv
36SLIBS = -lapt-pkg $(INTLLIBS)
37LIB_MAKES = apt-pkg/makefile
38SOURCE = gpgv.cc
39include $(PROGRAM_H)
40
41# The cdrom method
42PROGRAM=cdrom
43SLIBS = -lapt-pkg $(INTLLIBS)
44LIB_MAKES = apt-pkg/makefile
45SOURCE = cdrom.cc
46include $(PROGRAM_H)
47
48# The http method
49PROGRAM=http
50SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
51LIB_MAKES = apt-pkg/makefile
52SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc
53include $(PROGRAM_H)
54
55# The https method
56PROGRAM=https
57SLIBS = -lapt-pkg -lcurl $(INTLLIBS)
58LIB_MAKES = apt-pkg/makefile
59SOURCE = https.cc
60include $(PROGRAM_H)
61
62# The ftp method
63PROGRAM=ftp
64SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
65LIB_MAKES = apt-pkg/makefile
66SOURCE = ftp.cc rfc2553emu.cc connect.cc
67include $(PROGRAM_H)
68
69# The rred method
70PROGRAM=rred
71SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
72LIB_MAKES = apt-pkg/makefile
73SOURCE = rred.cc
74include $(PROGRAM_H)
75
76# The rsh method
77PROGRAM=rsh
78SLIBS = -lapt-pkg $(INTLLIBS)
79LIB_MAKES = apt-pkg/makefile
80SOURCE = rsh.cc
81include $(PROGRAM_H)
82
83# The mirror method
84PROGRAM=mirror
85SLIBS = -lapt-pkg $(SOCKETLIBS)
86LIB_MAKES = apt-pkg/makefile
87SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc
88include $(PROGRAM_H)
89
90# SSH and bzip2 method symlink
91binary: $(BIN)/ssh $(BIN)/bzip2 $(BIN)/lzma
92veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 clean-$(BIN)/lzma
93
94$(BIN)/ssh:
95 echo "Installing ssh method link"
96 ln -fs rsh $(BIN)/ssh
97clean-$(BIN)/ssh:
98 -rm $(BIN)/ssh
99
100$(BIN)/bzip2:
101 echo "Installing bzip2 method link"
102 ln -fs gzip $(BIN)/bzip2
103$(BIN)/lzma:
104 echo "Installing lzma method link"
105 ln -fs gzip $(BIN)/lzma
106clean-$(BIN)/bzip2:
107 -rm $(BIN)/bzip2
108clean-$(BIN)/lzma:
109 -rm $(BIN)/lzma