blob: 4cebea29e0b881629712703907c31783ae2b70dd (
plain)
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
|
#========================================================================
#
# Goo library Makefile
#
# Copyright 1996 Derek B. Noonburg
#
# Modified for pdftex by Martin Schröder 2005
# $Id$
#
#========================================================================
srcdir = @srcdir@
VPATH = @srcdir@
srcdirparent = $(srcdir)/..
kpathsea_include_dir = -I../../../texk -I$(srcdir)/../../../texk
ALLCFLAGS = $(CFLAGS) @DEFS@ -I.. -I$(srcdir)/.. -I. -I$(srcdir) $(kpathsea_include_dir)
ALLCXXFLAGS = $(CXXFLAGS) @DEFS@ \
-I.. -I$(srcdir)/.. -I. -I$(srcdir) $(kpathsea_include_dir) \
-DPDF_PARSER_ONLY
CXXFLAGS = @CXXFLAGS@
CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@
kpse_include ../../texk/make/library.mk
#------------------------------------------------------------------------
.SUFFIXES:
.SUFFIXES: .cc .c .o
.cc.o:
$(CXX) $(ALLCXXFLAGS) -c $<
.c.o:
$(CC) $(ALLCFLAGS) -c $<
#------------------------------------------------------------------------
CXX_SRC = \
$(srcdir)/FixedPoint.cc \
$(srcdir)/GHash.cc \
$(srcdir)/GList.cc \
$(srcdir)/GString.cc \
$(srcdir)/gmem.cc \
$(srcdir)/gmempp.cc \
$(srcdir)/gfile.cc
C_SRC = \
$(srcdir)/parseargs.c
#------------------------------------------------------------------------
GOO_CXX_OBJS = FixedPoint.o GHash.o GList.o GString.o gmem.o gmempp.o gfile.o
GOO_C_OBJS = parseargs.o
GOO_OBJS = $(GOO_CXX_OBJS) $(GOO_C_OBJS)
libGoo.a: $(GOO_OBJS)
rm -f $@
$(AR) $(ARFLAGS) $@ $(GOO_OBJS)
$(RANLIB) $@
#------------------------------------------------------------------------
mostlyclean clean:
rm -f $(GOO_OBJS) libGoo.a
rm -f Makefile.bak
distclean maintainer-clean extraclean: clean
rm -f Makefile
#------------------------------------------------------------------------
depend:
srcdirparent=`(cd $(srcdirparent) >/dev/null; pwd)`; \
($(CXX) $(ALLCXXFLAGS) -MM $(srcdir)/*.cc; \
$(CC) $(ALLCFLAGS) -MM $(srcdir)/*.c) \
| sed 's|$(srcdir)|$$(srcdir)|' \
| sed 's|'$$srcdirparent/'|$$(srcdirparent)/|g' > $(srcdir)/depend.mk
kpse_include goo/depend.mk
|