]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
b19ccc9e | 2 | # "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $" |
ef416fc2 | 3 | # |
f8b3a85b | 4 | # IPP test makefile for CUPS. |
ef416fc2 | 5 | # |
f8b3a85b | 6 | # Copyright 2007-2010 by Apple Inc. |
757d2cad | 7 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 8 | # |
9 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | # property of Apple Inc. and are protected by Federal copyright |
11 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | # which should have been included with this file. If this file is | |
13 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 14 | # |
15 | ||
16 | include ../Makedefs | |
17 | ||
18 | ||
f8b3a85b MS |
19 | # |
20 | # Sample test files. | |
21 | # | |
22 | ||
23 | TESTFILES = \ | |
24 | ipp-1.1.test \ | |
25 | ipp-2.0.test \ | |
26 | ipp-2.1.test \ | |
27 | testfile.jpg \ | |
28 | testfile.pdf \ | |
29 | testfile.ps \ | |
30 | testfile.txt | |
31 | ||
32 | ||
ef416fc2 | 33 | # |
34 | # Make all targets... | |
35 | # | |
36 | ||
f8b3a85b | 37 | all: ipptest ipptest-static |
ef416fc2 | 38 | |
39 | ||
c9fc04c6 MS |
40 | # |
41 | # Make library targets... | |
42 | # | |
43 | ||
44 | libs: | |
45 | ||
46 | ||
5f64df29 MS |
47 | # |
48 | # Make unit tests... | |
49 | # | |
50 | ||
51 | unittests: | |
52 | ||
53 | ||
ef416fc2 | 54 | # |
55 | # Clean all object files... | |
56 | # | |
57 | ||
58 | clean: | |
f8b3a85b | 59 | $(RM) ipptest ipptest.o ipptest-static |
ef416fc2 | 60 | |
61 | ||
62 | # | |
63 | # Update dependencies (without system header dependencies...) | |
64 | # | |
65 | ||
66 | depend: | |
67 | makedepend -Y -I.. -fDependencies ipptest.c >/dev/null 2>&1 | |
68 | ||
69 | ||
70 | # | |
71 | # Install all targets... | |
72 | # | |
73 | ||
50fe7201 MS |
74 | install: all install-data install-headers install-libs install-exec |
75 | ||
76 | ||
77 | # | |
78 | # Install data files... | |
79 | # | |
80 | ||
81 | install-data: | |
f8b3a85b MS |
82 | echo Installing sample ipptest files in $(DATADIR)/ipptest... |
83 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptest | |
84 | for file in $(TESTFILES); do \ | |
85 | $(INSTALL_DATA) $$file $(DATADIR)/ipptest; \ | |
86 | done | |
50fe7201 MS |
87 | |
88 | ||
89 | # | |
90 | # Install programs... | |
91 | # | |
92 | ||
93 | install-exec: | |
f8b3a85b MS |
94 | echo Installing ipptest in $(BINDIR)... |
95 | $(INSTALL_DIR) -m 755 $(BINDIR) | |
96 | $(INSTALL_BIN) ipptest $(BINDIR) | |
97 | if test "x$(SYMROOT)" != "x"; then \ | |
98 | $(INSTALL_DIR) $(SYMROOT); \ | |
99 | cp ipptest $(SYMROOT); \ | |
100 | fi | |
50fe7201 MS |
101 | |
102 | ||
103 | # | |
104 | # Install headers... | |
105 | # | |
106 | ||
107 | install-headers: | |
108 | ||
109 | ||
110 | # | |
111 | # Install libraries... | |
112 | # | |
113 | ||
114 | install-libs: | |
ef416fc2 | 115 | |
116 | ||
757d2cad | 117 | # |
118 | # Unnstall all targets... | |
119 | # | |
120 | ||
121 | uninstall: | |
122 | ||
123 | ||
ef416fc2 | 124 | # |
125 | # ipptest | |
126 | # | |
127 | ||
f8b3a85b MS |
128 | ipptest: ipptest.o ../cups/$(LIBCUPS) |
129 | echo Linking $@... | |
130 | $(CC) $(LDFLAGS) -o $@ ipptest.o $(LIBS) | |
131 | ||
132 | ||
133 | # | |
134 | # ipptest-static | |
135 | # | |
136 | ||
137 | ipptest-static: ipptest.o ../cups/$(LIBCUPSSTATIC) | |
ef416fc2 | 138 | echo Linking $@... |
f8b3a85b | 139 | $(CC) $(LDFLAGS) -o $@ ipptest.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 140 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 141 | |
142 | ||
143 | # | |
144 | # Dependencies... | |
145 | # | |
146 | ||
147 | include Dependencies | |
148 | ||
149 | ||
150 | # | |
b19ccc9e | 151 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". |
ef416fc2 | 152 | # |