]>
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 | ||
9 | # The file method | |
10 | PROGRAM=file | |
11 | SLIBS = -lapt-pkg | |
f760b7d2 | 12 | LIB_MAKES = apt-pkg/makefile |
9391a747 AL |
13 | SOURCE = file.cc |
14 | include $(PROGRAM_H) | |
561ab0db AL |
15 | |
16 | # The copy method | |
17 | PROGRAM=copy | |
18 | SLIBS = -lapt-pkg | |
f760b7d2 | 19 | LIB_MAKES = apt-pkg/makefile |
561ab0db AL |
20 | SOURCE = copy.cc |
21 | include $(PROGRAM_H) | |
92173b19 AL |
22 | |
23 | # The gzip method | |
24 | PROGRAM=gzip | |
25 | SLIBS = -lapt-pkg | |
f760b7d2 | 26 | LIB_MAKES = apt-pkg/makefile |
92173b19 AL |
27 | SOURCE = gzip.cc |
28 | include $(PROGRAM_H) | |
be4401bf | 29 | |
f46e7681 AL |
30 | # The cdrom method |
31 | PROGRAM=cdrom | |
32 | SLIBS = -lapt-pkg | |
f760b7d2 | 33 | LIB_MAKES = apt-pkg/makefile |
f46e7681 AL |
34 | SOURCE = cdrom.cc |
35 | include $(PROGRAM_H) | |
36 | ||
be4401bf AL |
37 | # The http method |
38 | PROGRAM=http | |
f58a97d3 | 39 | SLIBS = -lapt-pkg $(SOCKETLIBS) |
f760b7d2 | 40 | LIB_MAKES = apt-pkg/makefile |
0837bd25 | 41 | SOURCE = http.cc rfc2553emu.cc connect.cc |
be4401bf | 42 | include $(PROGRAM_H) |
30b30ec1 AL |
43 | |
44 | # The ftp method | |
45 | PROGRAM=ftp | |
f58a97d3 | 46 | SLIBS = -lapt-pkg $(SOCKETLIBS) |
f760b7d2 | 47 | LIB_MAKES = apt-pkg/makefile |
0837bd25 | 48 | SOURCE = ftp.cc rfc2553emu.cc connect.cc |
30b30ec1 | 49 | include $(PROGRAM_H) |
b2e465d6 AL |
50 | |
51 | # The rsh method | |
52 | PROGRAM=rsh | |
53 | SLIBS = -lapt-pkg | |
54 | LIB_MAKES = apt-pkg/makefile | |
55 | SOURCE = rsh.cc | |
56 | include $(PROGRAM_H) | |
57 | ||
2204bd80 AL |
58 | # SSH and vzip2 method symlink |
59 | all: $(BIN)/ssh $(BIN)/bzip2 | |
60 | veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 | |
b2e465d6 AL |
61 | $(BIN)/ssh: |
62 | echo "Installing ssh method link" | |
63 | ln -fs rsh $(BIN)/ssh | |
64 | clean-$(BIN)/ssh: | |
2204bd80 AL |
65 | -rm $(BIN)/ssh |
66 | ||
67 | $(BIN)/bzip2: | |
68 | echo "Installing bzip2 method link" | |
69 | ln -fs gzip $(BIN)/bzip2 | |
70 | clean-$(BIN)/bzip2: | |
71 | -rm $(BIN)/bzip2 |