]> git.ipfire.org Git - thirdparty/cups.git/blame - pdftops/Makefile
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / pdftops / Makefile
CommitLineData
ef416fc2 1#
c07d5b2d 2# "$Id: Makefile 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3#
4# pdftops filter Makefile for the Common UNIX Printing System (CUPS).
5#
bd7854cb 6# CUPS filter changes Copyright 1997-2006 by Easy Software Products.
ef416fc2 7# Xpdf code Copyright 1996-1999 by Derek B. Noonburg
8#
9
10
11include ../Makedefs
12
13#
14# Object files...
15#
16
17LIBOBJS = \
18 Annot.o \
19 Array.o \
20 BuiltinFont.o \
21 BuiltinFontTables.o \
22 Catalog.o \
23 CharCodeToUnicode.o \
24 CMap.o \
25 Decrypt.o \
26 Dict.o \
27 Error.o \
28 FoFiBase.o \
29 FoFiEncodings.o \
30 FoFiTrueType.o \
31 FoFiType1C.o \
32 FoFiType1.o \
33 FontEncodingTables.o \
34 Function.o \
35 gfile.o \
36 Gfx.o \
37 GfxFont.o \
38 GfxState.o \
39 GHash.o \
40 GList.o \
41 GlobalParams.o \
42 gmem.o \
43 gmempp.o \
44 GString.o \
45 JArithmeticDecoder.o \
46 JBIG2Stream.o \
47 JPXStream.o \
48 Lexer.o \
49 Link.o \
50 NameToCharCode.o \
51 Object.o \
52 Outline.o \
53 OutputDev.o \
54 Page.o \
55 parseargs.o \
56 Parser.o \
57 PDFDoc.o \
58 PDFDocEncoding.o \
59 PSOutputDev.o \
60 PSTokenizer.o \
61 SecurityHandler.o \
ef416fc2 62 Stream.o \
63 UnicodeMap.o \
64 UnicodeTypeTable.o \
65 XpdfPluginAPI.o \
66 XRef.o
67
ef416fc2 68OBJS = pdftops.o $(LIBOBJS)
69
70TARGETS = libxpdf.a pdftops
71
72
73#
74# Make everything...
75#
76
77all: $(TARGETS)
78
79
80#
81# Clean all object files...
82#
83
84clean:
85 $(RM) $(OBJS)
86 $(RM) libxpdf.a
87 $(RM) pdftops
88 $(RM) pdftoraster
89
90
91#
92# Update dependencies (without system header dependencies...)
93#
94
95depend:
96 makedepend -Y -I.. -fDependencies $(OBJS:.o=.cxx) gmem.c parseargs.c >/dev/null 2>&1
97
98
99#
100# Install the filter...
101#
102
103install: all
bd7854cb 104 $(INSTALL_DIR) -m 755 $(SERVERBIN)/filter
ef416fc2 105 $(INSTALL_BIN) pdftops $(SERVERBIN)/filter
106
107
757d2cad 108#
109# Uninstall the filter...
110#
111
112uninstall:
113 $(RM) $(SERVERBIN)/filter/pdftops
114 -$(RMDIR) $(SERVERBIN)/filter
115 -$(RMDIR) $(SERVERBIN)
116
117
ef416fc2 118#
119# pdftops
120#
121
122pdftops: libxpdf.a pdftops.o ../cups/$(LIBCUPS)
123 echo Linking $@...
124 $(CXX) $(LDFLAGS) -o $@ pdftops.o libxpdf.a $(LIBS) $(CXXLIBS) -lm
125
126
127#
128# libxpdf.a
129#
130
131libxpdf.a: $(LIBOBJS)
132 echo Archiving $@...
133 $(RM) $@
134 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
135 $(RANLIB) $@
136
137
138#
139# Dependencies...
140#
141
142include Dependencies
143
144
145#
c07d5b2d 146# End of "$Id: Makefile 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 147#