Makefile.win 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  1. # Makefile for Windows NT and Windows 95/98/2000
  2. # Targets are:
  3. # _apacher - build Apache in Release mode
  4. # _apached - build Apache in Debug mode
  5. # installr - build and install a Release build
  6. # installd - build and install a Debug build
  7. # clean - remove (most) generated files
  8. # _cleanr - remove (most) files generated by a Release build
  9. # _cleand - remove (most) files generated by a Debug build
  10. # _browse - build the browse info file
  11. #
  12. # The following install defaults may be customized;
  13. #
  14. # Option Default
  15. # INSTDIR /Apache22
  16. # PORT 80
  17. # SSLPORT 443
  18. # DOMAINNAME example.com
  19. # SERVERNAME www.example.com
  20. # SERVERNAME admin@example.com
  21. #
  22. # ALL (unset) Includes additional modules for build testing
  23. #
  24. # Provide a DBD_LIST argument after configuring LIB and INCLUDE with
  25. # the SDK paths of the corresponding client support libraries.
  26. # The ODBC driver is always built on Windows.
  27. #
  28. # DBD_LIST="sqlite3 pgsql oracle mysql freetds"
  29. #
  30. # Provide a DBM_LIST argument after configuring LIB and INCLUDE with
  31. # the SDK paths of the corresponding client support libraries.
  32. # The sdbm driver is always built in.
  33. #
  34. # DBM_LIST="db gdbm"
  35. #
  36. # For example;
  37. #
  38. # nmake -f Makefile.win PORT=80 INSTDIR="d:\Program Files\Apache" installr
  39. #
  40. # Be aware that certain awk's will not accept backslashed names,
  41. # so the server root should be given in forward slashes (quoted),
  42. # preferably with the drive designation!
  43. !IF EXIST("httpd.vcproj") && ([devenv /help > NUL 2>&1] == 0) \
  44. && !defined(USEMAK) && !defined(USEDSW)
  45. USESLN=1
  46. USEMAK=0
  47. USEDSW=0
  48. !ELSEIF EXIST("httpd.mak") && !defined(USEDSW)
  49. USESLN=0
  50. USEMAK=1
  51. USEDSW=0
  52. !ELSE
  53. USESLN=0
  54. USEMAK=0
  55. USEDSW=1
  56. !ENDIF
  57. default: _apacher
  58. !IF ("$(CTARGET)" == "") && ($(USESLN) == 1)
  59. CTARGET=/build
  60. !ENDIF
  61. !IF !EXIST("srclib\apr") || !EXIST("srclib\apr-util") || !EXIST("srclib\apr-iconv")
  62. !MESSAGE Please check out or download and unpack the Apache Portability Runtime
  63. !MESSAGE sources (apr, apr-iconv and apr-util) into your srclib dir.
  64. !MESSAGE Apache cannot build without these libraries!
  65. !MESSAGE
  66. !ERROR Need srclib\ apr, apr-iconv and apr-util
  67. !ENDIF
  68. # Note; _tryssl: is only used by the msvc developer studio environment to 'fix up'
  69. # the build, since conditional dependencies aren't supported.
  70. #
  71. !IF EXIST("srclib\openssl")
  72. !IF "$(LONG)" == "Debug" && EXIST("srclib\openssl\out32dll.dbg\openssl.exe")
  73. SSLBIN=out32dll.dbg
  74. !ELSE
  75. SSLBIN=out32dll
  76. !ENDIF
  77. _tryssl:
  78. !IF $(USEMAK) == 1
  79. cd modules\ssl
  80. $(MAKE) $(MAKEOPT) -f mod_ssl.mak CFG="mod_ssl - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  81. cd ..\..
  82. cd support
  83. $(MAKE) $(MAKEOPT) -f abs.mak CFG="abs - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  84. cd ..
  85. !ELSEIF $(USESLN) == 1
  86. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_ssl
  87. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project abs
  88. !ELSE
  89. @msdev Apache.dsw /USEENV /MAKE \
  90. "mod_ssl - Win32 $(LONG)" \
  91. "abs - Win32 $(LONG)" /NORECURSE $(CTARGET)
  92. !ENDIF
  93. !ELSE
  94. # NOT EXIST("srclib\openssl")
  95. _tryssl:
  96. @echo -----
  97. @echo mod_ssl and ab/ssl will not build unless openssl is installed
  98. @echo in srclib\openssl. They must be precompiled using the
  99. @echo ms/ntdll.mak file, see srclib\openssl\INSTALL.W32. The most
  100. @echo recent version confirmed to build with mod_ssl and ab is 0.9.8d.
  101. @echo Available from http://www.openssl.org/
  102. !ENDIF
  103. !IF EXIST("srclib\zlib")
  104. _tryzlib:
  105. !IF $(USEMAK) == 1
  106. cd modules\filters
  107. $(MAKE) $(MAKEOPT) -f mod_deflate.mak CFG="mod_deflate - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  108. cd ..\..
  109. !ELSEIF $(USESLN) == 1
  110. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_deflate
  111. !ELSE
  112. @msdev Apache.dsw /USEENV /MAKE \
  113. "mod_deflate - Win32 $(LONG)" /NORECURSE $(CTARGET)
  114. !ENDIF
  115. !ELSE
  116. # NOT EXIST("srclib\zlib")
  117. _tryzlib:
  118. @echo -----
  119. @echo mod_deflate will not build unless zlib is installed in srclib\zlib.
  120. @echo Version 1.2.1 and later available from http://www.gzip.org/zlib/
  121. @echo built w/ nmake -f win32/Makefile.msc will satisfy this requirement.
  122. !ENDIF
  123. _trydb:
  124. !IF $(USEMAK) == 1
  125. cd srclib\apr-util\dbd
  126. for %d in (odbc $(DBD_LIST)) do \
  127. $(MAKE) $(MAKEOPT) -f apr_dbd_%d.mak CFG="apr_dbd_%d - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  128. cd ..\dbm
  129. for %d in ($(DBM_LIST) x) do if not %d == x \
  130. $(MAKE) $(MAKEOPT) -f apr_dbm_%d.mak CFG="apr_dbm_%d - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  131. cd ..\..\..
  132. !ELSEIF $(USESLN) == 1
  133. for %d in (odbc $(DBD_LIST)) do \
  134. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project apr_dbd_%d
  135. for %d in ($(DBM_LIST) x) do if not %d == x \
  136. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project apr_dbm_%d
  137. !ELSE
  138. @for %d in (odbc $(DBD_LIST)) do \
  139. msdev Apache.dsw /USEENV /MAKE \
  140. "apr_dbd_%d - Win32 $(LONG)" /NORECURSE $(CTARGET)
  141. @for %d in ($(DBM_LIST) x) do if not %d == x \
  142. msdev Apache.dsw /USEENV /MAKE \
  143. "apr_dbm_%d - Win32 $(LONG)" /NORECURSE $(CTARGET)
  144. !ENDIF
  145. !IF "$(INSTDIR)" == ""
  146. INSTDIR=\Apache22
  147. !ENDIF
  148. !IF "$(DOMAINNAME)" == ""
  149. DOMAINNAME=example.com
  150. !ENDIF
  151. !IF "$(SERVERNAME)" == ""
  152. SERVERNAME=www.$(DOMAINNAME)
  153. !ENDIF
  154. !IF "$(SERVERADMIN)" == ""
  155. SERVERADMIN=admin@$(DOMAINNAME)
  156. !ENDIF
  157. !IF "$(PORT)" == ""
  158. PORT=80
  159. !ENDIF
  160. !IF "$(SSLPORT)" == ""
  161. SSLPORT=443
  162. !ENDIF
  163. !IF "$(LONG)" == ""
  164. !MESSAGE
  165. !MESSAGE INSTDIR = $(INSTDIR)
  166. !MESSAGE DOMAINNAME = $(DOMAINNAME)
  167. !MESSAGE SERVERNAME = $(SERVERNAME)
  168. !MESSAGE SERVERADMIN = $(SERVERADMIN)
  169. !MESSAGE PORT = $(PORT)
  170. !IF EXIST("srclib\openssl")
  171. !MESSAGE SSLPORT = $(SSLPORT)
  172. !ENDIF
  173. !MESSAGE
  174. !MESSAGE To change these options use 'nmake -f Makefile.win [option=value]'
  175. !MESSAGE Example: nmake -f Makefile.win PORT=8080
  176. !MESSAGE
  177. !MESSAGE
  178. !ENDIF
  179. !IFNDEF MAKEOPT
  180. # Only default the behavior if MAKEOPT= is omitted
  181. !IFDEF _NMAKE_VER
  182. # Microsoft NMake options
  183. MAKEOPT=-nologo
  184. !ELSEIF "$(MAKE)" == "make"
  185. # Borland make options? Not really supported (yet)
  186. MAKEOPT=-s -N
  187. !ENDIF
  188. !ENDIF
  189. _dummy:
  190. _browse:
  191. cd Browse
  192. bscmake.exe -nologo -Iu -o Apache.bsc *.sbr
  193. cd ..
  194. _apacher:
  195. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release _build
  196. _apached:
  197. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug _build
  198. installr:
  199. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release _build _install
  200. installd:
  201. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug _build _install
  202. clean: _cleanr _cleand
  203. -if exist Browse\. rd /s Browse < << > nul
  204. y
  205. <<
  206. !IF $(USEMAK) == 1
  207. _cleanr:
  208. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET=CLEAN _build
  209. _cleand:
  210. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET=CLEAN _build
  211. _build:
  212. echo Building Win32 $(LONG) targets ($(SHORT) suffixes)
  213. cd srclib\apr
  214. $(MAKE) $(MAKEOPT) -f apr.mak CFG="apr - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  215. $(MAKE) $(MAKEOPT) -f libapr.mak CFG="libapr - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  216. cd ..\..
  217. cd srclib\apr-iconv
  218. $(MAKE) $(MAKEOPT) -f apriconv.mak CFG="apriconv - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  219. $(MAKE) $(MAKEOPT) -f libapriconv.mak CFG="libapriconv - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  220. !IF "$(CTARGET)" == "CLEAN"
  221. $(MAKE) $(MAKEOPT) -f build\modules.mk.win clean \
  222. BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=.
  223. !ELSE
  224. cd ccs
  225. $(MAKE) $(MAKEOPT) -f Makefile.win all \
  226. BUILD_MODE=$(LONG) BIND_MODE=shared
  227. cd ..\ces
  228. $(MAKE) $(MAKEOPT) -f Makefile.win all \
  229. BUILD_MODE=$(LONG) BIND_MODE=shared
  230. cd ..
  231. !ENDIF
  232. cd ..\..
  233. cd srclib\apr-util\xml\expat\lib
  234. $(MAKE) $(MAKEOPT) -f xml.mak CFG="xml - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  235. cd ..\..\..
  236. $(MAKE) $(MAKEOPT) -f aprutil.mak CFG="aprutil - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  237. $(MAKE) $(MAKEOPT) -f libaprutil.mak CFG="libaprutil - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  238. cd ldap
  239. $(MAKE) $(MAKEOPT) -f apr_ldap.mak CFG="apr_ldap - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  240. cd ..
  241. cd dbd
  242. for %d in (odbc $(DBD_LIST)) do \
  243. $(MAKE) $(MAKEOPT) -f apr_dbd_%d.mak CFG="apr_dbd_%d - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  244. cd ..
  245. cd dbm
  246. for %d in ($(DBM_LIST) x) do if not %d == x \
  247. $(MAKE) $(MAKEOPT) -f apr_dbm_%d.mak CFG="apr_dbm_%d - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  248. cd ..
  249. cd ..\..
  250. cd srclib\pcre
  251. $(MAKE) $(MAKEOPT) -f dftables.mak CFG="dftables - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  252. $(MAKE) $(MAKEOPT) -f pcre.mak CFG="pcre - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  253. cd ..\..
  254. cd server
  255. $(MAKE) $(MAKEOPT) -f gen_test_char.mak CFG="gen_test_char - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  256. cd ..
  257. $(MAKE) $(MAKEOPT) -f libhttpd.mak CFG="libhttpd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  258. $(MAKE) $(MAKEOPT) -f httpd.mak CFG="httpd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  259. # build ldap prior to authnz_ldap
  260. cd modules\ldap
  261. $(MAKE) $(MAKEOPT) -f mod_ldap.mak CFG="mod_ldap - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  262. cd ..\..
  263. cd modules\database
  264. $(MAKE) $(MAKEOPT) -f mod_dbd.mak CFG="mod_dbd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  265. cd ..\..
  266. cd modules\aaa
  267. $(MAKE) $(MAKEOPT) -f mod_auth_basic.mak CFG="mod_auth_basic - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  268. $(MAKE) $(MAKEOPT) -f mod_auth_digest.mak CFG="mod_auth_digest - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  269. $(MAKE) $(MAKEOPT) -f mod_authn_alias.mak CFG="mod_authn_alias - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  270. $(MAKE) $(MAKEOPT) -f mod_authn_anon.mak CFG="mod_authn_anon - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  271. $(MAKE) $(MAKEOPT) -f mod_authn_dbd.mak CFG="mod_authn_dbd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  272. $(MAKE) $(MAKEOPT) -f mod_authn_dbm.mak CFG="mod_authn_dbm - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  273. $(MAKE) $(MAKEOPT) -f mod_authn_default.mak CFG="mod_authn_default - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  274. $(MAKE) $(MAKEOPT) -f mod_authn_file.mak CFG="mod_authn_file - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  275. $(MAKE) $(MAKEOPT) -f mod_authnz_ldap.mak CFG="mod_authnz_ldap - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  276. $(MAKE) $(MAKEOPT) -f mod_authz_dbm.mak CFG="mod_authz_dbm - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  277. $(MAKE) $(MAKEOPT) -f mod_authz_default.mak CFG="mod_authz_default - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  278. $(MAKE) $(MAKEOPT) -f mod_authz_groupfile.mak CFG="mod_authz_groupfile - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  279. $(MAKE) $(MAKEOPT) -f mod_authz_host.mak CFG="mod_authz_host - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  280. $(MAKE) $(MAKEOPT) -f mod_authz_owner.mak CFG="mod_authz_owner - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  281. $(MAKE) $(MAKEOPT) -f mod_authz_user.mak CFG="mod_authz_user - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  282. cd ..\..
  283. cd modules\arch\win32
  284. $(MAKE) $(MAKEOPT) -f mod_isapi.mak CFG="mod_isapi - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  285. cd ..\..\..
  286. cd modules\cache
  287. $(MAKE) $(MAKEOPT) -f mod_cache.mak CFG="mod_cache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  288. $(MAKE) $(MAKEOPT) -f mod_file_cache.mak CFG="mod_file_cache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  289. $(MAKE) $(MAKEOPT) -f mod_mem_cache.mak CFG="mod_mem_cache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  290. $(MAKE) $(MAKEOPT) -f mod_disk_cache.mak CFG="mod_disk_cache - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  291. cd ..\..
  292. cd modules\dav\main
  293. $(MAKE) $(MAKEOPT) -f mod_dav.mak CFG="mod_dav - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  294. cd ..\..\..
  295. cd modules\dav\fs
  296. $(MAKE) $(MAKEOPT) -f mod_dav_fs.mak CFG="mod_dav_fs - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  297. cd ..\..\..
  298. cd modules\dav\lock
  299. $(MAKE) $(MAKEOPT) -f mod_dav_lock.mak CFG="mod_dav_lock - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  300. cd ..\..\..
  301. cd modules\debug
  302. !IFDEF ALL
  303. $(MAKE) $(MAKEOPT) -f mod_bucketeer.mak CFG="mod_bucketeer - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  304. !ENDIF
  305. $(MAKE) $(MAKEOPT) -f mod_dumpio.mak CFG="mod_dumpio - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  306. cd ..\..
  307. cd modules\echo
  308. !IFDEF ALL
  309. $(MAKE) $(MAKEOPT) -f mod_echo.mak CFG="mod_echo - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  310. !ENDIF
  311. cd ..\..
  312. cd modules\experimental
  313. !IFDEF ALL
  314. $(MAKE) $(MAKEOPT) -f mod_case_filter.mak CFG="mod_case_filter - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  315. $(MAKE) $(MAKEOPT) -f mod_case_filter_in.mak CFG="mod_case_filter_in - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  316. $(MAKE) $(MAKEOPT) -f mod_example.mak CFG="mod_example - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  317. !ENDIF
  318. cd ..\..
  319. cd modules\filters
  320. $(MAKE) $(MAKEOPT) -f mod_charset_lite.mak CFG="mod_charset_lite - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  321. !IF EXIST("srclib\zlib")
  322. $(MAKE) $(MAKEOPT) -f mod_deflate.mak CFG="mod_deflate - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  323. !ENDIF
  324. $(MAKE) $(MAKEOPT) -f mod_ext_filter.mak CFG="mod_ext_filter - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  325. $(MAKE) $(MAKEOPT) -f mod_filter.mak CFG="mod_filter - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  326. $(MAKE) $(MAKEOPT) -f mod_include.mak CFG="mod_include - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  327. $(MAKE) $(MAKEOPT) -f mod_reqtimeout.mak CFG="mod_reqtimeout - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  328. $(MAKE) $(MAKEOPT) -f mod_substitute.mak CFG="mod_substitute - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  329. cd ..\..
  330. cd modules\generators
  331. $(MAKE) $(MAKEOPT) -f mod_asis.mak CFG="mod_asis - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  332. $(MAKE) $(MAKEOPT) -f mod_autoindex.mak CFG="mod_autoindex - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  333. $(MAKE) $(MAKEOPT) -f mod_cgi.mak CFG="mod_cgi - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  334. $(MAKE) $(MAKEOPT) -f mod_info.mak CFG="mod_info - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  335. $(MAKE) $(MAKEOPT) -f mod_status.mak CFG="mod_status - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  336. cd ..\..
  337. cd modules\http
  338. $(MAKE) $(MAKEOPT) -f mod_mime.mak CFG="mod_mime - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  339. cd ..\..
  340. cd modules\loggers
  341. $(MAKE) $(MAKEOPT) -f mod_log_config.mak CFG="mod_log_config - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  342. $(MAKE) $(MAKEOPT) -f mod_log_forensic.mak CFG="mod_log_forensic - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  343. $(MAKE) $(MAKEOPT) -f mod_logio.mak CFG="mod_logio - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  344. cd ..\..
  345. cd modules\mappers
  346. $(MAKE) $(MAKEOPT) -f mod_actions.mak CFG="mod_actions - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  347. $(MAKE) $(MAKEOPT) -f mod_alias.mak CFG="mod_alias - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  348. $(MAKE) $(MAKEOPT) -f mod_dir.mak CFG="mod_dir - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  349. $(MAKE) $(MAKEOPT) -f mod_imagemap.mak CFG="mod_imagemap - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  350. $(MAKE) $(MAKEOPT) -f mod_negotiation.mak CFG="mod_negotiation - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  351. $(MAKE) $(MAKEOPT) -f mod_rewrite.mak CFG="mod_rewrite - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  352. $(MAKE) $(MAKEOPT) -f mod_speling.mak CFG="mod_speling - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  353. $(MAKE) $(MAKEOPT) -f mod_userdir.mak CFG="mod_userdir - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  354. $(MAKE) $(MAKEOPT) -f mod_vhost_alias.mak CFG="mod_vhost_alias - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  355. cd ..\..
  356. cd modules\metadata
  357. $(MAKE) $(MAKEOPT) -f mod_cern_meta.mak CFG="mod_cern_meta - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  358. $(MAKE) $(MAKEOPT) -f mod_env.mak CFG="mod_env - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  359. $(MAKE) $(MAKEOPT) -f mod_expires.mak CFG="mod_expires - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  360. $(MAKE) $(MAKEOPT) -f mod_headers.mak CFG="mod_headers - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  361. $(MAKE) $(MAKEOPT) -f mod_ident.mak CFG="mod_ident - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  362. $(MAKE) $(MAKEOPT) -f mod_mime_magic.mak CFG="mod_mime_magic - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  363. $(MAKE) $(MAKEOPT) -f mod_setenvif.mak CFG="mod_setenvif - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  364. $(MAKE) $(MAKEOPT) -f mod_unique_id.mak CFG="mod_unique_id - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  365. $(MAKE) $(MAKEOPT) -f mod_usertrack.mak CFG="mod_usertrack - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  366. $(MAKE) $(MAKEOPT) -f mod_version.mak CFG="mod_version - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  367. cd ..\..
  368. cd modules\proxy
  369. $(MAKE) $(MAKEOPT) -f mod_proxy.mak CFG="mod_proxy - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  370. $(MAKE) $(MAKEOPT) -f mod_proxy_ajp.mak CFG="mod_proxy_ajp - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  371. $(MAKE) $(MAKEOPT) -f mod_proxy_balancer.mak CFG="mod_proxy_balancer - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  372. $(MAKE) $(MAKEOPT) -f mod_proxy_connect.mak CFG="mod_proxy_connect - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  373. $(MAKE) $(MAKEOPT) -f mod_proxy_ftp.mak CFG="mod_proxy_ftp - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  374. $(MAKE) $(MAKEOPT) -f mod_proxy_http.mak CFG="mod_proxy_http - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  375. cd ..\..
  376. !IF EXIST("srclib\openssl")
  377. cd modules\ssl
  378. $(MAKE) $(MAKEOPT) -f mod_ssl.mak CFG="mod_ssl - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  379. cd ..\..
  380. cd support
  381. $(MAKE) $(MAKEOPT) -f abs.mak CFG="abs - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  382. cd ..
  383. !ENDIF
  384. cd support
  385. $(MAKE) $(MAKEOPT) -f ab.mak CFG="ab - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  386. $(MAKE) $(MAKEOPT) -f htcacheclean.mak CFG="htcacheclean - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  387. $(MAKE) $(MAKEOPT) -f htdbm.mak CFG="htdbm - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  388. $(MAKE) $(MAKEOPT) -f htdigest.mak CFG="htdigest - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  389. $(MAKE) $(MAKEOPT) -f htpasswd.mak CFG="htpasswd - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  390. $(MAKE) $(MAKEOPT) -f httxt2dbm.mak CFG="httxt2dbm - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  391. $(MAKE) $(MAKEOPT) -f logresolve.mak CFG="logresolve - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  392. $(MAKE) $(MAKEOPT) -f rotatelogs.mak CFG="rotatelogs - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  393. cd ..
  394. cd support\win32
  395. $(MAKE) $(MAKEOPT) -f ApacheMonitor.mak CFG="ApacheMonitor - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  396. $(MAKE) $(MAKEOPT) -f wintty.mak CFG="wintty - Win32 $(LONG)" RECURSE=0 $(CTARGET)
  397. cd ..\..
  398. !ELSEIF $(USESLN) == 1
  399. _cleanr:
  400. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET="/clean" _build
  401. _cleand:
  402. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET="/clean" _build
  403. _build:
  404. echo Building Win32 $(LONG) targets ($(SHORT) suffixes)
  405. !IFDEF ALL
  406. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project BuildAll
  407. !ELSE
  408. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project BuildBin
  409. !ENDIF
  410. !IF EXIST("srclib\openssl")
  411. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_ssl
  412. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project abs
  413. !ENDIF
  414. !IF EXIST("srclib\zlib")
  415. devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_deflate
  416. !ENDIF
  417. !ELSE
  418. _cleanr:
  419. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET="/CLEAN" _build
  420. _cleand:
  421. @$(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET="/CLEAN" _build
  422. _build:
  423. @echo Building Win32 $(LONG) targets ($(SHORT) suffixes)
  424. !IFDEF ALL
  425. @msdev Apache.dsw /USEENV /MAKE \
  426. "BuildAll - Win32 $(LONG)" $(CTARGET)
  427. !ELSE
  428. @msdev Apache.dsw /USEENV /MAKE \
  429. "BuildBin - Win32 $(LONG)" $(CTARGET)
  430. !ENDIF
  431. !IF "$(CTARGET)" == "/CLEAN"
  432. @cd srclib\apr-iconv
  433. @$(MAKE) $(MAKEOPT) -f build\modules.mk.win clean \
  434. BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=.
  435. @cd ..\..
  436. !ENDIF
  437. !IF EXIST("srclib\openssl")
  438. @msdev Apache.dsw /USEENV /MAKE \
  439. "mod_ssl - Win32 $(LONG)" \
  440. "abs - Win32 $(LONG)" /NORECURSE $(CTARGET)
  441. !ENDIF
  442. !IF EXIST("srclib\zlib")
  443. @msdev Apache.dsw /USEENV /MAKE \
  444. "mod_deflate - Win32 $(LONG)" /NORECURSE $(CTARGET)
  445. !ENDIF
  446. !ENDIF
  447. _copybin:
  448. copy $(LONG)\httpd.$(src_exe) "$(inst_exe)" <.y
  449. copy $(LONG)\libhttpd.$(src_dll) "$(inst_dll)" <.y
  450. copy srclib\apr\$(LONG)\libapr-1.$(src_dll) "$(inst_dll)" <.y
  451. copy srclib\apr-iconv\$(LONG)\libapriconv-1.$(src_dll) "$(inst_dll)" <.y
  452. copy srclib\apr-util\$(LONG)\libaprutil-1.$(src_dll) "$(inst_dll)" <.y
  453. copy srclib\apr-util\ldap\$(LONG)\apr_ldap-1.$(src_dll) "$(inst_dll)" <.y
  454. for %d in (odbc $(DBD_LIST)) do ( \
  455. copy srclib\apr-util\dbd\$(LONG)\apr_dbd_%d-1.$(src_dll) "$(inst_dll)" <.y \
  456. )
  457. for %d in ($(DBM_LIST) x) do if not %d == x ( \
  458. copy srclib\apr-util\dbm\$(LONG)\apr_dbm_%d-1.$(src_dll) "$(inst_dll)" <.y \
  459. )
  460. copy modules\aaa\$(LONG)\mod_auth_basic.$(src_so) "$(inst_so)" <.y
  461. copy modules\aaa\$(LONG)\mod_auth_digest.$(src_so) "$(inst_so)" <.y
  462. copy modules\aaa\$(LONG)\mod_authn_alias.$(src_so) "$(inst_so)" <.y
  463. copy modules\aaa\$(LONG)\mod_authn_anon.$(src_so) "$(inst_so)" <.y
  464. copy modules\aaa\$(LONG)\mod_authn_dbd.$(src_so) "$(inst_so)" <.y
  465. copy modules\aaa\$(LONG)\mod_authn_dbm.$(src_so) "$(inst_so)" <.y
  466. copy modules\aaa\$(LONG)\mod_authn_default.$(src_so) "$(inst_so)" <.y
  467. copy modules\aaa\$(LONG)\mod_authn_file.$(src_so) "$(inst_so)" <.y
  468. copy modules\aaa\$(LONG)\mod_authnz_ldap.$(src_so) "$(inst_so)" <.y
  469. copy modules\aaa\$(LONG)\mod_authz_dbm.$(src_so) "$(inst_so)" <.y
  470. copy modules\aaa\$(LONG)\mod_authz_default.$(src_so) "$(inst_so)" <.y
  471. copy modules\aaa\$(LONG)\mod_authz_groupfile.$(src_so) "$(inst_so)" <.y
  472. copy modules\aaa\$(LONG)\mod_authz_host.$(src_so) "$(inst_so)" <.y
  473. copy modules\aaa\$(LONG)\mod_authz_owner.$(src_so) "$(inst_so)" <.y
  474. copy modules\aaa\$(LONG)\mod_authz_user.$(src_so) "$(inst_so)" <.y
  475. copy modules\arch\win32\$(LONG)\mod_isapi.$(src_so) "$(inst_so)" <.y
  476. copy modules\cache\$(LONG)\mod_cache.$(src_so) "$(inst_so)" <.y
  477. copy modules\cache\$(LONG)\mod_file_cache.$(src_so) "$(inst_so)" <.y
  478. copy modules\cache\$(LONG)\mod_mem_cache.$(src_so) "$(inst_so)" <.y
  479. copy modules\cache\$(LONG)\mod_disk_cache.$(src_so) "$(inst_so)" <.y
  480. copy modules\database\$(LONG)\mod_dbd.$(src_so) "$(inst_so)" <.y
  481. copy modules\dav\fs\$(LONG)\mod_dav_fs.$(src_so) "$(inst_so)" <.y
  482. copy modules\dav\lock\$(LONG)\mod_dav_lock.$(src_so) "$(inst_so)" <.y
  483. copy modules\dav\main\$(LONG)\mod_dav.$(src_so) "$(inst_so)" <.y
  484. !IFDEF ALL
  485. copy modules\debug\$(LONG)\mod_bucketeer.$(src_so) "$(inst_so)" <.y
  486. !ENDIF
  487. copy modules\debug\$(LONG)\mod_dumpio.$(src_so) "$(inst_so)" <.y
  488. !IFDEF ALL
  489. copy modules\echo\$(LONG)\mod_echo.$(src_so) "$(inst_so)" <.y
  490. copy modules\experimental\$(LONG)\mod_case_filter.$(src_so) "$(inst_so)" <.y
  491. copy modules\experimental\$(LONG)\mod_case_filter_in.$(src_so) "$(inst_so)" <.y
  492. copy modules\experimental\$(LONG)\mod_example.$(src_so) "$(inst_so)" <.y
  493. !ENDIF
  494. copy modules\filters\$(LONG)\mod_charset_lite.$(src_so) "$(inst_so)" <.y
  495. !IF EXIST("srclib\zlib")
  496. copy modules\filters\$(LONG)\mod_deflate.$(src_so) "$(inst_so)" <.y
  497. !IF EXIST("srclib\zlib\zlib1.$(src_dll)")
  498. copy srclib\zlib\zlib1.$(src_dll) "$(inst_dll)" <.y
  499. !ENDIF
  500. !ENDIF
  501. copy modules\filters\$(LONG)\mod_ext_filter.$(src_so) "$(inst_so)" <.y
  502. copy modules\filters\$(LONG)\mod_filter.$(src_so) "$(inst_so)" <.y
  503. copy modules\filters\$(LONG)\mod_include.$(src_so) "$(inst_so)" <.y
  504. copy modules\filters\$(LONG)\mod_reqtimeout.$(src_so) "$(inst_so)" <.y
  505. copy modules\filters\$(LONG)\mod_substitute.$(src_so) "$(inst_so)" <.y
  506. copy modules\generators\$(LONG)\mod_asis.$(src_so) "$(inst_so)" <.y
  507. copy modules\generators\$(LONG)\mod_autoindex.$(src_so) "$(inst_so)" <.y
  508. copy modules\generators\$(LONG)\mod_cgi.$(src_so) "$(inst_so)" <.y
  509. copy modules\generators\$(LONG)\mod_info.$(src_so) "$(inst_so)" <.y
  510. copy modules\generators\$(LONG)\mod_status.$(src_so) "$(inst_so)" <.y
  511. copy modules\http\$(LONG)\mod_mime.$(src_so) "$(inst_so)" <.y
  512. copy modules\ldap\$(LONG)\mod_ldap.$(src_so) "$(inst_so)" <.y
  513. copy modules\loggers\$(LONG)\mod_log_config.$(src_so) "$(inst_so)" <.y
  514. copy modules\loggers\$(LONG)\mod_log_forensic.$(src_so) "$(inst_so)" <.y
  515. copy modules\loggers\$(LONG)\mod_logio.$(src_so) "$(inst_so)" <.y
  516. copy modules\mappers\$(LONG)\mod_actions.$(src_so) "$(inst_so)" <.y
  517. copy modules\mappers\$(LONG)\mod_alias.$(src_so) "$(inst_so)" <.y
  518. copy modules\mappers\$(LONG)\mod_dir.$(src_so) "$(inst_so)" <.y
  519. copy modules\mappers\$(LONG)\mod_imagemap.$(src_so) "$(inst_so)" <.y
  520. copy modules\mappers\$(LONG)\mod_negotiation.$(src_so) "$(inst_so)" <.y
  521. copy modules\mappers\$(LONG)\mod_rewrite.$(src_so) "$(inst_so)" <.y
  522. copy modules\mappers\$(LONG)\mod_speling.$(src_so) "$(inst_so)" <.y
  523. copy modules\mappers\$(LONG)\mod_userdir.$(src_so) "$(inst_so)" <.y
  524. copy modules\mappers\$(LONG)\mod_vhost_alias.$(src_so) "$(inst_so)" <.y
  525. copy modules\metadata\$(LONG)\mod_cern_meta.$(src_so) "$(inst_so)" <.y
  526. copy modules\metadata\$(LONG)\mod_env.$(src_so) "$(inst_so)" <.y
  527. copy modules\metadata\$(LONG)\mod_expires.$(src_so) "$(inst_so)" <.y
  528. copy modules\metadata\$(LONG)\mod_headers.$(src_so) "$(inst_so)" <.y
  529. copy modules\metadata\$(LONG)\mod_ident.$(src_so) "$(inst_so)" <.y
  530. copy modules\metadata\$(LONG)\mod_mime_magic.$(src_so) "$(inst_so)" <.y
  531. copy modules\metadata\$(LONG)\mod_setenvif.$(src_so) "$(inst_so)" <.y
  532. copy modules\metadata\$(LONG)\mod_unique_id.$(src_so) "$(inst_so)" <.y
  533. copy modules\metadata\$(LONG)\mod_usertrack.$(src_so) "$(inst_so)" <.y
  534. copy modules\metadata\$(LONG)\mod_version.$(src_so) "$(inst_so)" <.y
  535. copy modules\proxy\$(LONG)\mod_proxy.$(src_so) "$(inst_so)" <.y
  536. copy modules\proxy\$(LONG)\mod_proxy_ajp.$(src_so) "$(inst_so)" <.y
  537. copy modules\proxy\$(LONG)\mod_proxy_balancer.$(src_so) "$(inst_so)" <.y
  538. copy modules\proxy\$(LONG)\mod_proxy_connect.$(src_so) "$(inst_so)" <.y
  539. copy modules\proxy\$(LONG)\mod_proxy_ftp.$(src_so) "$(inst_so)" <.y
  540. copy modules\proxy\$(LONG)\mod_proxy_http.$(src_so) "$(inst_so)" <.y
  541. !IF EXIST("srclib\openssl")
  542. copy modules\ssl\$(LONG)\mod_ssl.$(src_so) "$(inst_so)" <.y
  543. -copy srclib\openssl\$(SSLBIN)\libeay32.$(src_dll) "$(inst_dll)" <.y
  544. -copy srclib\openssl\$(SSLBIN)\ssleay32.$(src_dll) "$(inst_dll)" <.y
  545. -copy srclib\openssl\$(SSLBIN)\openssl.$(src_exe) "$(inst_exe)" <.y
  546. copy support\$(LONG)\abs.$(src_exe) "$(inst_exe)" <.y
  547. !ENDIF
  548. copy support\$(LONG)\ab.$(src_exe) "$(inst_exe)" <.y
  549. copy support\$(LONG)\htcacheclean.$(src_exe) "$(inst_exe)" <.y
  550. copy support\$(LONG)\htdbm.$(src_exe) "$(inst_exe)" <.y
  551. copy support\$(LONG)\htdigest.$(src_exe) "$(inst_exe)" <.y
  552. copy support\$(LONG)\htpasswd.$(src_exe) "$(inst_exe)" <.y
  553. copy support\$(LONG)\httxt2dbm.$(src_exe) "$(inst_exe)" <.y
  554. copy support\$(LONG)\logresolve.$(src_exe) "$(inst_exe)" <.y
  555. copy support\$(LONG)\rotatelogs.$(src_exe) "$(inst_exe)" <.y
  556. copy support\win32\$(LONG)\ApacheMonitor.$(src_exe) "$(inst_exe)" <.y
  557. copy support\win32\$(LONG)\wintty.$(src_exe) "$(inst_exe)" <.y
  558. # First we create the tree and populate the README so that
  559. # whatever happens, all licensing has already propagated.
  560. # Then repeatedly invoke the _copybin build to copy the
  561. # real binaries, then pdb symbols, anf finally dbg syms.
  562. # Then hit docs of various sorts, then includes and libs,
  563. # and finally do the .conf magic.
  564. #
  565. _install:
  566. echo Y >.y
  567. echo A >.A
  568. -mkdir "$(INSTDIR)"
  569. -mkdir "$(INSTDIR)\bin"
  570. -mkdir "$(INSTDIR)\bin\iconv"
  571. -mkdir "$(INSTDIR)\cgi-bin"
  572. -mkdir "$(INSTDIR)\conf"
  573. -mkdir "$(INSTDIR)\conf\extra"
  574. -mkdir "$(INSTDIR)\conf\original"
  575. -mkdir "$(INSTDIR)\conf\original\extra"
  576. -mkdir "$(INSTDIR)\error"
  577. -mkdir "$(INSTDIR)\htdocs"
  578. -mkdir "$(INSTDIR)\manual"
  579. -mkdir "$(INSTDIR)\icons"
  580. -mkdir "$(INSTDIR)\include"
  581. -mkdir "$(INSTDIR)\lib"
  582. -mkdir "$(INSTDIR)\logs"
  583. -mkdir "$(INSTDIR)\modules"
  584. copy ABOUT_APACHE "$(INSTDIR)\ABOUT_APACHE.txt" <.y
  585. copy CHANGES "$(INSTDIR)\CHANGES.txt" <.y
  586. copy INSTALL "$(INSTDIR)\INSTALL.txt" <.y
  587. copy LICENSE "$(INSTDIR)\LICENSE.txt" <.y
  588. copy NOTICE "$(INSTDIR)\NOTICE.txt" <.y
  589. copy README "$(INSTDIR)\README.txt" <.y
  590. copy README-win32.txt "$(INSTDIR)\README-win32.txt" <.y
  591. !IF EXIST("srclib\openssl")
  592. -copy srclib\openssl\apps\openssl.cnf "$(INSTDIR)\conf\openssl.cnf" <.y
  593. type << >> "$(INSTDIR)\NOTICE.txt"
  594. This binary distribution includes cryptographic software written by
  595. Eric Young (eay@cryptsoft.com), software written by Tim Hudson
  596. (tjh@cryptsoft.com), and software developed by the OpenSSL Project
  597. for use in the OpenSSL Toolkit <http://www.openssl.org/>.
  598. <<
  599. -awk -f <<script.awk < "srclib\openssl\LICENSE" >> "$(INSTDIR)\LICENSE.txt"
  600. BEGIN {
  601. print "";
  602. print "For the libeay32.dll, ssleay32.dll and openssl.exe components:";
  603. print "";
  604. while ( getline > 0 ) {
  605. print $$0;
  606. }
  607. }
  608. <<
  609. copy << "$(INSTDIR)\OPENSSL-NEWS.txt" <.y
  610. Apache HTTP Server 2.2 Limited OpenSSL Distribution
  611. This binary distribution includes the minimal components of OpenSSL required
  612. to support mod_ssl for Apache HTTP Server version 2.2 (details are listed
  613. in OPENSSL-README.txt.) For the complete list of CHANGES to this and later
  614. versions of OpenSSL, please refer to the definative source,
  615. <http://www.openssl.org/news/changelog.html>, or see the CHANGES file in the
  616. full binary or source distribution package from <http://www.openssl.org/>.
  617. These OpenSSL binaries were built for distribution from the U.S. without
  618. support for the patented encryption methods IDEA, MDC-2 or RC5.
  619. --------------------------------------------------------------------------------
  620. <<
  621. -copy "$(INSTDIR)\OPENSSL-NEWS.txt" \
  622. + srclib\openssl\NEWS "$(INSTDIR)\OPENSSL-NEWS.txt"
  623. copy << "$(INSTDIR)\OPENSSL-README.txt" <.y
  624. Apache HTTP Server 2.2 Limited OpenSSL Distribution
  625. This binary installation of OpenSSL is a limited distribution of the
  626. files derived from the OpenSSL project:
  627. LICENSE.txt (includes openssl LICENSE)
  628. OPENSSL-NEWS.txt
  629. OPENSSL-README.txt
  630. conf\openssl.cnf
  631. bin\libeay32.dll
  632. bin\ssleay32.dll
  633. bin\openssl.exe
  634. These are the minimal libraries and tools required to use mod_ssl as
  635. distributed with Apache HTTP Server version 2.2. No library link files,
  636. headers or sources are distributed with this binary distribution. Please
  637. refer to the <http://www.openssl.org/> site for complete source or binary
  638. distributions.
  639. These OpenSSL binaries were built for distribution from the U.S. without
  640. support for the patented encryption methods IDEA, MDC-2 or RC5.
  641. The Apache HTTP Project only supports the binary distribution of these files
  642. and development of the mod_ssl module. We cannot provide support assistance
  643. for using or configuring the OpenSSL package or these modules. Please refer
  644. all installation and configuration questions to the appropriate forum,
  645. such as the user supported lists, <http://httpd.apache.org/userslist.html>
  646. the Apache HTTP Server user's list or <http://www.openssl.org/support/> the
  647. OpenSSL support page.
  648. --------------------------------------------------------------------------------
  649. <<
  650. -copy "$(INSTDIR)\OPENSSL-README.txt" \
  651. + srclib\openssl\README "$(INSTDIR)\OPENSSL-README.txt"
  652. !ENDIF
  653. !IF EXIST("srclib\zlib")
  654. type << >> "$(INSTDIR)\NOTICE.txt"
  655. This binary distribution of mod_deflate.so includes zlib compression code
  656. <http://www.gzip.org/zlib/> written by Jean-loup Gailly (jloup@gzip.org)
  657. and Mark Adler (madler@alumni.caltech.edu) .
  658. <<
  659. -awk -f <<script.awk < "srclib\zlib\README" >> "$(INSTDIR)\LICENSE.txt"
  660. BEGIN {
  661. while ( getline > 0 ) {
  662. if ( $$0 ~ /Copyright notice:/ ) {
  663. print "";
  664. print "For the mod_deflate zlib compression component:";
  665. while ( getline > 0 && $$0 !~ /^[^ ]/ ) {
  666. print $$0;
  667. }
  668. exit 0;
  669. }
  670. }
  671. exit 1;
  672. }
  673. <<
  674. !ENDIF
  675. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=$(SHORT) LONG=$(LONG) \
  676. _copybin src_exe=exe src_dll=dll src_so=so \
  677. inst_exe="$(INSTDIR)\bin" \
  678. inst_dll="$(INSTDIR)\bin" \
  679. inst_so="$(INSTDIR)\modules"
  680. $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=$(SHORT) LONG=$(LONG) \
  681. _copybin src_exe=pdb src_dll=pdb src_so=pdb \
  682. inst_exe="$(INSTDIR)\bin" \
  683. inst_dll="$(INSTDIR)\bin" \
  684. inst_so="$(INSTDIR)\modules"
  685. cd srclib\apr-iconv
  686. $(MAKE) $(MAKEOPT) -f build\modules.mk.win install \
  687. BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=. \
  688. INSTALL_DIR="$(INSTDIR)\bin\iconv"
  689. cd ..\..
  690. copy docs\cgi-examples\printenv "$(INSTDIR)\cgi-bin\printenv.pl" <.y
  691. -awk -f <<script.awk "docs/cgi-examples/printenv" > "$(INSTDIR)\cgi-bin\printenv.pl"
  692. BEGIN {
  693. if ( "perl -e \"print $$^X;\"" | getline perlroot ) {
  694. gsub( /\\/, "/", perlroot );
  695. print "#!" perlroot;
  696. }
  697. }
  698. {
  699. if ( $$0 !~ /^#!/ ) {
  700. print $$0;
  701. }
  702. }
  703. <<
  704. xcopy docs\error "$(INSTDIR)\error" /s /d < .a
  705. xcopy docs\docroot "$(INSTDIR)\htdocs" /d < .a
  706. xcopy docs\icons "$(INSTDIR)\icons" /s /d < .a
  707. xcopy docs\manual "$(INSTDIR)\manual" /s /d < .a
  708. for %f in ( \
  709. srclib\apr-util\xml\expat\lib\expat.h \
  710. srclib\apr\include\*.h \
  711. srclib\apr-util\include\*.h \
  712. include\*.h \
  713. os\win32\os.h \
  714. server\mpm\winnt\mpm*.h \
  715. modules\aaa\mod_auth.h \
  716. modules\database\mod_dbd.h \
  717. modules\dav\main\mod_dav.h \
  718. modules\filters\mod_include.h \
  719. modules\generators\mod_cgi.h \
  720. modules\generators\mod_status.h \
  721. modules\loggers\mod_log_config.h \
  722. modules\http\mod_core.h \
  723. modules\proxy\mod_proxy.h \
  724. modules\ssl\mod_ssl.h ) do \
  725. @copy %f "$(INSTDIR)\include" < .y > nul
  726. copy srclib\apr\Lib$(SHORT)\apr-1.lib "$(INSTDIR)\lib" <.y
  727. copy srclib\apr\Lib$(SHORT)\apr-1.pdb "$(INSTDIR)\lib" <.y
  728. copy srclib\apr-util\Lib$(SHORT)\aprutil-1.lib "$(INSTDIR)\lib" <.y
  729. copy srclib\apr-util\Lib$(SHORT)\aprutil-1.pdb "$(INSTDIR)\lib" <.y
  730. copy srclib\apr-util\xml\expat\lib\Lib$(SHORT)\xml.lib "$(INSTDIR)\lib" <.y
  731. copy srclib\apr-util\xml\expat\lib\Lib$(SHORT)\xml.pdb "$(INSTDIR)\lib" <.y
  732. copy srclib\apr\$(LONG)\libapr-1.lib "$(INSTDIR)\lib" <.y
  733. copy srclib\apr\$(LONG)\libapr-1.exp "$(INSTDIR)\lib" <.y
  734. copy srclib\apr-iconv\$(LONG)\libapriconv-1.lib "$(INSTDIR)\lib" <.y
  735. copy srclib\apr-iconv\$(LONG)\libapriconv-1.exp "$(INSTDIR)\lib" <.y
  736. copy srclib\apr-util\$(LONG)\libaprutil-1.lib "$(INSTDIR)\lib" <.y
  737. copy srclib\apr-util\$(LONG)\libaprutil-1.exp "$(INSTDIR)\lib" <.y
  738. copy $(LONG)\libhttpd.exp "$(INSTDIR)\lib" <.y
  739. copy $(LONG)\libhttpd.lib "$(INSTDIR)\lib" <.y
  740. copy modules\dav\main\$(LONG)\mod_dav.exp "$(INSTDIR)\lib" <.y
  741. copy modules\dav\main\$(LONG)\mod_dav.lib "$(INSTDIR)\lib" <.y
  742. for %f in ( charset.conv magic mime.types ) do ( \
  743. copy docs\conf\%f "$(INSTDIR)\conf\original\%f" <.y )
  744. awk -f build\installwinconf.awk $(DOMAINNAME) $(SERVERNAME) \
  745. $(SERVERADMIN) $(PORT) $(SSLPORT) "$(INSTDIR) " docs/conf/
  746. copy "support\dbmmanage.in" "$(INSTDIR)\bin\dbmmanage.pl"
  747. -awk -f <<script.awk "support/dbmmanage.in" >"$(INSTDIR)\bin\dbmmanage.pl"
  748. { if ( $$0 ~ /^BEGIN \{ @AnyDBM_File::/ ) {
  749. sub( /ISA = qw\(.*\)/, "ISA = qw(SDBM_File)" );
  750. }
  751. if ( $$0 !~ /^#!@perlbin@/ )
  752. print $$0;
  753. }
  754. <<
  755. del .y
  756. del .a