]> git.saurik.com Git - apt.git/blame_incremental - methods/makefile
releasing version 0.8.15.8
[apt.git] / methods / makefile
... / ...
CommitLineData
1# -*- make -*-
2BASE=..
3SUBDIR=methods
4
5# Bring in the default rules
6include ../buildlib/defaults.mak
7BIN := $(BIN)/methods
8
9include ../buildlib/libversion.mak
10APT_DOMAIN := libapt-pkg$(LIBAPTPKG_MAJOR)
11
12# The file method
13PROGRAM=file
14SLIBS = -lapt-pkg $(INTLLIBS)
15LIB_MAKES = apt-pkg/makefile
16SOURCE = file.cc
17include $(PROGRAM_H)
18
19# The copy method
20PROGRAM=copy
21SLIBS = -lapt-pkg $(INTLLIBS)
22LIB_MAKES = apt-pkg/makefile
23SOURCE = copy.cc
24include $(PROGRAM_H)
25
26# The gzip method
27PROGRAM=gzip
28SLIBS = -lapt-pkg $(INTLLIBS)
29LIB_MAKES = apt-pkg/makefile
30SOURCE = gzip.cc
31include $(PROGRAM_H)
32
33# The gpgv method
34PROGRAM=gpgv
35SLIBS = -lapt-pkg $(INTLLIBS)
36LIB_MAKES = apt-pkg/makefile
37SOURCE = gpgv.cc
38include $(PROGRAM_H)
39
40# The cdrom method
41PROGRAM=cdrom
42SLIBS = -lapt-pkg -ldl $(INTLLIBS)
43LIB_MAKES = apt-pkg/makefile
44SOURCE = cdrom.cc
45include $(PROGRAM_H)
46
47# The http method
48PROGRAM=http
49SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
50LIB_MAKES = apt-pkg/makefile
51SOURCE = http.cc http_main.cc rfc2553emu.cc connect.cc
52include $(PROGRAM_H)
53
54# The https method
55PROGRAM=https
56SLIBS = -lapt-pkg -lcurl $(INTLLIBS)
57LIB_MAKES = apt-pkg/makefile
58SOURCE = https.cc
59include $(PROGRAM_H)
60
61# The ftp method
62PROGRAM=ftp
63SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
64LIB_MAKES = apt-pkg/makefile
65SOURCE = ftp.cc rfc2553emu.cc connect.cc
66include $(PROGRAM_H)
67
68# The rred method
69PROGRAM=rred
70SLIBS = -lapt-pkg -lz $(SOCKETLIBS) $(INTLLIBS)
71LIB_MAKES = apt-pkg/makefile
72SOURCE = rred.cc
73include $(PROGRAM_H)
74
75# The rsh method
76PROGRAM=rsh
77SLIBS = -lapt-pkg $(INTLLIBS)
78LIB_MAKES = apt-pkg/makefile
79SOURCE = rsh.cc
80include $(PROGRAM_H)
81
82# The mirror method
83PROGRAM=mirror
84SLIBS = -lapt-pkg $(SOCKETLIBS)
85LIB_MAKES = apt-pkg/makefile
86SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc
87include $(PROGRAM_H)
88
89# The gzip method
90PROGRAM=bzip2
91SLIBS = -lapt-pkg $(INTLLIBS)
92LIB_MAKES = apt-pkg/makefile
93SOURCE = bzip2.cc
94include $(PROGRAM_H)
95
96# SSH and lzma method symlink
97binary: $(BIN)/ssh $(BIN)/lzma $(BIN)/xz
98veryclean: 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
103clean-$(BIN)/ssh:
104 -rm $(BIN)/ssh
105
106$(BIN)/lzma:
107 echo "Installing lzma method link"
108 ln -fs bzip2 $(BIN)/lzma
109clean-$(BIN)/lzma:
110 -rm $(BIN)/lzma
111
112$(BIN)/xz:
113 echo "Installing xz method link"
114 ln -fs bzip2 $(BIN)/xz
115clean-$(BIN)/xz:
116 -rm $(BIN)/xz