##
##  Apache Makefile, automatically generated by Configure script.
##  Hand-edited changes will be lost if the Configure script is re-run.
##  Sources: - ../../Makefile.config (via Configuration.apaci)
##           - ./Makefile.tmpl
##

##
##  Inherited Makefile options from Configure script
##  (Begin of automatically generated section)
##
SRCDIR=../..
EXTRA_CFLAGS=`$(SRCDIR)/apaci`
EXTRA_LDFLAGS=
EXTRA_LIBS=
EXTRA_INCLUDES=
EXTRA_DEPS=
OSDIR=$(SRCDIR)/os/unix
INCDIR=$(SRCDIR)/include
INCLUDES0=-I$(OSDIR) -I$(INCDIR)
SHELL=/bin/sh
OS=Darwin
CC=gcc
CPP=gcc -E -traditional-cpp
TARGET=httpd
OPTIM=
CFLAGS_SHLIB= -DSHARED_MODULE
LD_SHLIB=cc
EXTRA_LDFLAGS_SHLIB=
LDFLAGS_SHLIB=$(EXTRA_LDFLAGS) -bundle -undefined suppress -flat_namespace 
LDFLAGS_SHLIB_EXPORT=
LDFLAGS_MOD_SHLIB=$(EXTRA_LDFLAGS) -bundle -undefined suppress -flat_namespace
LD_SHCORE_DEF=
LD_SHCORE_LIBS=
SHARED_CORE_EP=lib$(TARGET).ep
SHCORE_IMPLIB=
CFLAGS1= -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I$(SRCDIR)/lib/expat-lite
INCLUDES1=
LIBS_SHLIB=
LDFLAGS1=
MFLAGS_STATIC=--no-print-directory
REGLIB=regex/libregex.a
EXPATLIB=lib/expat-lite/libexpat.a
RANLIB=ranlib
LIBS1= 
##
##  (End of automatically generated section)
##

#
# default definition of these two. dunno how to get it prepended when the
# Makefile is built, so we do it manually
#
CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) -DAPACHE
INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)

OBJS=xmltok.o xmlrole.o xmlparse.o hashtable.o

all lib: libexpat.a

libexpat.a: $(OBJS)
	rm -f libexpat.a
	ar cr libexpat.a $(OBJS)
	$(RANLIB) libexpat.a

clean:
	rm -f $(OBJS) libexpat.a

distclean: clean
	-rm -f Makefile

.SUFFIXES: .o

.c.o:
	$(CC) -c $(INCLUDES) $(CFLAGS) $<
