]> git.saurik.com Git - apt.git/blob - methods/makefile
debian/apt.postinst: chown _apt:root /etc/apt/auth.conf
[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 := apt
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 $(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 server.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 server.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 $(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 server.cc
87 include $(PROGRAM_H)
88
89 # SSH method symlink
90 binary: $(BIN)/ssh
91 veryclean: clean-$(BIN)/ssh
92
93 $(BIN)/ssh:
94 echo "Installing ssh method link"
95 ln -fs rsh $(BIN)/ssh
96 clean-$(BIN)/ssh:
97 -rm $(BIN)/ssh
98
99 # create links for all other compressors
100 COMPRESSORS=bzip2 lzma xz
101
102 binary: $(addprefix $(BIN)/,$(COMPRESSORS))
103 veryclean: $(addprefix clean-$(BIN)/,$(COMPRESSORS))
104
105 $(addprefix $(BIN)/,$(COMPRESSORS)): $(BIN)/gzip
106 echo "Installing $(notdir $@) method link"
107 ln -fs gzip $@
108
109 $(addprefix clean-$(BIN)/,$(COMPRESSORS)):
110 -rm $(BIN)/$(notdir $@)