]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/Makefile
Added echo commands to makefile.
[thirdparty/cups.git] / cups / Makefile
CommitLineData
04c3c0a1 1#
6b67a15e 2# "$Id: Makefile,v 1.15 1999/06/21 18:46:12 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
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
25include ../Makedefs
26
27#
8394744e 28# Object files...
04c3c0a1 29#
30
46b7e58a 31OBJS = emit.o filter.o http.o ipp.o language.o mark.o mime.o \
6b67a15e 32 options.o page.o ppd.o raster.o string.o type.o usersys.o \
33 util.o
04c3c0a1 34
35#
36# Header files to install...
37#
38
03d3e5ef 39HEADERS = cups.h http.h ipp.h language.h mime.h ppd.h raster.h
04c3c0a1 40
41#
42# Targets in this directory...
43#
44
45TARGETS = libcups.a testmime testppd testhttp
46
47#
48# Make all targets...
49#
50
51all: $(TARGETS)
52
53#
54# Remove object and target files...
55#
56
57clean:
58 rm -f $(OBJS) $(TARGETS)
59
60#
61# Install object and target files...
62#
63
64install: all
65 -$(MKDIR) $(LIBDIR)
66 $(CP) libcups.a $(LIBDIR)
81793ce7 67 -$(MKDIR) $(INCLUDEDIR)/cups
68 $(CP) $(HEADERS) $(INCLUDEDIR)/cups
04c3c0a1 69
70#
71# libcups.a
72#
73
74libcups.a: $(OBJS)
6b67a15e 75 echo Archiving $<...
04c3c0a1 76 $(RM) $@
77 $(AR) $(ARFLAGS) $@ $(OBJS)
78 $(RANLIB) $@
79
7551914d 80#
81# cups_C.h - the default POSIX locale that is compiled in.
82#
83
84cups_C.h: ../locale/C/cups_C
6b67a15e 85 echo Generating $<...
7551914d 86 $(RM) cups_C.h
87 $(AWK) '{print "\"" $$0 "\","}' < ../locale/C/cups_C > cups_C.h
88
04c3c0a1 89emit.o: ppd.h ../config.h ../Makedefs
90filter.o: mime.h ../config.h ../Makedefs
8a5aa628 91http.o: http.h ipp.h string.h ../config.h ../Makedefs
04c3c0a1 92ipp.o: http.h ipp.h ../config.h ../Makedefs
7551914d 93language.o: cups_C.h language.h string.h ../config.h ../Makedefs
04c3c0a1 94mark.o: ppd.h ../config.h ../Makedefs
95mime.o: mime.h ../config.h ../Makedefs
3b960317 96options.o: cups.h ../config.h ../Makedefs
04c3c0a1 97page.o: ppd.h ../config.h ../Makedefs
11b9b0d7 98ppd.o: language.h ppd.h ../config.h ../Makedefs
03d3e5ef 99raster.o: raster.h ../config.h ../Makedefs
ca7e65c8 100string.o: string.h ../config.h ../Makedefs
04c3c0a1 101type.o: mime.h ../config.h ../Makedefs
6b67a15e 102usersys.o: cups.h ../config.h ../Makedefs
3b960317 103util.o: cups.h http.h ipp.h ../config.h ../Makedefs
04c3c0a1 104
105#
106# testhttp
107#
108
109testhttp: testhttp.o libcups.a
6b67a15e 110 echo Linking $<...
590a0a40 111 $(CC) $(LDFLAGS) -o $@ testhttp.o $(LIBS)
04c3c0a1 112
113testhttp.o: http.h ../Makedefs
114
115#
116# testmime
117#
118
119testmime: testmime.o libcups.a
6b67a15e 120 echo Linking $<...
590a0a40 121 $(CC) $(LDFLAGS) -o $@ testmime.o $(LIBS)
04c3c0a1 122
123testmime.o: mime.h ../Makedefs
124
125#
126# testppd
127#
128
50146867 129testppd: testppd.o libcups.a
6b67a15e 130 echo Linking $<...
590a0a40 131 $(CC) $(LDFLAGS) -o $@ testppd.o $(LIBS)
04c3c0a1 132
133testppd.o: ppd.h ../Makedefs
134
135#
6b67a15e 136# End of "$Id: Makefile,v 1.15 1999/06/21 18:46:12 mike Exp $".
04c3c0a1 137#