]> git.saurik.com Git - apt-legacy.git/blob - methods/makefile
Ported to APT 0.7.25.3.
[apt-legacy.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) -framework CoreFoundation -framework CFNetwork -framework SystemConfiguration -framework IOKit -llockdown
50 LIB_MAKES = apt-pkg/makefile
51 SOURCE = http.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 $(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 # SSH and bzip2 method symlink
83 binary: $(BIN)/ssh $(BIN)/bzip2 $(BIN)/lzma
84 veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 clean-$(BIN)/lzma
85 $(BIN)/ssh:
86 echo "Installing ssh method link"
87 ln -fs rsh $(BIN)/ssh
88 clean-$(BIN)/ssh:
89 -rm $(BIN)/ssh
90
91 $(BIN)/bzip2:
92 echo "Installing bzip2 method link"
93 ln -fs gzip $(BIN)/bzip2
94 $(BIN)/lzma:
95 echo "Installing lzma method link"
96 ln -fs gzip $(BIN)/lzma
97 clean-$(BIN)/bzip2:
98 -rm $(BIN)/bzip2
99 clean-$(BIN)/lzma:
100 -rm $(BIN)/lzma