]>
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 | ||
23d84658 DK |
9 | include ../buildlib/libversion.mak |
10 | APT_DOMAIN := libapt-pkg$(LIBAPTPKG_MAJOR) | |
80948457 | 11 | |
9391a747 AL |
12 | # The file method |
13 | PROGRAM=file | |
8cd53bd4 | 14 | SLIBS = -lapt-pkg $(INTLLIBS) |
f760b7d2 | 15 | LIB_MAKES = apt-pkg/makefile |
9391a747 AL |
16 | SOURCE = file.cc |
17 | include $(PROGRAM_H) | |
561ab0db AL |
18 | |
19 | # The copy method | |
20 | PROGRAM=copy | |
8cd53bd4 | 21 | SLIBS = -lapt-pkg $(INTLLIBS) |
f760b7d2 | 22 | LIB_MAKES = apt-pkg/makefile |
561ab0db AL |
23 | SOURCE = copy.cc |
24 | include $(PROGRAM_H) | |
92173b19 AL |
25 | |
26 | # The gzip method | |
27 | PROGRAM=gzip | |
8cd53bd4 | 28 | SLIBS = -lapt-pkg $(INTLLIBS) |
f760b7d2 | 29 | LIB_MAKES = apt-pkg/makefile |
92173b19 AL |
30 | SOURCE = gzip.cc |
31 | include $(PROGRAM_H) | |
be4401bf | 32 | |
b3d44315 MV |
33 | # The gpgv method |
34 | PROGRAM=gpgv | |
8cd53bd4 | 35 | SLIBS = -lapt-pkg $(INTLLIBS) |
b3d44315 MV |
36 | LIB_MAKES = apt-pkg/makefile |
37 | SOURCE = gpgv.cc | |
38 | include $(PROGRAM_H) | |
39 | ||
f46e7681 AL |
40 | # The cdrom method |
41 | PROGRAM=cdrom | |
8e372e79 | 42 | SLIBS = -lapt-pkg -ldl $(INTLLIBS) |
f760b7d2 | 43 | LIB_MAKES = apt-pkg/makefile |
f46e7681 AL |
44 | SOURCE = cdrom.cc |
45 | include $(PROGRAM_H) | |
46 | ||
be4401bf AL |
47 | # The http method |
48 | PROGRAM=http | |
8cd53bd4 | 49 | SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS) |
f760b7d2 | 50 | LIB_MAKES = apt-pkg/makefile |
5f6b130d | 51 | SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc |
be4401bf | 52 | include $(PROGRAM_H) |
30b30ec1 | 53 | |
d546f98d MV |
54 | # The https method |
55 | PROGRAM=https | |
8cd53bd4 | 56 | SLIBS = -lapt-pkg -lcurl $(INTLLIBS) |
d546f98d MV |
57 | LIB_MAKES = apt-pkg/makefile |
58 | SOURCE = https.cc | |
59 | include $(PROGRAM_H) | |
60 | ||
30b30ec1 AL |
61 | # The ftp method |
62 | PROGRAM=ftp | |
8cd53bd4 | 63 | SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS) |
f760b7d2 | 64 | LIB_MAKES = apt-pkg/makefile |
0837bd25 | 65 | SOURCE = ftp.cc rfc2553emu.cc connect.cc |
30b30ec1 | 66 | include $(PROGRAM_H) |
b2e465d6 | 67 | |
2e178d1c MV |
68 | # The rred method |
69 | PROGRAM=rred | |
2cf8c58b | 70 | SLIBS = -lapt-pkg -lz $(SOCKETLIBS) $(INTLLIBS) |
2e178d1c | 71 | LIB_MAKES = apt-pkg/makefile |
4a0a786f | 72 | SOURCE = rred.cc |
2e178d1c MV |
73 | include $(PROGRAM_H) |
74 | ||
b2e465d6 AL |
75 | # The rsh method |
76 | PROGRAM=rsh | |
8cd53bd4 | 77 | SLIBS = -lapt-pkg $(INTLLIBS) |
b2e465d6 AL |
78 | LIB_MAKES = apt-pkg/makefile |
79 | SOURCE = rsh.cc | |
80 | include $(PROGRAM_H) | |
81 | ||
5f6b130d MV |
82 | # The mirror method |
83 | PROGRAM=mirror | |
84 | SLIBS = -lapt-pkg $(SOCKETLIBS) | |
85 | LIB_MAKES = apt-pkg/makefile | |
86 | SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc | |
87 | include $(PROGRAM_H) | |
88 | ||
b0966366 DK |
89 | # The gzip method |
90 | PROGRAM=bzip2 | |
91 | SLIBS = -lapt-pkg $(INTLLIBS) | |
92 | LIB_MAKES = apt-pkg/makefile | |
93 | SOURCE = bzip2.cc | |
94 | include $(PROGRAM_H) | |
95 | ||
96 | # SSH and lzma method symlink | |
97 | binary: $(BIN)/ssh $(BIN)/lzma | |
98 | veryclean: 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 | |
103 | clean-$(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 |
109 | clean-$(BIN)/lzma: |
110 | -rm $(BIN)/lzma |