# Generated automatically from Makefile.in by configure.
## -*- text -*- ####################################################
#								   #
# Makefile for the GNU Glob Library.				   #
#								   #
####################################################################
#
# Copyright (C) 1996 Free Software Foundation, Inc.     

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.

srcdir = .
VPATH = .:.
topdir = .
BUILD_DIR = .

INSTALL = /usr/bin/ginstall -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

CC = vpcc
RANLIB = ranlib
AR = vpar
ARFLAGS = cr
RM = rm
CP = cp
MV = mv

SHELL = /bin/sh

CFLAGS=-g -Wall -Wmissing-prototypes -O2
LOCAL_CFLAGS=
CPPFLAGS={-D_FILE_OFFSET_BITS=64} 
LDFLAGS=
#LDFLAGS =  -rdynamic

DEFS={-DHAVE_CONFIG_H}
LOCAL_DEFS=
#LOCAL_DEFS=-DSHELL
INCLUDES=-I.

CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS)

# Here is a rule for making .o files from .c files that doesn't force
# the type of the machine (like -sun3) into the flags.
.c.o:
	$(CC) -c $(CCFLAGS) $<

# The name of the library target.
LIBRARY_NAME=libglib.a

# The C code source files for this library.
CSOURCES = $(srcdir)/garray.c $(srcdir)/gcache.c $(srcdir)/gcompletion.c \
$(srcdir)/gdataset.c $(srcdir)/gdate.c $(srcdir)/gerror.c $(srcdir)/ghash.c \
$(srcdir)/ghook.c $(srcdir)/giochannel.c $(srcdir)/giounix.c $(srcdir)/glist.c \
$(srcdir)/gmain.c $(srcdir)/gmem.c $(srcdir)/gmessages.c $(srcdir)/gmutex.c \
$(srcdir)/gnode.c $(srcdir)/gprimes.c $(srcdir)/grel.c $(srcdir)/gscanner.c \
$(srcdir)/gslist.c $(srcdir)/gstrfuncs.c $(srcdir)/gstring.c $(srcdir)/gtimer.c \
$(srcdir)/gtree.c $(srcdir)/gutils.c

# The header files for this library.
HSOURCES = $(srcdir)/acconfig.h $(srcdir)/config.h $(srcdir)/glib.h \
$(srcdir)/glibconfig-sysdefs.h $(srcdir)/glibconfig.h

TESTSOURCES = $(srcdir)/testgdate.c $(srcdir)/testgdateparser.c $(srcdir)testglib.c
TESTOBJS = testgdate.o testgdateparser.o testglib.o

OBJECTS = garray.o gcache.o gcompletion.o gdataset.o gdate.o gerror.o ghash.o ghook.o \
giochannel.o giounix.o glist.o gmain.o gmem.o gmessages.o gmutex.o gnode.o gprimes.o \
grel.o gscanner.o gslist.o gstrfuncs.o gstring.o gtimer.o gtree.o gutils.o

# The texinfo files which document this library.
DOCSOURCE = docs/glib.texi
DOCOBJECT = docs/glib.dvi
DOCSUPPORT = doc/Makefile
DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)

SUPPORT = Makefile ChangeLog $(DOCSUPPORT)

SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE)

THINGS_TO_TAR = $(SOURCES) $(SUPPORT)

######################################################################

all: $(LIBRARY_NAME)

$(LIBRARY_NAME): $(OBJECTS)
	$(RM) -f $@
	$(AR) $(ARFLAGS) $@ $(OBJECTS)

testgdate: testgdate.00
	$(CC) $(CFLAGS) -L. -lglib -o testgdate testgdate.c

testgdateparser: testgdateparser.00
	$(CC) $(CFLAGS) -L. -lglib -o testgdateparser testgdateparser.c

testglib: testglib.00
	$(CC) $(CFLAGS) -L. -lglib -o testglib testglib.c

what-tar:
	for file $(THINGS_TO_TAR) {
	  echo {$(selfdir)$file}
	}

documentation: force
	and {cd doc} {$(MAKE) $(MFLAGS)}

force:

# The rule for 'includes' is written funny so that the if statement
# always returns TRUE unless there really was an error installing the
# include files.
install:

clean:
	-rm -f $(OBJECTS) $(LIBRARY_NAME)
	and {cd doc} {$(MAKE) $(MFLAGS) $@}

realclean distclean maintainer-clean: clean
	and {cd doc} {$(MAKE) $(MFLAGS) $@}
	$(RM) -f Makefile

mostlyclean: clean
	and {cd doc} {$(MAKE) $(MFLAGS) $@}

######################################################################
#								     #
#  Dependencies for the object files which make up this library.     #
#								     #
######################################################################

# Rules for deficient makes, like SunOS and Solaris

garray.o: garray.c config.h
gcache.o: gcache.c config.h
gcompletion.o: gcompletion.c config.h
gdataset.o: gdataset.c config.h
gdate.o: gdate.c config.h
gerror.o: gerror.c config.h
ghash.o: ghash.c config.h
ghook.o: ghook.c config.h
giochannel.o: giochannel.c config.h
giounix.o: giounix.c config.h
glist.o: glist.c config.h
gmain.o: gmain.c config.h
gmem.o: gmem.c config.h
gmessages.o: gmessages.c config.h
gmutex.o: gmutex.c config.h
gnode.o: gnode.c config.h
gprimes.o: gprimes.c config.h
grel.o: grel.c config.h
gscanner.o: gscanner.c config.h
gslist.o: gslist.c config.h
gstrfuncs.o: gstrfuncs.c config.h
gstring.o: gstring.c config.h
gtimer.o: gtimer.c config.h
gtree.o: gtree.c config.h
gutils.o: gutils.c config.h

testgdate.o: testgdate.c config.h
testgdateparser.o: testgdateparser.c config.h
testglib.o: testglib.c config.h
