##
##  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=../..
MWOS=/mwos
EXTRA_CFLAGS=`$(SRCDIR)/apaci`
EXTRA_LDFLAGS=
EXTRA_LIBS=
EXTRA_INCLUDES=
EXTRA_DEPS=
OSDIR=$(SRCDIR)/os/os9
INCDIR=$(SRCDIR)/include
INCLUDES0=-v$(OSDIR) -v$(INCDIR)
SHELL=/bin/sh
OS=OS9
CC=xcc
TARGET=httpd
OPTIM=
CFLAGS1= -DOS9 -v$(SRCDIR)/lib/expat-lite
INCLUDES1= -v$(MWOS)/src/defs/spf/bsd
LIBS_SHLIB=
LDFLAGS1=
REGLIB=regex/libregex.l
EXPATLIB=lib/expat-lite/libexpat.l
RANLIB=merge
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.r xmlrole.r xmlparse.r hashtable.r

all lib: libexpat.l

libexpat.l: $(OBJS)
	rm -f libexpat.l
	$(RANLIB) -o=libexpat.l $(OBJS)

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

distclean: clean
	-rm -f Makefile

.SUFFIXES: .r

.c.r:
	$(CC) -eas $(INCLUDES) $(CFLAGS) $<
