]> git.saurik.com Git - apt.git/blob - methods/makefile
* debian/apt.cron.daily:
[apt.git] / methods / makefile
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 include ../buildlib/libversion.mak
10 APT_DOMAIN := libapt-pkg$(LIBAPTPKG_MAJOR)
11
12 # The file method
13 PROGRAM=file
14 SLIBS = -lapt-pkg $(INTLLIBS)
15 LIB_MAKES = apt-pkg/makefile
16 SOURCE = file.cc
17 include $(PROGRAM_H)
18
19 # The copy method
20 PROGRAM=copy
21 SLIBS = -lapt-pkg $(INTLLIBS)
22 LIB_MAKES = apt-pkg/makefile
23 SOURCE = copy.cc
24 include $(PROGRAM_H)
25
26 # The gzip method
27 PROGRAM=gzip
28 SLIBS = -lapt-pkg $(INTLLIBS)
29 LIB_MAKES = apt-pkg/makefile
30 SOURCE = gzip.cc
31 include $(PROGRAM_H)
32
33 # The gpgv method
34 PROGRAM=gpgv
35 SLIBS = -lapt-pkg $(INTLLIBS)
36 LIB_MAKES = apt-pkg/makefile
37 SOURCE = gpgv.cc
38 include $(PROGRAM_H)
39
40 # The cdrom method
41 PROGRAM=cdrom
42 SLIBS = -lapt-pkg -ldl $(INTLLIBS)
43 LIB_MAKES = apt-pkg/makefile
44 SOURCE = cdrom.cc
45 include $(PROGRAM_H)
46
47 # The http method
48 PROGRAM=http
49 SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
50 LIB_MAKES = apt-pkg/makefile
51 SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc
52 include $(PROGRAM_H)
53
54 # The https method
55 PROGRAM=https
56 SLIBS = -lapt-pkg -lcurl $(INTLLIBS)
57 LIB_MAKES = apt-pkg/makefile
58 SOURCE = https.cc
59 include $(PROGRAM_H)
60
61 # The ftp method
62 PROGRAM=ftp
63 SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
64 LIB_MAKES = apt-pkg/makefile
65 SOURCE = ftp.cc rfc2553emu.cc connect.cc
66 include $(PROGRAM_H)
67
68 # The rred method
69 PROGRAM=rred
70 SLIBS = -lapt-pkg -lz $(SOCKETLIBS) $(INTLLIBS)
71 LIB_MAKES = apt-pkg/makefile
72 SOURCE = rred.cc
73 include $(PROGRAM_H)
74
75 # The rsh method
76 PROGRAM=rsh
77 SLIBS = -lapt-pkg $(INTLLIBS)
78 LIB_MAKES = apt-pkg/makefile
79 SOURCE = rsh.cc
80 include $(PROGRAM_H)
81
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
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 $(BIN)/xz
98 veryclean: clean-$(BIN)/ssh clean-$(BIN)/lzma clean-$(BIN)/xz
99
100 $(BIN)/ssh:
101 echo "Installing ssh method link"
102 ln -fs rsh $(BIN)/ssh
103 clean-$(BIN)/ssh:
104 -rm $(BIN)/ssh
105
106 $(BIN)/lzma:
107 echo "Installing lzma method link"
108 ln -fs bzip2 $(BIN)/lzma
109 clean-$(BIN)/lzma:
110 -rm $(BIN)/lzma
111
112 $(BIN)/xz:
113 echo "Installing xz method link"
114 ln -fs bzip2 $(BIN)/xz
115 clean-$(BIN)/xz:
116 -rm $(BIN)/xz