]> git.saurik.com Git - apt.git/blob - methods/makefile
* apt-inst/contrib/extracttar.cc:
[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 # FIXME..
10 LIB_APT_PKG_MAJOR = 4.5
11 APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
12
13 # The file method
14 PROGRAM=file
15 SLIBS = -lapt-pkg
16 LIB_MAKES = apt-pkg/makefile
17 SOURCE = file.cc
18 include $(PROGRAM_H)
19
20 # The copy method
21 PROGRAM=copy
22 SLIBS = -lapt-pkg
23 LIB_MAKES = apt-pkg/makefile
24 SOURCE = copy.cc
25 include $(PROGRAM_H)
26
27 # The gzip method
28 PROGRAM=gzip
29 SLIBS = -lapt-pkg
30 LIB_MAKES = apt-pkg/makefile
31 SOURCE = gzip.cc
32 include $(PROGRAM_H)
33
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
41 # The cdrom method
42 PROGRAM=cdrom
43 SLIBS = -lapt-pkg
44 LIB_MAKES = apt-pkg/makefile
45 SOURCE = cdrom.cc
46 include $(PROGRAM_H)
47
48 # The http method
49 PROGRAM=http
50 SLIBS = -lapt-pkg $(SOCKETLIBS)
51 LIB_MAKES = apt-pkg/makefile
52 SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc
53 include $(PROGRAM_H)
54
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
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
69 # The ftp method
70 PROGRAM=ftp
71 SLIBS = -lapt-pkg $(SOCKETLIBS)
72 LIB_MAKES = apt-pkg/makefile
73 SOURCE = ftp.cc rfc2553emu.cc connect.cc
74 include $(PROGRAM_H)
75
76 # The rred method
77 PROGRAM=rred
78 SLIBS = -lapt-pkg $(SOCKETLIBS)
79 LIB_MAKES = apt-pkg/makefile
80 SOURCE = rred.cc
81 include $(PROGRAM_H)
82
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
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
97 # SSH and bzip2,lzma method symlinks
98 binary: $(BIN)/ssh $(BIN)/bzip2 $(BIN)/lzma
99 veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 clean-$(BIN)/lzma
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)/bzip2:
107 echo "Installing bzip2 method link"
108 ln -fs gzip $(BIN)/bzip2
109 $(BIN)/lzma:
110 echo "Installing lzma method link"
111 ln -fs gzip $(BIN)/lzma
112 clean-$(BIN)/bzip2:
113 -rm $(BIN)/bzip2
114 clean-$(BIN)/lzma:
115 -rm $(BIN)/lzma