# WebServe makefile For ProcHttp Directoary. 6, March, 1997. Will make the ProcHttp code.
#

!include \rtrware\include\gblmkdef

!if $(WEB_SERVER_INCLUDED)
CFLAGS = $(CFLAGS) -P WEB=1
!endif


OBJS =	$(OLS)authoriz.ol \
	$(OLS)conttype.ol \
	$(OLS)formphas.ol \
	$(OLS)httpd.ol \
	$(OLS)lstnsock.ol \
	$(OLS)procreq.ol \
	$(OLS)reqlist.ol \
	$(OLS)resphead.ol \
	$(OLS)uriparse.ol \
	$(OLS)util.ol \
	$(OLS)webdisp.ol

LIBFILE = ProcHttp.lib


$(LIBFILE): delerr $(OBJS)

delerr :
	del err

$(OLS)authoriz.ol : $(@B).c  httpd.h util.h authoriz.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)conttype.ol : $(@B).c httpd.h \
		    reqlist.h \
		    conttype.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)formphas.ol : $(@B).c  httpd.h reqlist.h util.h datatran.h  formphas.h uridata.h \
		   $(HTMLFORM)formpars.h \
		   $(HTMLFORM)initoper.h \
		   $(GENAPPS)apputil.h \
		   $(SYSDEP)tcprw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)httpd.ol : $(@B).c  \
		    httpd.h lstnsock.h reqlist.h webdisp.h procreq.h conttype.h vnvhttpd.h \
		    $(HTMLFORM)formpars.h \
		    $(SYSDEP)oninit.h \
		    $(SYSDEP)timezone.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)lstnsock.ol : $(@B).c  \
		   httpd.h \
		   lstnsock.h \
		   $(SYSDEP)tcprw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)procreq.ol : $(@B).c  \
	  httpd.h \
	  lstnsock.h \
	  procreq.h \
	  util.h \
	  resphead.h \
	  formphas.h \
	  $(SYSDEP)tcprw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)reqlist.ol : $(@B).c   reqlist.h \
		             httpd.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)resphead.ol : $(@B).c \
		   httpd.h \
		   reqlist.h \
		   util.h \
		   datatran.h \
		   $(SYSDEP)tcprw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)uriparse.ol : $(@B).c  \
		   httpd.h \
		   reqlist.h \
		   util.h \
		   datatran.h \
		   uridata.h \
		   $(SYSDEP)tcprw.h \
		   $(HTMLFORM)formpars.h \
		   formphas.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)util.ol : $(@B).c httpd.h util.h \
		  $(SYSDEP)timezone.h \
		  $(SYSDEP)syslib.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)webdisp.ol : $(@B).c httpd.h datatran.h formphas.h webdisp.h \
		  $(SYSDEP)tcprw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)
