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

!include \rtrware\include\gblmkdef


OBJS =	$(OLS)fileio.ol \
	$(OLS)apputil.ol \
	$(OLS)checksum.ol \
	$(OLS)compsum.ol \
	$(OLS)flowcont.ol \
	$(OLS)readent.ol \
	$(OLS)sockout.ol \
	$(OLS)streamw.ol \
	$(OLS)strout.ol \
	$(OLS)testret.ol \
	$(OLS)upload.ol \
	$(OLS)contio.ol
LIBFILE = GenApps.lib


$(LIBFILE): delerr $(OBJS)

delerr :
	del err

$(OLS)fileio.ol : $(@B).c 
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)apputil.ol : $(@B).c defs.h \
		   apputil.h \	
		   ..\..\prochttp\src\httpd.h \
		   ..\..\prochttp\src\reqlist.h \
		   ..\..\prochttp\src\util.h \
		   ..\..\prochttp\src\datatran.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)checksum.ol : $(@B).c defs.h \
		    streamw.h \
		    upload.h \
		    compsum.h \
		    ..\..\prochttp\src\httpd.h \
		    ..\..\prochttp\src\httperr.h \
		    ..\..\prochttp\src\util.h \
		    ..\..\htmlform\src\streamfl.hhtmlform\src\streamfl.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

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

$(OLS)flowcont.ol : $(@B).c defs.h \
		    ..\..\prochttp\src\httpd.h \
		    ..\..\prochttp\src\webdisp.h \
		    ..\..\prochttp\src\util.h \
		    ..\..\prochttp\src\dataran.h \
		    flowcont.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)readent.ol : $(@B).c defs.h \
		   ..\..\prochttp\src\httpd.h \
		   ..\..\prochttp\src\reqlist.h \
		   ..\..\prochttp\src\util.h \
		   ..\..\prochttp\src\datatran.h \
		   ..\..\sysdep\src\tcprw.h 
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)sockout.ol : $(@B).c defs.h \
	 ..\..\prochttp\src\httpd.h \
	  ..\..\prochttp\src\reqlist.h \
	  ..\..\prochttp\src\util.h \
	  ..\..\prochttp\src\datatran.h \
	  ..\..\sysdep\src\tcprw.h 
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)streamw.ol : $(@B).c defs.h  upload.h \
		   ..\..\prochttp\src\httpd.h \
		   ..\..\prochttp\src\httperr.h \
		   ..\..\htmlform\src\streamfl.h \
		   ..\..\prochttp\src\util.h \
		   ..\..\genapps\src\streamw.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)strout.ol : $(@B).c defs.h flowcont.h apputil.h strout.h \
		   ..\..\prochttp\src\httpd.h \
		   ..\..\prochttp\src\reqlist.h \
		   ..\..\prochttp\src\util.h \
		   ..\..\prochttp\src\datatran.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)testret.ol : $(@B).c defs.h readent.h flowcont.h streamw.h apputil.h \
		   strout.h compsum.h\
		   ..\..\prochttp\src\httpd.h \
		   ..\..\prochttp\src\reqlist.h \
		   ..\..\prochttp\src\util.h \
		   ..\..\prochttp\src\datatran.h \
		   ..\..\sysdep\src\tcprw.h \
		   ..\..\sysdep\src\timezone.h \
		   ..\..\htmlform\src\formpars.h \
		   ..\..\htmlform\src\multiprt.h \
		   ..\..\htmlform\src\initoper.h \
		   ..\..\prochttp\src\formphas.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)upload.ol : $(@B).c upload.h \
		  ..\..\htmlform\src\streamfl.h
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)

$(OLS)contio.ol : $(@B).c
	$(CC) $(@B).c $(CFLAGS) -pw
	$(LIB) $(OLS)$(@B).ol $(LIBFLG) $(LIBFILE)
