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