]>
Commit | Line | Data |
---|---|---|
04c3c0a1 | 1 | # |
590a0a40 | 2 | # "$Id: Makefile,v 1.7 1999/04/22 13:53:04 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 \ |
03d3e5ef | 32 | options.o page.o ppd.o raster.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 | ||
78 | emit.o: ppd.h ../config.h ../Makedefs | |
79 | filter.o: mime.h ../config.h ../Makedefs | |
3b960317 | 80 | http.o: http.h string.h ../config.h ../Makedefs |
04c3c0a1 | 81 | ipp.o: http.h ipp.h ../config.h ../Makedefs |
46b7e58a | 82 | language.o: language.h string.h ../config.h ../Makedefs |
04c3c0a1 | 83 | mark.o: ppd.h ../config.h ../Makedefs |
84 | mime.o: mime.h ../config.h ../Makedefs | |
3b960317 | 85 | options.o: cups.h ../config.h ../Makedefs |
04c3c0a1 | 86 | page.o: ppd.h ../config.h ../Makedefs |
87 | ppd.o: ppd.h ../config.h ../Makedefs | |
03d3e5ef | 88 | raster.o: raster.h ../config.h ../Makedefs |
04c3c0a1 | 89 | type.o: mime.h ../config.h ../Makedefs |
3b960317 | 90 | util.o: cups.h http.h ipp.h ../config.h ../Makedefs |
04c3c0a1 | 91 | |
92 | # | |
93 | # testhttp | |
94 | # | |
95 | ||
96 | testhttp: testhttp.o libcups.a | |
590a0a40 | 97 | $(CC) $(LDFLAGS) -o $@ testhttp.o $(LIBS) |
04c3c0a1 | 98 | |
99 | testhttp.o: http.h ../Makedefs | |
100 | ||
101 | # | |
102 | # testmime | |
103 | # | |
104 | ||
105 | testmime: testmime.o libcups.a | |
590a0a40 | 106 | $(CC) $(LDFLAGS) -o $@ testmime.o $(LIBS) |
04c3c0a1 | 107 | |
108 | testmime.o: mime.h ../Makedefs | |
109 | ||
110 | # | |
111 | # testppd | |
112 | # | |
113 | ||
50146867 | 114 | testppd: testppd.o libcups.a |
590a0a40 | 115 | $(CC) $(LDFLAGS) -o $@ testppd.o $(LIBS) |
04c3c0a1 | 116 | |
117 | testppd.o: ppd.h ../Makedefs | |
118 | ||
119 | # | |
590a0a40 | 120 | # End of "$Id: Makefile,v 1.7 1999/04/22 13:53:04 mike Exp $". |
04c3c0a1 | 121 | # |