]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/Makefile
Updated software distribution files to use installation prefixes.
[thirdparty/cups.git] / cups / Makefile
CommitLineData
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
25include ../Makedefs
26
27#
8394744e 28# Object files...
04c3c0a1 29#
30
83e740a5 31LIBOBJS = 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 33OBJS = $(LIBOBJS) testhttp.o testppd.o
04c3c0a1 34
a3e17a89 35
04c3c0a1 36#
37# Header files to install...
38#
39
ea315b09 40HEADERS = 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 47TARGETS = $(LIBCUPS) libcups.a
04c3c0a1 48
a3e17a89 49
04c3c0a1 50#
51# Make all targets...
52#
53
54all: $(TARGETS)
55
a3e17a89 56
04c3c0a1 57#
58# Remove object and target files...
59#
60
61clean:
8a2c2126 62 $(RM) $(OBJS) $(TARGETS)
04c3c0a1 63
a3e17a89 64
04c3c0a1 65#
66# Install object and target files...
67#
68
69install: 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 85libcups.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
96libcups.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 105libcups.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
116cups_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 121dest.o: cups.h http.h ipp.h language.h string.h
68edc300 122emit.o: ppd.h
17b95e13 123http.o: http.h ipp.h md5.h string.h
68edc300 124ipp.o: http.h ipp.h string.h language.h
125language.o: cups_C.h language.h string.h
126mark.o: ppd.h
17b95e13 127md5.o: md5.h
68edc300 128options.o: cups.h
129page.o: ppd.h
130ppd.o: language.h ppd.h
131snprintf.o: string.h
132string.o: string.h
133usersys.o: cups.h
134util.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
141testhttp: testhttp.o libcups.a
8391453b 142 echo Linking $@...
2d54f5f0 143 $(CC) $(LDFLAGS) -o $@ testhttp.o libcups.a $(NETLIBS)
04c3c0a1 144
68edc300 145testhttp.o: http.h
04c3c0a1 146
a3e17a89 147
04c3c0a1 148#
ab679c8f 149# testppd (dependency on static CUPS library is intentional)
04c3c0a1 150#
151
50146867 152testppd: testppd.o libcups.a
8391453b 153 echo Linking $@...
2d54f5f0 154 $(CC) $(LDFLAGS) -o $@ testppd.o libcups.a $(NETLIBS)
04c3c0a1 155
68edc300 156testppd.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#