/* $Id: Imakefile,v 1.8 1997/11/04 21:26:43 larner Exp $ */


MkdirTarget($(DESTDIR)/examples)
MkdirTarget($(DESTDIR)/examples/httest)

InstallRO(httest.isl, $(DESTDIR)/examples/httest)
InstallRO(htclient.c, $(DESTDIR)/examples/httest)
InstallRO(htserver.c, $(DESTDIR)/examples/httest)
InstallRO(webserver.c, $(DESTDIR)/examples/httest)
InstallRO(ilugetbot.c, $(DESTDIR)/examples/httest)
InstallRO(README, $(DESTDIR)/examples/httest)
InstallFileToFile(runImakefile, $(INSTINCFLAGS), $(DESTDIR)/examples/httest/Imakefile)


######################################################################
######################################################################
######################################################################
##
##  The following rules are included to test the build with...
##

#ifdef ADD_SECURE_TRANSPORT
#ifdef INCLUDE_SSL_SECMECH
SSL=../../GSS/ssl/libgss-ssl.a
SSLINCL=-I../../GSS/ssl $(RSAINCL) $(DESINCL)
#endif
SECURITYLIBS = $(SSL) ../../GSS/kernel/libgss.a $(RSALIBS) $(DESLIBS)
SECURITYINCLUDES = -I../../GSS/kernel $(SSLINCL)
#endif

ILUCINCLUDES = -I../../runtime/c -I../../runtime/kernel $(SECURITYINCLUDES)
TESTCLIBS = ../../runtime/c/libilu-c.a ../../runtime/kernel/libilu.a $(SECURITYLIBS)
C_STUBBER = ../../stubbers/c/c-stubber

NormalObjectRule()

iluhttp.h iluhttp-true.c iluhttp-surrogate.c iluhttp-common.c :  ../../stubbers/parser/iluhttp.isl ../../stubbers/c/c-stubber ../../stubbers/parser/ilu.isl
	../../stubbers/c/c-stubber -I ../../stubbers/parser  ../../stubbers/parser/iluhttp.isl

httest.h httest-true.c httest-surrogate.c httest-common.c : iluhttp.h httest.isl ../../stubbers/c/c-stubber ../../stubbers/parser/ilu.isl
	../../stubbers/c/c-stubber -I ../../stubbers/parser httest.isl


CleanTarget(httest.h httest-true.c httest-surrogate.c httest-common.c)
CleanTarget(iluhttp.h iluhttp-true.c iluhttp-surrogate.c iluhttp-common.c)

htclient.o : htclient.c iluhttp.h httest.h ../../runtime/kernel/iluxport.h ../../runtime/c/iluchdrs.h
htserver.o : htserver.c iluhttp.h httest.h ../../runtime/kernel/iluxport.h ../../runtime/c/iluchdrs.h
webserver.o : webserver.c iluhttp.h ../../runtime/kernel/iluxport.h ../../runtime/c/iluchdrs.h
ilugetbot.o : ilugetbot.c iluhttp.h ../../runtime/kernel/iluxport.h ../../runtime/c/iluchdrs.h

TestProgramTarget(htclient, htclient.o iluhttp-surrogate.o iluhttp-common.o httest-surrogate.o httest-common.o, $(TESTCLIBS),)
TestProgramTarget(htserver, htserver.o iluhttp-true.o iluhttp-common.o httest-true.o httest-common.o, $(TESTCLIBS),)
TestProgramTarget(webserver, webserver.o iluhttp-true.o iluhttp-common.o, $(TESTCLIBS),)
TestProgramTarget(ilugetbot, ilugetbot.o iluhttp-surrogate.o iluhttp-common.o, $(TESTCLIBS),)
