blob: 0baddbb0489ab0c53492a25cc376caca0bd7e684 (
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
|
#========================================================================
#
# Goo library Makefile
#
# Copyright 1996-2003 Glyph & Cog, LLC
#
#========================================================================
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
CFLAGS = @CFLAGS@ @DEFS@ -I.. -I$(srcdir)
CXXFLAGS = @CXXFLAGS@ @DEFS@ -I.. -I$(srcdir)
CC = @CC@
CXX = @CXX@
AR = @AR@
RANLIB = @RANLIB@
LIBPREFIX = @LIBPREFIX@
#------------------------------------------------------------------------
.SUFFIXES: .cc
.cc.o:
$(CXX) $(CXXFLAGS) -c $<
#------------------------------------------------------------------------
CXX_SRC = \
$(srcdir)/GHash.cc \
$(srcdir)/GList.cc \
$(srcdir)/GString.cc \
$(srcdir)/gmem.cc \
$(srcdir)/gmempp.cc \
$(srcdir)/gfile.cc \
$(srcdir)/FixedPoint.cc
C_SRC = \
$(srcdir)/parseargs.c
#------------------------------------------------------------------------
all: $(LIBPREFIX)Goo.a
#------------------------------------------------------------------------
GOO_CXX_OBJS = GHash.o GList.o GString.o gmem.o gmempp.o gfile.o FixedPoint.o
GOO_C_OBJS = parseargs.o
GOO_OBJS = $(GOO_CXX_OBJS) $(GOO_C_OBJS)
$(LIBPREFIX)Goo.a: $(GOO_OBJS)
rm -f $(LIBPREFIX)Goo.a
$(AR) $(LIBPREFIX)Goo.a $(GOO_OBJS)
$(RANLIB) $(LIBPREFIX)Goo.a
#------------------------------------------------------------------------
clean:
rm -f $(GOO_OBJS) $(LIBPREFIX)Goo.a
#------------------------------------------------------------------------
depend:
$(CXX) $(CXXFLAGS) -MM $(CXX_SRC) >Makefile.dep
$(CC) $(CFLAGS) -MM $(C_SRC) >>Makefile.dep
include Makefile.dep
|