]>
Commit | Line | Data |
---|---|---|
04c3c0a1 | 1 | # |
03921eb6 | 2 | # "$Id: Makefile,v 1.42 2000/08/24 17:54:27 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: | |
bb5310bb | 62 | $(RM) $(OBJS) $(TARGETS) `basename $(LIBCUPS) .2` |
04c3c0a1 | 63 | |
a3e17a89 | 64 | |
04c3c0a1 | 65 | # |
66 | # Install object and target files... | |
67 | # | |
68 | ||
69 | install: all | |
81793ce7 | 70 | -$(MKDIR) $(INCLUDEDIR)/cups |
e64cfc6d | 71 | $(CHMOD) ugo+rx $(INCLUDEDIR) |
72 | $(CHMOD) ugo+rx $(INCLUDEDIR)/cups | |
a3e17a89 | 73 | $(INSTALL_DATA) $(HEADERS) $(INCLUDEDIR)/cups |
ab679c8f | 74 | -$(MKDIR) $(LIBDIR) |
e64cfc6d | 75 | $(CHMOD) ugo+rx $(LIBDIR) |
a3e17a89 | 76 | $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR) |
ea315b09 | 77 | if test $(LIBCUPS) != "libcups.a" -a $(LIBCUPS) != "libcups.la"; then \ |
3772bc0c | 78 | $(INSTALL_LIB) libcups.a $(LIBDIR); \ |
03921eb6 | 79 | $(RM) `basename $(LIBDIR)/$(LIBCUPS) .2`; \ |
80 | $(LN) $(LIBCUPS) `basename $(LIBDIR)/$(LIBCUPS) .2`; \ | |
ab679c8f | 81 | fi |
82 | ||
a3e17a89 | 83 | |
ab679c8f | 84 | # |
432073bb | 85 | # libcups.so.2, libcups.sl.1 |
ab679c8f | 86 | # |
87 | ||
432073bb | 88 | libcups.so.2 libcups.sl.2: $(LIBOBJS) ../Makedefs |
ab679c8f | 89 | echo Linking $@... |
02abdc7e | 90 | $(DSO) $@ $(LIBOBJS) |
f99d4fce | 91 | $(RM) `basename $@ .2` |
92 | $(LN) $@ `basename $@ .2` | |
04c3c0a1 | 93 | |
a3e17a89 | 94 | |
ea315b09 | 95 | # |
96 | # libcups.la | |
97 | # | |
98 | ||
99 | libcups.la: $(LIBOBJS) ../Makedefs | |
100 | echo Linking $@... | |
101 | $(CC) -o $@ $(LIBOBJS:.o=.lo) -rpath $(LIBDIR) -version-info 2:0 | |
102 | ||
103 | ||
04c3c0a1 | 104 | # |
105 | # libcups.a | |
106 | # | |
107 | ||
02abdc7e | 108 | libcups.a: $(LIBOBJS) |
8391453b | 109 | echo Archiving $@... |
04c3c0a1 | 110 | $(RM) $@ |
02abdc7e | 111 | $(AR) $(ARFLAGS) $@ $(LIBOBJS) |
04c3c0a1 | 112 | $(RANLIB) $@ |
113 | ||
a3e17a89 | 114 | |
7551914d | 115 | # |
116 | # cups_C.h - the default POSIX locale that is compiled in. | |
117 | # | |
118 | ||
119 | cups_C.h: ../locale/C/cups_C | |
8391453b | 120 | echo Generating $@... |
7551914d | 121 | $(RM) cups_C.h |
122 | $(AWK) '{print "\"" $$0 "\","}' < ../locale/C/cups_C > cups_C.h | |
123 | ||
bf23e338 | 124 | dest.o: cups.h http.h ipp.h language.h string.h |
68edc300 | 125 | emit.o: ppd.h |
17b95e13 | 126 | http.o: http.h ipp.h md5.h string.h |
68edc300 | 127 | ipp.o: http.h ipp.h string.h language.h |
128 | language.o: cups_C.h language.h string.h | |
129 | mark.o: ppd.h | |
17b95e13 | 130 | md5.o: md5.h |
68edc300 | 131 | options.o: cups.h |
132 | page.o: ppd.h | |
133 | ppd.o: language.h ppd.h | |
134 | snprintf.o: string.h | |
135 | string.o: string.h | |
136 | usersys.o: cups.h | |
137 | util.o: cups.h http.h ipp.h | |
04c3c0a1 | 138 | |
a3e17a89 | 139 | |
04c3c0a1 | 140 | # |
ab679c8f | 141 | # testhttp (dependency on static CUPS library is intentional) |
04c3c0a1 | 142 | # |
143 | ||
144 | testhttp: testhttp.o libcups.a | |
8391453b | 145 | echo Linking $@... |
2d54f5f0 | 146 | $(CC) $(LDFLAGS) -o $@ testhttp.o libcups.a $(NETLIBS) |
04c3c0a1 | 147 | |
68edc300 | 148 | testhttp.o: http.h |
04c3c0a1 | 149 | |
a3e17a89 | 150 | |
04c3c0a1 | 151 | # |
ab679c8f | 152 | # testppd (dependency on static CUPS library is intentional) |
04c3c0a1 | 153 | # |
154 | ||
50146867 | 155 | testppd: testppd.o libcups.a |
8391453b | 156 | echo Linking $@... |
2d54f5f0 | 157 | $(CC) $(LDFLAGS) -o $@ testppd.o libcups.a $(NETLIBS) |
04c3c0a1 | 158 | |
68edc300 | 159 | testppd.o: ppd.h |
160 | ||
161 | $(OBJS): ../Makedefs ../config.h | |
04c3c0a1 | 162 | |
a3e17a89 | 163 | |
04c3c0a1 | 164 | # |
03921eb6 | 165 | # End of "$Id: Makefile,v 1.42 2000/08/24 17:54:27 mike Exp $". |
04c3c0a1 | 166 | # |