]>
Commit | Line | Data |
---|---|---|
04c3c0a1 | 1 | # |
3772bc0c | 2 | # "$Id: Makefile,v 1.39 2000/05/12 19:18:40 mike Exp $" |
04c3c0a1 | 3 | # |
4 | # Support library Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
71fe22b7 | 6 | # Copyright 1997-2000 by Easy Software Products, all rights reserved. |
04c3c0a1 | 7 | # |
8 | # These coded instructions, statements, and computer programs are the | |
9 | # property of Easy Software Products and are protected by Federal | |
10 | # copyright law. Distribution and use rights are outlined in the file | |
11 | # "LICENSE.txt" which should have been included with this file. If this | |
12 | # file is missing or damaged please contact Easy Software Products | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
8784b6a6 | 17 | # 44141 Airport View Drive, Suite 204 |
04c3c0a1 | 18 | # Hollywood, Maryland 20636-3111 USA |
19 | # | |
20 | # Voice: (301) 373-9603 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | include ../Makedefs | |
26 | ||
27 | # | |
8394744e | 28 | # Object files... |
04c3c0a1 | 29 | # |
30 | ||
83e740a5 | 31 | LIBOBJS = dest.o emit.o http.o ipp.o language.o mark.o md5.o md5passwd.o \ |
32 | options.o page.o ppd.o snprintf.o string.o usersys.o util.o | |
68edc300 | 33 | OBJS = $(LIBOBJS) testhttp.o testppd.o |
04c3c0a1 | 34 | |
a3e17a89 | 35 | |
04c3c0a1 | 36 | # |
37 | # Header files to install... | |
38 | # | |
39 | ||
ea315b09 | 40 | HEADERS = cups.h http.h ipp.h language.h md5.h ppd.h |
04c3c0a1 | 41 | |
a3e17a89 | 42 | |
04c3c0a1 | 43 | # |
44 | # Targets in this directory... | |
45 | # | |
46 | ||
7879471c | 47 | TARGETS = $(LIBCUPS) libcups.a |
04c3c0a1 | 48 | |
a3e17a89 | 49 | |
04c3c0a1 | 50 | # |
51 | # Make all targets... | |
52 | # | |
53 | ||
54 | all: $(TARGETS) | |
55 | ||
a3e17a89 | 56 | |
04c3c0a1 | 57 | # |
58 | # Remove object and target files... | |
59 | # | |
60 | ||
61 | clean: | |
8a2c2126 | 62 | $(RM) $(OBJS) $(TARGETS) |
04c3c0a1 | 63 | |
a3e17a89 | 64 | |
04c3c0a1 | 65 | # |
66 | # Install object and target files... | |
67 | # | |
68 | ||
69 | install: all | |
81793ce7 | 70 | -$(MKDIR) $(INCLUDEDIR)/cups |
a3e17a89 | 71 | $(INSTALL_DATA) $(HEADERS) $(INCLUDEDIR)/cups |
ab679c8f | 72 | -$(MKDIR) $(LIBDIR) |
a3e17a89 | 73 | $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR) |
ea315b09 | 74 | if test $(LIBCUPS) != "libcups.a" -a $(LIBCUPS) != "libcups.la"; then \ |
3772bc0c | 75 | $(INSTALL_LIB) libcups.a $(LIBDIR); \ |
432073bb | 76 | $(RM) `basename $(LIBCUPS) .2`; \ |
77 | $(LN) $(LIBCUPS) `basename $(LIBCUPS) .2`; \ | |
ab679c8f | 78 | fi |
79 | ||
a3e17a89 | 80 | |
ab679c8f | 81 | # |
432073bb | 82 | # libcups.so.2, libcups.sl.1 |
ab679c8f | 83 | # |
84 | ||
432073bb | 85 | libcups.so.2 libcups.sl.2: $(LIBOBJS) ../Makedefs |
ab679c8f | 86 | echo Linking $@... |
02abdc7e | 87 | $(DSO) $@ $(LIBOBJS) |
f99d4fce | 88 | $(RM) `basename $@ .2` |
89 | $(LN) $@ `basename $@ .2` | |
04c3c0a1 | 90 | |
a3e17a89 | 91 | |
ea315b09 | 92 | # |
93 | # libcups.la | |
94 | # | |
95 | ||
96 | libcups.la: $(LIBOBJS) ../Makedefs | |
97 | echo Linking $@... | |
98 | $(CC) -o $@ $(LIBOBJS:.o=.lo) -rpath $(LIBDIR) -version-info 2:0 | |
99 | ||
100 | ||
04c3c0a1 | 101 | # |
102 | # libcups.a | |
103 | # | |
104 | ||
02abdc7e | 105 | libcups.a: $(LIBOBJS) |
8391453b | 106 | echo Archiving $@... |
04c3c0a1 | 107 | $(RM) $@ |
02abdc7e | 108 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) |
04c3c0a1 | 109 | $(RANLIB) $@ |
110 | ||
a3e17a89 | 111 | |
7551914d | 112 | # |
113 | # cups_C.h - the default POSIX locale that is compiled in. | |
114 | # | |
115 | ||
116 | cups_C.h: ../locale/C/cups_C | |
8391453b | 117 | echo Generating $@... |
7551914d | 118 | $(RM) cups_C.h |
119 | $(AWK) '{print "\"" $$0 "\","}' < ../locale/C/cups_C > cups_C.h | |
120 | ||
bf23e338 | 121 | dest.o: cups.h http.h ipp.h language.h string.h |
68edc300 | 122 | emit.o: ppd.h |
17b95e13 | 123 | http.o: http.h ipp.h md5.h string.h |
68edc300 | 124 | ipp.o: http.h ipp.h string.h language.h |
125 | language.o: cups_C.h language.h string.h | |
126 | mark.o: ppd.h | |
17b95e13 | 127 | md5.o: md5.h |
68edc300 | 128 | options.o: cups.h |
129 | page.o: ppd.h | |
130 | ppd.o: language.h ppd.h | |
131 | snprintf.o: string.h | |
132 | string.o: string.h | |
133 | usersys.o: cups.h | |
134 | util.o: cups.h http.h ipp.h | |
04c3c0a1 | 135 | |
a3e17a89 | 136 | |
04c3c0a1 | 137 | # |
ab679c8f | 138 | # testhttp (dependency on static CUPS library is intentional) |
04c3c0a1 | 139 | # |
140 | ||
141 | testhttp: testhttp.o libcups.a | |
8391453b | 142 | echo Linking $@... |
2d54f5f0 | 143 | $(CC) $(LDFLAGS) -o $@ testhttp.o libcups.a $(NETLIBS) |
04c3c0a1 | 144 | |
68edc300 | 145 | testhttp.o: http.h |
04c3c0a1 | 146 | |
a3e17a89 | 147 | |
04c3c0a1 | 148 | # |
ab679c8f | 149 | # testppd (dependency on static CUPS library is intentional) |
04c3c0a1 | 150 | # |
151 | ||
50146867 | 152 | testppd: testppd.o libcups.a |
8391453b | 153 | echo Linking $@... |
2d54f5f0 | 154 | $(CC) $(LDFLAGS) -o $@ testppd.o libcups.a $(NETLIBS) |
04c3c0a1 | 155 | |
68edc300 | 156 | testppd.o: ppd.h |
157 | ||
158 | $(OBJS): ../Makedefs ../config.h | |
04c3c0a1 | 159 | |
a3e17a89 | 160 | |
04c3c0a1 | 161 | # |
3772bc0c | 162 | # End of "$Id: Makefile,v 1.39 2000/05/12 19:18:40 mike Exp $". |
04c3c0a1 | 163 | # |