Makefile.win revision 5f6e75bc39f8d95c7495ed17e585597cd6bd7fba
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis# Makefile for Windows NT and Windows 95/98/2000
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# Targets are:
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar# _apacher - build Apache in Release mode
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# _apached - build Apache in Debug mode
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# installr - build and install a Release build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# installd - build and install a Debug build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# clean - remove (most) generated files
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# _cleanr - remove (most) files generated by a Release build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# _cleand - remove (most) files generated by a Debug build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# installdll - build the InstallShield helper dll (Release only)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# The default installation directory is \Apache. This can be changed
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# with the INSTDIR macro, for example:
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# nmake /f Makefile.win INSTDIR="d:\Program Files\Apache" installr
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# Note: this does *NOT* change the compiled in default "server root"
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor!IF "$(INSTDIR)" == ""
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzorINSTDIR=\Apache
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor!MESSAGE Using default install directory \Apache
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor!IFNDEF MAKEOPT
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# Only default the behavior if MAKEOPT= is omitted
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor!IF "$(MAKE)" == "NMAKE"
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis# Microsoft NMake options
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzorMAKEOPT=-nologo
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor!ELSEIF "($MAKE)" == "make"
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis# Borland make options? Not really supported (yet)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentisMAKEOPT=-s -N
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentisdefault: _apacher
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release _build
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug _build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release _build _install
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug _build _install
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET=CLEAN _build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET=CLEAN _build
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET=CLEAN _build
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET=CLEAN _build
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET=CLEAN _installdll
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release _installdll
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor echo Building Win32 $(LONG) targets ($(SHORT) suffixes)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# aprlibdll creates the dynamic aprlib.dll from the static library project aprlib.dsp
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f aprlib.mak CFG="aprlib - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f aprlibdll.mak CFG="aprlibdll - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f regex.mak CFG="regex - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f ap.mak CFG="ap - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f htpasswd.mak CFG="htpasswd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f htdigest.mak CFG="htdigest - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f logresolve.mak CFG="logresolve - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f rotatelogs.mak CFG="rotatelogs - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f gen_uri_delims.mak CFG="gen_uri_delims - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f gen_test_char.mak CFG="gen_test_char - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -del Core$(SHORT)\buildmark.obj
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheCore.mak CFG="ApacheCore - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f Apache.mak CFG="Apache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis cd os\win32
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f ApacheModuleStatus.mak CFG="ApacheModuleStatus - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# $(MAKE) $(MAKEOPT) -f ApacheModuleInfo.mak CFG"=ApacheModuleInfo - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f ApacheModuleAuthAnon.mak CFG="ApacheModuleAuthAnon - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f ApacheModuleAuthDigest.mak CFG="ApacheModuleAuthDigest - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f ApacheModuleCERNMeta.mak CFG="ApacheModuleCERNMeta - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleExpires.mak CFG="ApacheModuleExpires - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleFileCache.mak CFG="ApacheModuleFileCache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleHeaders.mak CFG="ApacheModuleHeaders - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleSpeling.mak CFG="ApacheModuleSpeling - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleUserTrack.mak CFG="ApacheModuleUserTrack - Win32 $(LONG)" RECURSE=0 $(CTARGET)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis $(MAKE) $(MAKEOPT) -f ApacheModuleRewrite.mak CFG="ApacheModuleRewrite - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# cd modules\proxy
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# $(MAKE) $(MAKEOPT) -f ApacheModuleProxy.mak CFG="ApacheModuleProxy - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -mkdir $(INSTDIR)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -mkdir $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -mkdir $(INSTDIR)\logs
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -mkdir $(INSTDIR)\conf
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor -mkdir $(INSTDIR)\bin
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy Apache$(SHORT)\Apache.exe $(INSTDIR)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis copy Core$(SHORT)\ApacheCore.dll $(INSTDIR)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis copy lib\apr\$(LONG)\aprlib.dll $(INSTDIR)
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis copy os\win32\ApacheModuleStatus$(SHORT)\ApacheModuleStatus.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# copy os\win32\ApacheModuleInfo$(SHORT)\ApacheModuleInfo.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleAuthAnon$(SHORT)\ApacheModuleAuthAnon.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleAuthDigest$(SHORT)\ApacheModuleAuthDigest.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleCERNMeta$(SHORT)\ApacheModuleCERNMeta.dll $(INSTDIR)\modules
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis copy os\win32\ApacheModuleExpires$(SHORT)\ApacheModuleExpires.dll $(INSTDIR)\modules
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis copy os\win32\ApacheModuleFileCache$(SHORT)\ApacheModuleFileCache.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleHeaders$(SHORT)\ApacheModuleHeaders.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleRewrite$(SHORT)\ApacheModuleRewrite.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleSpeling$(SHORT)\ApacheModuleSpeling.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy os\win32\ApacheModuleUserTrack$(SHORT)\ApacheModuleUserTrack.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor# copy modules\proxy\$(LONG)\ApacheModuleProxy.dll $(INSTDIR)\modules
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy support\$(LONG)\ab.exe $(INSTDIR)\bin
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy support\$(LONG)\htpasswd.exe $(INSTDIR)\bin
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy support\$(LONG)\htdigest.exe $(INSTDIR)\bin
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy support\$(LONG)\logresolve.exe $(INSTDIR)\bin
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor copy support\$(LONG)\rotatelogs.exe $(INSTDIR)\bin
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis_installdll:
fdcdd4e9cdf3f0213c5f63dac906531a1e5707a7lgentis cd os\win32\installer\installdll
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor $(MAKE) $(MAKEOPT) -f install.mak CFG="install - Win32 $(LONG)" RECURSE=0 $(CTARGET)
1ffad0b9e645e3d784e55b63f972293da99d81a7gryzor cd ..\..\..