#======================================================================== # # 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)/gmempp.cc \ $(srcdir)/gfile.cc C_SRC = \ $(srcdir)/gmem.c \ $(srcdir)/parseargs.c #------------------------------------------------------------------------ all: $(LIBPREFIX)Goo.a #------------------------------------------------------------------------ GOO_CXX_OBJS = GHash.o GList.o GString.o gmempp.o gfile.o GOO_C_OBJS = gmem.o 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