You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.6 KiB
71 lines
1.6 KiB
#========================================================================
|
|
#
|
|
# 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
|
|
|