]>
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 = \ | |
aaf19ab0 MS |
24 | create-printer-subscription.test \ |
25 | get-completed-jobs.test \ | |
26 | get-jobs.test \ | |
f8b3a85b MS |
27 | ipp-1.1.test \ |
28 | ipp-2.0.test \ | |
29 | ipp-2.1.test \ | |
30 | testfile.jpg \ | |
31 | testfile.pdf \ | |
32 | testfile.ps \ | |
33 | testfile.txt | |
34 | ||
35 | ||
ef416fc2 | 36 | # |
37 | # Make all targets... | |
38 | # | |
39 | ||
aaf19ab0 | 40 | all: ipptool ipptool-static |
ef416fc2 | 41 | |
42 | ||
c9fc04c6 MS |
43 | # |
44 | # Make library targets... | |
45 | # | |
46 | ||
47 | libs: | |
48 | ||
49 | ||
5f64df29 MS |
50 | # |
51 | # Make unit tests... | |
52 | # | |
53 | ||
54 | unittests: | |
55 | ||
56 | ||
ef416fc2 | 57 | # |
58 | # Clean all object files... | |
59 | # | |
60 | ||
61 | clean: | |
aaf19ab0 | 62 | $(RM) ipptool ipptool.o ipptool-static |
ef416fc2 | 63 | |
64 | ||
65 | # | |
66 | # Update dependencies (without system header dependencies...) | |
67 | # | |
68 | ||
69 | depend: | |
aaf19ab0 | 70 | makedepend -Y -I.. -fDependencies ipptool.c >/dev/null 2>&1 |
ef416fc2 | 71 | |
72 | ||
73 | # | |
74 | # Install all targets... | |
75 | # | |
76 | ||
50fe7201 MS |
77 | install: all install-data install-headers install-libs install-exec |
78 | ||
79 | ||
80 | # | |
81 | # Install data files... | |
82 | # | |
83 | ||
84 | install-data: | |
aaf19ab0 MS |
85 | echo Installing sample ipptool files in $(DATADIR)/ipptool... |
86 | $(INSTALL_DIR) -m 755 $(DATADIR)/ipptool | |
f8b3a85b | 87 | for file in $(TESTFILES); do \ |
aaf19ab0 | 88 | $(INSTALL_DATA) $$file $(DATADIR)/ipptool; \ |
f8b3a85b | 89 | done |
50fe7201 MS |
90 | |
91 | ||
92 | # | |
93 | # Install programs... | |
94 | # | |
95 | ||
96 | install-exec: | |
aaf19ab0 | 97 | echo Installing ipptool in $(BINDIR)... |
f8b3a85b | 98 | $(INSTALL_DIR) -m 755 $(BINDIR) |
aaf19ab0 | 99 | $(INSTALL_BIN) ipptool $(BINDIR) |
f8b3a85b MS |
100 | if test "x$(SYMROOT)" != "x"; then \ |
101 | $(INSTALL_DIR) $(SYMROOT); \ | |
aaf19ab0 | 102 | cp ipptool $(SYMROOT); \ |
f8b3a85b | 103 | fi |
50fe7201 MS |
104 | |
105 | ||
106 | # | |
107 | # Install headers... | |
108 | # | |
109 | ||
110 | install-headers: | |
111 | ||
112 | ||
113 | # | |
114 | # Install libraries... | |
115 | # | |
116 | ||
117 | install-libs: | |
ef416fc2 | 118 | |
119 | ||
757d2cad | 120 | # |
121 | # Unnstall all targets... | |
122 | # | |
123 | ||
124 | uninstall: | |
125 | ||
126 | ||
ef416fc2 | 127 | # |
aaf19ab0 | 128 | # ipptool |
ef416fc2 | 129 | # |
130 | ||
aaf19ab0 | 131 | ipptool: ipptool.o ../cups/$(LIBCUPS) |
f8b3a85b | 132 | echo Linking $@... |
aaf19ab0 | 133 | $(CC) $(LDFLAGS) -o $@ ipptool.o $(LIBS) |
f8b3a85b MS |
134 | |
135 | ||
136 | # | |
aaf19ab0 | 137 | # ipptool-static |
f8b3a85b MS |
138 | # |
139 | ||
aaf19ab0 | 140 | ipptool-static: ipptool.o ../cups/$(LIBCUPSSTATIC) |
ef416fc2 | 141 | echo Linking $@... |
aaf19ab0 | 142 | $(CC) $(LDFLAGS) -o $@ ipptool.o ../cups/$(LIBCUPSSTATIC) \ |
c168a833 | 143 | $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) |
ef416fc2 | 144 | |
145 | ||
146 | # | |
147 | # Dependencies... | |
148 | # | |
149 | ||
150 | include Dependencies | |
151 | ||
152 | ||
153 | # | |
b19ccc9e | 154 | # End of "$Id: Makefile 7871 2008-08-27 21:12:43Z mike $". |
ef416fc2 | 155 | # |