]>
Commit | Line | Data |
---|---|---|
04c3c0a1 | 1 | # |
8a5aa628 | 2 | # "$Id: Makefile,v 1.10 1999/04/30 15:39:39 mike Exp $" |
04c3c0a1 | 3 | # |
4 | # Support library Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 1997-1999 by Easy Software Products, all rights reserved. | |
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 | |
17 | # 44145 Airport View Drive, Suite 204 | |
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 | # | |
28 | # libcups.a object files... | |
29 | # | |
30 | ||
46b7e58a | 31 | OBJS = emit.o filter.o http.o ipp.o language.o mark.o mime.o \ |
ca7e65c8 | 32 | options.o page.o ppd.o raster.o string.o type.o util.o |
04c3c0a1 | 33 | |
34 | # | |
35 | # Header files to install... | |
36 | # | |
37 | ||
03d3e5ef | 38 | HEADERS = cups.h http.h ipp.h language.h mime.h ppd.h raster.h |
04c3c0a1 | 39 | |
40 | # | |
41 | # Targets in this directory... | |
42 | # | |
43 | ||
44 | TARGETS = libcups.a testmime testppd testhttp | |
45 | ||
46 | # | |
47 | # Make all targets... | |
48 | # | |
49 | ||
50 | all: $(TARGETS) | |
51 | ||
52 | # | |
53 | # Remove object and target files... | |
54 | # | |
55 | ||
56 | clean: | |
57 | rm -f $(OBJS) $(TARGETS) | |
58 | ||
59 | # | |
60 | # Install object and target files... | |
61 | # | |
62 | ||
63 | install: all | |
64 | -$(MKDIR) $(LIBDIR) | |
65 | $(CP) libcups.a $(LIBDIR) | |
66 | -$(MKDIR) $(INCDIR)/cups | |
67 | $(CP) $(HEADERS) $(INCDIR)/cups | |
68 | ||
69 | # | |
70 | # libcups.a | |
71 | # | |
72 | ||
73 | libcups.a: $(OBJS) | |
74 | $(RM) $@ | |
75 | $(AR) $(ARFLAGS) $@ $(OBJS) | |
76 | $(RANLIB) $@ | |
77 | ||
7551914d | 78 | # |
79 | # cups_C.h - the default POSIX locale that is compiled in. | |
80 | # | |
81 | ||
82 | cups_C.h: ../locale/C/cups_C | |
83 | $(RM) cups_C.h | |
84 | $(AWK) '{print "\"" $$0 "\","}' < ../locale/C/cups_C > cups_C.h | |
85 | ||
04c3c0a1 | 86 | emit.o: ppd.h ../config.h ../Makedefs |
87 | filter.o: mime.h ../config.h ../Makedefs | |
8a5aa628 | 88 | http.o: http.h ipp.h string.h ../config.h ../Makedefs |
04c3c0a1 | 89 | ipp.o: http.h ipp.h ../config.h ../Makedefs |
7551914d | 90 | language.o: cups_C.h language.h string.h ../config.h ../Makedefs |
04c3c0a1 | 91 | mark.o: ppd.h ../config.h ../Makedefs |
92 | mime.o: mime.h ../config.h ../Makedefs | |
3b960317 | 93 | options.o: cups.h ../config.h ../Makedefs |
04c3c0a1 | 94 | page.o: ppd.h ../config.h ../Makedefs |
95 | ppd.o: ppd.h ../config.h ../Makedefs | |
03d3e5ef | 96 | raster.o: raster.h ../config.h ../Makedefs |
ca7e65c8 | 97 | string.o: string.h ../config.h ../Makedefs |
04c3c0a1 | 98 | type.o: mime.h ../config.h ../Makedefs |
3b960317 | 99 | util.o: cups.h http.h ipp.h ../config.h ../Makedefs |
04c3c0a1 | 100 | |
101 | # | |
102 | # testhttp | |
103 | # | |
104 | ||
105 | testhttp: testhttp.o libcups.a | |
590a0a40 | 106 | $(CC) $(LDFLAGS) -o $@ testhttp.o $(LIBS) |
04c3c0a1 | 107 | |
108 | testhttp.o: http.h ../Makedefs | |
109 | ||
110 | # | |
111 | # testmime | |
112 | # | |
113 | ||
114 | testmime: testmime.o libcups.a | |
590a0a40 | 115 | $(CC) $(LDFLAGS) -o $@ testmime.o $(LIBS) |
04c3c0a1 | 116 | |
117 | testmime.o: mime.h ../Makedefs | |
118 | ||
119 | # | |
120 | # testppd | |
121 | # | |
122 | ||
50146867 | 123 | testppd: testppd.o libcups.a |
590a0a40 | 124 | $(CC) $(LDFLAGS) -o $@ testppd.o $(LIBS) |
04c3c0a1 | 125 | |
126 | testppd.o: ppd.h ../Makedefs | |
127 | ||
128 | # | |
8a5aa628 | 129 | # End of "$Id: Makefile,v 1.10 1999/04/30 15:39:39 mike Exp $". |
04c3c0a1 | 130 | # |