# Microsoft Developer Studio Generated NMAKE File, Format Version 4.00
# Note: original Makefile has been HAND EDITED to better suit CSacek

################################################################################
# Begin Project

CPP=cl.exe

OUTDIR=.
INTDIR=.

# where all the CSacek copies should go -- note it has to be ONE directory
# DEEPER than directory of compilation 
COMPILEDIR=compile

# canonical name of mutation to be compiled -- one of CGI, FASTCGI or APACHE
MUTACE_CANON= CGI

# sources for Apache module
APACHE_SRCS = apache.c bar.c cmds.c compat.c compress.c  cstools.c debug.c \
 guess.c http.c info.c loop.c servlist.c share.c string.c zlib.c

ALL : "$(OUTDIR)\csacek.cgi" copy

APACHE : mod_csacek.c

mod_csacek.c: $(APACHE_SRCS)
	-@if exist mod_csacek.c del mod_csacek.c
	-scripts\cat.bat $(APACHE_SRCS) >mod_csacek.c

CLEAN : 
	-@erase ".\csacek.cgi"
	-@erase ".\cmds.obj"
	-@erase ".\loop.obj"
	-@erase ".\guess.obj"
	-@erase ".\http.obj"
	-@erase ".\bar.obj"
	-@erase ".\cgi.obj"
	-@erase ".\zlib.obj"
	-@erase ".\cstools.obj"
	-@erase ".\info.obj"
	-@erase ".\compress.obj"
	-@erase ".\share.obj"
	-@erase ".\debug.obj"
	-@erase ".\string.obj"
	-@erase ".\servlist.obj"
	-@erase ".\compat.obj"
	-@erase ".\alloc.obj"
	@deltree /y $(COMPILEDIR)
	@erase _compiledir

# note work around for w95 shell - "if not exists" doesn't work
# for directories on loose95
compiledir:
	-@if not exist _compiledir md $(COMPILEDIR)
	@echo foo > _compiledir
		
copy: compiledir scripts\copy_csacek.bat csacek.cgi
	cd $(COMPILEDIR)
	..\scripts\copy_csacek.bat ..\csacek.cgi

CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "CSACEK" /D "CSA_MUTACE_$(MUTACE_CANON)" \
 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /c 
BSC32=bscmake.exe
BSC32_FLAGS=/nologo /o"$(OUTDIR)/csacek.bsc" 
BSC32_SBRS=
LINK32=link.exe
LINK32_FLAGS=wsock32.lib \
 /nologo /subsystem:console /incremental:no\
 /pdb:"$(OUTDIR)/csacek.pdb" /out:"$(OUTDIR)/csacek.cgi"
LINK32_OBJS= \
	"$(INTDIR)/alloc.obj" \
	"$(INTDIR)/bar.obj" \
	"$(INTDIR)/cgi.obj" \
	"$(INTDIR)/cmds.obj" \
	"$(INTDIR)/compat.obj" \
	"$(INTDIR)/compress.obj" \
	"$(INTDIR)/cstools.obj" \
	"$(INTDIR)/debug.obj" \
	"$(INTDIR)/guess.obj" \
	"$(INTDIR)/http.obj" \
	"$(INTDIR)/info.obj" \
	"$(INTDIR)/loop.obj" \
	"$(INTDIR)/servlist.obj" \
	"$(INTDIR)/share.obj" \
	"$(INTDIR)/string.obj" \
	"$(INTDIR)/zlib.obj"

"$(OUTDIR)\csacek.cgi" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
    $(LINK32) @<<
  $(LINK32_FLAGS) $(LINK32_OBJS)
<<

.c.obj:
   $(CPP) $(CPP_PROJ) $<  

.cpp.obj:
   $(CPP) $(CPP_PROJ) $<  

.cxx.obj:
   $(CPP) $(CPP_PROJ) $<  

.c.sbr:
   $(CPP) $(CPP_PROJ) $<  

.cpp.sbr:
   $(CPP) $(CPP_PROJ) $<  

.cxx.sbr:
   $(CPP) $(CPP_PROJ) $<  

################################################################################
# Begin Source File

SOURCE=.\csacek.c
# PROP Exclude_From_Build 1
# End Source File
################################################################################
# Begin Source File

SOURCE=.\zlib.c
DEP_CPP_ZLIB_=\
	".\csacek.h"\
	".\zlib\zlib.h"\
	".\zlib\deflate.h"\
	".\zlib\zutil.h"\
	".\zlib\trees.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	".\zlib\zconf.h"\
	
NODEP_CPP_ZLIB_=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\zlib.obj" : $(SOURCE) $(DEP_CPP_ZLIB_) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\string.c
DEP_CPP_STRIN=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_STRIN=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\string.obj" : $(SOURCE) $(DEP_CPP_STRIN) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\share.c
DEP_CPP_SHARE=\
	".\csacek.h"\
	".\csa_version.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_SHARE=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\share.obj" : $(SOURCE) $(DEP_CPP_SHARE) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\loop.c
DEP_CPP_LOOP_=\
	".\csacek.h"\
	".\csa_version.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_LOOP_=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\loop.obj" : $(SOURCE) $(DEP_CPP_LOOP_) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\info.c
DEP_CPP_INFO_=\
	".\csacek.h"\
	".\csa_version.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_INFO_=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\info.obj" : $(SOURCE) $(DEP_CPP_INFO_) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\http.c
DEP_CPP_HTTP_=\
	".\csacek.h"\
	".\csa_version.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_HTTP_=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\http.obj" : $(SOURCE) $(DEP_CPP_HTTP_) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\debug.c
DEP_CPP_DEBUG=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_DEBUG=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\debug.obj" : $(SOURCE) $(DEP_CPP_DEBUG) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\cstools.c
DEP_CPP_CSTOO=\
	".\cstools.h"\
	

"$(INTDIR)\cstools.obj" : $(SOURCE) $(DEP_CPP_CSTOO) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\compress.c
DEP_CPP_COMPR=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_COMPR=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\compress.obj" : $(SOURCE) $(DEP_CPP_COMPR) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\compat.c
DEP_CPP_COMPA=\
	".\csacek.h"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_COMPA=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\compat.obj" : $(SOURCE) $(DEP_CPP_COMPA) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\cmds.c
DEP_CPP_CMDS_=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_CMDS_=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\cmds.obj" : $(SOURCE) $(DEP_CPP_CMDS_) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\cgi.c
DEP_CPP_CGI_C=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_CGI_C=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\cgi.obj" : $(SOURCE) $(DEP_CPP_CGI_C) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\bar.c
DEP_CPP_BAR_C=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_BAR_C=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\bar.obj" : $(SOURCE) $(DEP_CPP_BAR_C) "$(INTDIR)"


# End Source File
################################################################################
# Begin Source File

SOURCE=.\alloc.c
DEP_CPP_ALLOC=\
	".\csacek.h"\
	".\csa_config.h"\
	{$(INCLUDE)}"\SYS\TYPES.H"\
	{$(INCLUDE)}"\SYS\STAT.H"\
	".\csa_defaults.h"\
	".\csa_compat.h"\
	".\csa_cmds.h"\
	".\cstools.h"\
	".\NT\NTcsa_config.h"\
	
NODEP_CPP_ALLOC=\
	".\fastcgi\fcgi_stdio.h"\
	

"$(INTDIR)\alloc.obj" : $(SOURCE) $(DEP_CPP_ALLOC) "$(INTDIR)"
   $(CPP) $(CPP_PROJ) $(SOURCE)


# End Source File
# End Target
# End Project
################################################################################
