File: Makefile

package info (click to toggle)
cupsys 1.2.7-4%2Betch9
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,436 kB
  • ctags: 10,404
  • sloc: ansic: 97,130; cpp: 49,167; java: 6,199; sh: 4,723; makefile: 1,918; lisp: 232; perl: 145; python: 119; php: 28
file content (147 lines) | stat: -rw-r--r-- 2,107 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#
# "$Id: Makefile 5491 2006-05-04 20:53:35Z mike $"
#
#   pdftops filter Makefile for the Common UNIX Printing System (CUPS).
#
#   CUPS filter changes Copyright 1997-2006 by Easy Software Products.
#   Xpdf code Copyright 1996-1999 by Derek B. Noonburg
#


include ../Makedefs

#
# Object files...
#

LIBOBJS	=	\
		Annot.o \
		Array.o \
		BuiltinFont.o \
		BuiltinFontTables.o \
		Catalog.o \
		CharCodeToUnicode.o \
		CMap.o \
		Decrypt.o \
		Dict.o \
		Error.o \
		FoFiBase.o \
		FoFiEncodings.o \
		FoFiTrueType.o \
		FoFiType1C.o \
		FoFiType1.o \
		FontEncodingTables.o \
		Function.o \
		gfile.o \
		Gfx.o \
		GfxFont.o \
		GfxState.o \
		GHash.o \
		GList.o \
		GlobalParams.o \
		gmem.o \
		gmempp.o \
		GString.o \
		JArithmeticDecoder.o \
		JBIG2Stream.o \
		JPXStream.o \
		Lexer.o \
		Link.o \
		NameToCharCode.o \
		Object.o \
		Outline.o \
		OutputDev.o \
		Page.o \
		parseargs.o \
		Parser.o \
		PDFDoc.o \
		PDFDocEncoding.o \
		PSOutputDev.o \
		PSTokenizer.o \
		SecurityHandler.o \
		Stream.o \
		UnicodeMap.o \
		UnicodeTypeTable.o \
		XpdfPluginAPI.o \
		XRef.o

OBJS	=	pdftops.o $(LIBOBJS)

TARGETS	=	libxpdf.a pdftops


#
# Make everything...
#

all:	$(TARGETS)


#
# Clean all object files...
#

clean:
	$(RM) $(OBJS)
	$(RM) libxpdf.a
	$(RM) pdftops
	$(RM) pdftoraster


#
# Update dependencies (without system header dependencies...)
#

depend:
	makedepend -Y -I.. -fDependencies $(OBJS:.o=.cxx) gmem.c parseargs.c >/dev/null 2>&1


#
# Install the filter...
#

install:	all
	$(INSTALL_DIR) -m 755 $(SERVERBIN)/filter
	$(INSTALL_BIN) pdftops $(SERVERBIN)/filter


#
# Uninstall the filter...
#

uninstall:
	$(RM) $(SERVERBIN)/filter/pdftops
	-$(RMDIR) $(SERVERBIN)/filter
	-$(RMDIR) $(SERVERBIN)


#
# pdftops
#

pdftops:	libxpdf.a pdftops.o ../cups/$(LIBCUPS)
	echo Linking $@...
	$(CXX) $(LDFLAGS) -o $@ pdftops.o libxpdf.a $(LIBS) $(CXXLIBS) -lm


#
# libxpdf.a
#

libxpdf.a:	$(LIBOBJS)
	echo Archiving $@...
	$(RM) $@
	$(AR) $(ARFLAGS) $@ $(LIBOBJS)
	$(RANLIB) $@


#
# Dependencies...
#

include Dependencies


#
# End of "$Id: Makefile 5491 2006-05-04 20:53:35Z mike $".
#