home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / distrib / msw / tmake / b32.t next >
Text File  |  2002-10-23  |  24KB  |  797 lines

  1. #!#############################################################################
  2. #! File:    b32.t
  3. #! Purpose: tmake template file from which makefile.b32 is generated by running
  4. #!          tmake -t b32 wxwin.pro
  5. #! Author:  Vadim Zeitlin
  6. #! Created: 14.07.99
  7. #! Version: $Id: b32.t,v 1.38.2.2 2002/10/23 12:51:37 JS Exp $
  8. #!#############################################################################
  9.  
  10. #${
  11.     #! include the code which parses filelist.txt file and initializes
  12.     #! %wxCommon, %wxGeneric and %wxMSW hashes.
  13.     IncludeTemplate("filelist.t");
  14.  
  15.     #! now transform these hashes into $project tags
  16.     foreach $file (sort keys %wxUNIV) {
  17.         next if $wxUNIV{$file} =~ /\T\b/;
  18.  
  19.         $file =~ s/cp?p?$/obj/;
  20.         $obj = "\$(UNIVDIR)\\" . $file . " ";
  21.         $project{"WXUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " "
  22.     }
  23.  
  24.     foreach $file (sort keys %wxUNIV) {
  25.         next unless $wxUNIV{$file} =~ /\T\b/;
  26.  
  27.         $file =~ s/cp?p?$/obj/;
  28.         $obj = "\$(UNIVTHEMEDIR)\\" . $file . " ";
  29.         $project{"WXUNIVTHEMEOBJS"} .= "\$(MSWDIR)\\" . $file . " "
  30.     }
  31.  
  32.     foreach $file (sort keys %wxHTML) {
  33.         next if $wxHTML{$file} =~ /\b16\b/;
  34.  
  35.         $file =~ s/cp?p?$/obj/;
  36.         $project{"WXHTMLOBJS"} .= "\$(MSWDIR)\\" . $file . " "
  37.     }
  38.  
  39.     foreach $file (sort keys %wxCommon) {
  40.         next if $wxCommon{$file} =~ /\b(16|U)\b/;
  41.  
  42.         $isCFile = $file =~ /\.c$/;
  43.         $file =~ s/cp?p?$/obj/;
  44.         $obj = "\$(MSWDIR)\\" . $file . " ";
  45.         $project{"WXCOMMONOBJS"} .= $obj;
  46.         $project{"WXCOBJS"} .= $obj if $isCFile;
  47.     }
  48.  
  49. #! MSW dir for native port
  50.     foreach $file (sort keys %wxMSW) {
  51.         next if $wxMSW{$file} =~ /\b16\b/;
  52.  
  53. #!        if ( $file =~ /^automtn/ ) {
  54. #!            #! comment in old makefile.b32 seems to imply that this file can not
  55. #!            #! be compiled with Borland (leads to crash in oleauto sample)
  56. #!            No longer true, at least for BC++ 5.2
  57. #!            next;
  58. #!        }
  59.  
  60.         $isCFile = $file =~ /\.c$/;
  61.  
  62.         my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
  63.         $file =~ s/cp?p?$/obj/;
  64.         my $obj = "\$(MSWDIR)\\" . $file . " ";
  65.  
  66.         $project{"WXMSWOBJS"} .= $obj;
  67.         if ( $isOleObj ) {
  68.             #! remember that this file is in ole subdir
  69.             $project{"WXOLEOBJS"} .= $obj;
  70.         }
  71.         $project{"WXCOBJS"} .= $obj if $isCFile;
  72.     }
  73.  
  74. #! Now do MSW dir for UNIV
  75.     foreach $file (sort keys %wxMSW) {
  76.         next unless $wxMSW{$file} =~ /\b(L|B)\b/;
  77.  
  78. #!        if ( $file =~ /^automtn/ ) {
  79. #!            #! comment in old makefile.b32 seems to imply that this file can not
  80. #!            #! be compiled with Borland (leads to crash in oleauto sample)
  81. #!            No longer true, at least for BC++ 5.2
  82. #!            next;
  83. #!        }
  84.  
  85.         $isCFile = $file =~ /\.c$/;
  86.  
  87.         my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
  88.         $file =~ s/cp?p?$/obj/;
  89.         my $obj = "\$(MSWDIR)\\" . $file . " ";
  90.  
  91.         $project{"WXMSWUNIVOBJS"} .= $obj;
  92.         if ( $isOleObj ) {
  93.             #! remember that this file is in ole subdir
  94.             $project{"WXOLEUNIVOBJS"} .= $obj;
  95.         }
  96.         $project{"WXCUNIVOBJS"} .= $obj if $isCFile;
  97.     }
  98.  
  99. #! Generic Dir for Native Port
  100.     foreach $file (sort keys %wxGeneric) {
  101.         my $tag = "";
  102.         next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
  103.  
  104.         $file =~ s/cp?p?$/obj/;
  105.         $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " "
  106.     }
  107.  
  108. #! Generic Dir for UNIV Port
  109.     foreach $file (sort keys %wxGeneric) {
  110.     my $filereal = $file;
  111.     if ( $file =~ /^([^.]+)g.cpp$/ ) {
  112.         $filereal = "$1.cpp";
  113.     }
  114.         $file =~ s/cp?p?$/obj/;
  115.         $filereal =~ s/cp?p?$/obj/;
  116.  
  117.     next if $project{"WXMSWUNIVOBJS"} =~ /\b$filereal\b/ ||
  118.         $project{"WXUNIVOBJS"} =~ /\b$filereal\b/;
  119.  
  120.         
  121.         $project{"WXGENERICUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " "
  122.     }
  123.  
  124. #$}
  125.  
  126. # This file was automatically generated by tmake
  127. # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
  128.  
  129. #
  130. # File:     makefile.b32
  131. # Author:   Julian Smart
  132. # Created:  1998
  133. # Updated:
  134. # Copyright:
  135. #
  136. # "%W% %G%"
  137. #
  138. # Makefile : Builds wxWindows library wx.lib for MS Windows,
  139. # and Borland C++ (32-bit).
  140.  
  141. # BCCDIR now defined in ../makeb32.env
  142.  
  143. !if "$(WXWIN)" == ""
  144. !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
  145. !endif
  146.  
  147. WXDIR = $(WXWIN)
  148. THISDIR = $(WXDIR)\src\msw
  149.  
  150.  
  151. # Set all these to 1 if you want to build a dynamic library
  152. !if "$(DLL)" == "1"
  153. WXMAKINGDLL=1
  154. WXBUILDDLL=1
  155. !endif
  156.  
  157. !include $(WXDIR)\src\makeb32.env
  158.  
  159. # Please set these according to the settings in wx_setup.h, so we can include
  160. # the appropriate libraries in wx.lib
  161. USE_CTL3D=0
  162.  
  163. PERIPH_LIBS=
  164. PERIPH_TARGET=
  165. PERIPH_CLEAN_TARGET=
  166.  
  167. !if "$(USE_CTL3D)" == "1"
  168. #Use WIN32S/WIN95 32 bit version ctl3d32.dll under win95 (Andre Beltman)
  169. PERIPH_LIBS=$(WXDIR)\lib\ctl3d32.lib $(PERIPH_LIBS)
  170. PERIPH_TARGET=ctl3d $(PERIPH_TARGET)
  171. PERIPH_CLEAN_TARGET=clean_ctl3d $(PERIPH_CLEAN_TARGET)
  172. !endif
  173.  
  174. #PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\tiff.lib $(PERIPH_LIBS)
  175. PERIPH_LIBS=
  176. PERIPH_TARGET=zlib png jpeg tiff regex $(PERIPH_TARGET)
  177. PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff clean_regex $(PERIPH_CLEAN_TARGET)
  178.  
  179. !if "$(DLL)" == "0"
  180. DUMMY=dummy
  181. !else
  182. DUMMY=dummydll
  183. LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex
  184. !endif
  185.  
  186. LIBTARGET=$(WXLIB)
  187.  
  188. GENDIR=..\generic
  189. COMMDIR=..\common
  190. HTMLDIR=..\html
  191. OLEDIR=.\ole
  192. UNIVDIR=..\univ
  193. UNIVTHEMEDIR=..\univ\themes
  194. MSWDIR=.
  195.  
  196. DOCDIR = $(WXDIR)\docs
  197.  
  198. GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
  199.  
  200. MSWOBJS = #$ ExpandList("WXMSWOBJS");
  201.  
  202. GENERICUNIVOBJS= #$ ExpandList("WXGENERICUNIVOBJS");
  203.  
  204. MSWUNIVOBJS = #$ ExpandList("WXMSWUNIVOBJS");
  205.  
  206. UNIVOBJS = #$ ExpandList("WXUNIVOBJS");
  207.  
  208. UNIVTHEMEOBJS = #$ ExpandList("WXUNIVTHEMEOBJS");
  209.  
  210. HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
  211.  
  212. COMMONOBJS = \
  213.         $(MSWDIR)\y_tab.obj \
  214.         #$ ExpandList("WXCOMMONOBJS");
  215.  
  216. !if "$(WXUSINGUNIV)" == "1"
  217. OBJECTS = $(COMMONOBJS) $(GENERICUNIVOBJS) $(MSWUNIVOBJS) $(HTMLOBJS) $(UNIVOBJS) $(UNIVTHEMEOBJS)
  218. !else
  219. OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
  220. !endif
  221.  
  222. default:    wx
  223.  
  224. wx:    $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
  225.  
  226. all:    wx
  227.  
  228. # Copy the in-CVS setup0.h to setup.h if necessary
  229. makesetuph:
  230.      cd $(WXDIR)\include\wx\msw
  231.      if not exist setup.h copy setup0.h setup.h
  232.      cd $(WXDIR)\src\msw
  233.  
  234. # Copy include\wx\msw\setup.h to the architecture-specific location
  235. makearchsetuph:
  236.      copy $(SETUPSRCDIR)\setup.h $(ARCHSETUPH)
  237.      cd $(WXDIR)\src\msw
  238.  
  239. $(ARCHINCDIR)\wx:
  240.     -mkdir $(ARCHINCDIR)
  241.     -mkdir $(ARCHINCDIR)\wx
  242.     -erase $(CFG)
  243.  
  244. !if "$(DLL)" == "0"
  245.  
  246. $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
  247.         -erase $(LIBTARGET)
  248.     tlib "$(LIBTARGET)" /P1024 $(LINKDEBUGFLAGS) @&&!
  249. +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
  250. !
  251.  
  252. !else
  253.  
  254. $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
  255.     -erase $(LIBTARGET)
  256.     -erase $(WXDLL)
  257.         $(LINK) $(LINK_FLAGS) $(LINKDEBUGFLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk @&&!
  258. c0d32.obj $(OBJECTS)
  259. $(WXDLL)
  260. nul
  261. $(PERIPH_LIBS) $(LIBS)
  262. wxb32
  263. !
  264.         implib -c $(LIBTARGET) $(WXDLL)
  265. !endif
  266.  
  267. dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
  268. dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
  269.  
  270. version.res:
  271.     brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
  272.  
  273. $(MSWDIR)\y_tab.obj:     $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
  274.  
  275. #        cl @<<
  276. # $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
  277. # <<
  278.  
  279. $(COMMDIR)\y_tab.c:     $(COMMDIR)\dosyacc.c
  280.         copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
  281.  
  282. $(COMMDIR)\lex_yy.c:    $(COMMDIR)\doslex.c
  283.     copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
  284.  
  285. # $(OBJECTS):   $(WXDIR)\include\wx\setup.h
  286.  
  287. !if "$(WXUSINGUNIV)" == "1"
  288. ########################################################
  289. # MSW objects (compile Native or UNIV) - UNIV
  290.  
  291. #${
  292.     $_ = $project{"WXMSWUNIVOBJS"};
  293.     my @objs = split;
  294.     foreach (@objs) {
  295.         $text .= $_ . ": ";
  296.         if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
  297.         $suffix = $project{"WXCUNIVOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
  298.         s/obj$/$suffix/;
  299.         $text .= $_ . "\n\n";
  300.     }
  301. #$}
  302.  
  303.  
  304. !else
  305. ########################################################
  306. # MSW objects (compile Native or UNIV) - Native
  307.  
  308. #${
  309.     $_ = $project{"WXMSWOBJS"};
  310.     my @objs = split;
  311.     foreach (@objs) {
  312.         $text .= $_ . ": ";
  313.         if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
  314.         $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
  315.         s/obj$/$suffix/;
  316.         $text .= $_ . "\n\n";
  317.     }
  318. #$}
  319. !endif
  320.  
  321. !if "$(WXUSINGUNIV)" == "1"
  322. ########################################################
  323. # UNIV objects 
  324. #${
  325.     $_ = $project{"WXUNIVOBJS"};
  326.     my @objs = split;
  327.     foreach (@objs) {
  328.         $text .= $_ . ": ";
  329.         s/MSWDIR/UNIVDIR/;
  330.         s/obj$/\$(SRCSUFF)/;
  331.         $text .= $_ . "\n\n";
  332.     }
  333. #$}
  334.  
  335.  
  336. ########################################################
  337. # UNIV THEME objects 
  338.  
  339. #${
  340.     $_ = $project{"WXUNIVTHEMEOBJS"};
  341.     my @objs = split;
  342.     foreach (@objs) {
  343.         $text .= $_ . ": ";
  344.         s/MSWDIR/UNIVTHEMEDIR/;
  345.         s/obj$/\$(SRCSUFF)/;
  346.         $text .= $_ . "\n\n";
  347.     }
  348. #$}
  349.  
  350. !endif
  351.  
  352. ########################################################
  353. # Common objects (always compiled)
  354.  
  355. #${
  356.     $_ = $project{"WXCOMMONOBJS"};
  357.     my @objs = split;
  358.     foreach (@objs) {
  359.         $text .= $_ . ": ";
  360.         $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
  361.         s/MSWDIR/COMMDIR/;
  362.         s/obj$/$suffix/;
  363.         $text .= $_ . "\n\n";
  364.     }
  365. #$}
  366.  
  367. !if "$(WXUSINGUNIV)" == "1"
  368. ########################################################
  369. # Generic objects (not always compiled, depending on
  370. # whether platforms have native implementations)
  371. # Native
  372.  
  373.  
  374. #${
  375.     $_ = $project{"WXGENERICUNIVOBJS"};
  376.     my @objs = split;
  377.     foreach (@objs) {
  378.         $text .= $_ . ": ";
  379.         s/MSWDIR/GENDIR/;
  380.         s/obj$/\$(SRCSUFF)/;
  381.         $text .= $_ . "\n\n";
  382.     }
  383. #$}
  384.  
  385. !else
  386. ########################################################
  387. # Generic objects (not always compiled, depending on
  388. # whether platforms have native implementations)
  389. # Native
  390.  
  391. #${
  392.     $_ = $project{"WXGENERICOBJS"};
  393.     my @objs = split;
  394.     foreach (@objs) {
  395.         $text .= $_ . ": ";
  396.         s/MSWDIR/GENDIR/;
  397.         s/obj$/\$(SRCSUFF)/;
  398.         $text .= $_ . "\n\n";
  399.     }
  400. #$}
  401. !endif
  402.  
  403. ########################################################
  404. # HTML objects (always compiled)
  405.  
  406. #${
  407.     $_ = $project{"WXHTMLOBJS"};
  408.     my @objs = split;
  409.     foreach (@objs) {
  410.         $text .= $_ . ": ";
  411.         s/MSWDIR/HTMLDIR/;
  412.         s/obj$/\$(SRCSUFF)/;
  413.         $text .= $_ . "\n\n";
  414.     }
  415. #$}
  416.  
  417.  
  418. all_utils:
  419.     cd $(WXDIR)\utils
  420.     ${MAKE} -f makefile.b32
  421.     cd $(WXDIR)\src\msw
  422.  
  423. all_samples:
  424.     cd $(WXDIR)\samples
  425.     ${MAKE} -f makefile.b32
  426.     cd $(WXDIR)\src\msw
  427.  
  428. all_execs:
  429.     cd $(WXDIR)\utils
  430.     ${MAKE} -f makefile.b32 all_execs
  431.     cd $(WXDIR)\src\msw
  432.  
  433. png:    $(CFG)
  434.         cd $(WXDIR)\src\png
  435.         ${MAKE} -f makefile.b32 FINAL=$(FINAL)
  436.         cd $(WXDIR)\src\msw
  437.  
  438. clean_png:
  439.         cd $(WXDIR)\src\png
  440.         ${MAKE} -f makefile.b32 clean
  441.         cd $(WXDIR)\src\msw
  442.  
  443. zlib:   $(CFG)
  444.         cd $(WXDIR)\src\zlib
  445.         ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
  446.         cd $(WXDIR)\src\msw
  447.  
  448. clean_zlib:
  449.         cd $(WXDIR)\src\zlib
  450.         ${MAKE} -f makefile.b32 clean
  451.         cd $(WXDIR)\src\msw
  452.  
  453. jpeg:    $(CFG)
  454.         cd $(WXDIR)\src\jpeg
  455.         ${MAKE} -f makefile.b32 FINAL=$(FINAL)
  456.         cd $(WXDIR)\src\msw
  457.  
  458. clean_jpeg:
  459.         cd $(WXDIR)\src\jpeg
  460.         ${MAKE} -f makefile.b32 clean
  461.         cd $(WXDIR)\src\msw
  462.  
  463. regex:   $(CFG)
  464.         cd $(WXDIR)\src\regex
  465.         ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
  466.         cd $(WXDIR)\src\msw
  467.  
  468. clean_regex:
  469.         cd $(WXDIR)\src\regex
  470.         ${MAKE} -f makefile.b32 clean
  471.         cd $(WXDIR)\src\msw
  472.  
  473. tiff:   $(CFG)
  474.         cd $(WXDIR)\src\tiff
  475.         ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
  476.         cd $(WXDIR)\src\msw
  477.  
  478. clean_tiff:
  479.         cd $(WXDIR)\src\tiff
  480.         ${MAKE} -f makefile.b32 clean
  481.         cd $(WXDIR)\src\msw
  482.  
  483. $(CFG): makefile.b32
  484.     copy &&!
  485. -Hc
  486. -H=$(WXDIR)\src\msw\wx32.csm
  487. -3
  488. -d
  489. -a1 # byte alignment
  490. -R-
  491. -X
  492. -w-par
  493. -w-aus
  494. -w-hid # virtual function A hides virtual function B
  495. -tWM
  496.  
  497. -I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
  498. -I$(WXDIR)\include\wx\msw\gnuwin32
  499.  
  500. -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
  501. -D__WXWIN__
  502. -D$(PORT)
  503. -D__WINDOWS__
  504. -DWIN32
  505. $(OPT)
  506. $(DEBUG_FLAGS)
  507. $(WIN95FLAG)
  508. ! $(CFG)
  509.  
  510. clean: $(PERIPH_CLEAN_TARGET)
  511.     -erase $(WXLIBDIR)\wx.tds
  512.     -erase $(WXLIBDIR)\wx.il?
  513.     -erase *.obj
  514.     -erase *.pch
  515.     -erase *.csm
  516.     -erase "wx32.#??"
  517.     -erase ..\common\y_tab.c
  518.     -erase ..\common\lex_yy.c
  519.  
  520. cleanall: clean
  521.  
  522.  
  523. # Making documents
  524. docs:   allhlp allhtml allpdfrtf
  525. alldocs: docs
  526. hlp:    wxhlp portinghlp
  527. wxhlp:  $(DOCDIR)/winhelp/wx.hlp
  528. prophlp: $(DOCDIR)/winhelp/prop.hlp
  529. refhlp: $(DOCDIR)/winhelp/techref.hlp
  530. rtf:    $(DOCDIR)/winhelp/wx.rtf
  531. proprtf: $(DOCDIR)/winhelp/prop.rtf
  532. pdfrtf:    $(DOCDIR)/pdf/wx.rtf
  533. proppdfrtf: $(DOCDIR)/pdf/prop.rtf
  534. refpdfrtf: $(DOCDIR)/pdf/techref.rtf
  535. html:   wxhtml portinghtml
  536. wxhtml: $(DOCDIR)\html\wx\wx.htm
  537. htmlhelp: $(DOCDIR)\html\wx\wx.chm
  538. prophtml: $(DOCDIR)\html\proplist\prop.htm
  539. ps:     wxps referencps
  540. wxps:   $(WXDIR)\docs\ps\wx.ps
  541. propps: $(WXDIR)\docs\ps\prop.ps
  542. referencps: $(WXDIR)\docs\ps\referenc.ps
  543.  
  544. portinghtml: $(DOCDIR)\html\porting\port.htm
  545. portingrtf: $(DOCDIR)/winhelp/porting.rtf
  546. portinghlp: $(DOCDIR)/winhelp/porting.hlp
  547. portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
  548. portingps:  $(WXDIR)\docs\ps\porting.ps
  549.  
  550. allhlp: wxhlp portinghlp prophlp
  551.         cd $(WXDIR)\utils\dialoged\src
  552.         ${MAKE} -f makefile.b32 hlp
  553.         cd $(THISDIR)
  554.  
  555. #        cd $(WXDIR)\utils\wxhelp\src
  556. #        ${MAKE} -f makefile.b32 hlp
  557. #        cd $(WXDIR)\utils\tex2rtf\src
  558. #        ${MAKE} -f makefile.b32 hlp
  559. #        cd $(WXDIR)\utils\wxgraph\src
  560. #        ${MAKE} -f makefile.b32 hlp
  561. #        cd $(WXDIR)\utils\wxchart\src
  562. #        ${MAKE} -f makefile.b32 hlp
  563. #        cd $(WXDIR)\utils\wxtree\src
  564. #        ${MAKE} -f makefile.b32 hlp
  565. #        cd $(WXDIR)\utils\wxbuild\src
  566. #        ${MAKE} -f makefile.b32 hlp
  567. #        cd $(WXDIR)\utils\wxgrid\src
  568. #        ${MAKE} -f makefile.b32 hlp
  569.  
  570. allhtml: wxhtml portinghtml prophtml
  571.         cd $(WXDIR)\utils\dialoged\src
  572.         ${MAKE} -f makefile.b32 html
  573.         cd $(THISDIR)
  574.  
  575. #        ${MAKE} -f makefile.b32 html
  576. #        cd $(WXDIR)\utils\dialoged\src
  577. #        ${MAKE} -f makefile.b32 html
  578. #        cd $(WXDIR)\utils\hytext\src
  579. #        ${MAKE} -f makefile.b32 html
  580. #        cd $(WXDIR)\utils\wxhelp\src
  581. #        ${MAKE} -f makefile.b32 html
  582. #        cd $(WXDIR)\utils\tex2rtf\src
  583. #        ${MAKE} -f makefile.b32 html
  584. #        cd $(WXDIR)\utils\wxgraph\src
  585. #        ${MAKE} -f makefile.b32 html
  586. #        cd $(WXDIR)\utils\wxchart\src
  587. #        ${MAKE} -f makefile.b32 html
  588. #        cd $(WXDIR)\utils\wxtree\src
  589. #        ${MAKE} -f makefile.b32 html
  590.  
  591. allps: wxps referencps portingps propps
  592.         cd $(WXDIR)\utils\dialoged\src
  593.         ${MAKE} -f makefile.b32 ps
  594.         cd $(THISDIR)
  595.  
  596. allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
  597.         cd $(WXDIR)\utils\dialoged\src
  598.         ${MAKE} -f makefile.b32 pdfrtf
  599.         cd $(THISDIR)
  600.  
  601. #        cd $(WXDIR)\utils\wxhelp\src
  602. #        ${MAKE} -f makefile.b32 ps
  603. #        cd $(WXDIR)\utils\tex2rtf\src
  604. #        ${MAKE} -f makefile.b32 ps
  605. #        cd $(WXDIR)\utils\wxgraph\src
  606. #        ${MAKE} -f makefile.b32 ps
  607. #        cd $(WXDIR)\utils\wxchart\src
  608. #        ${MAKE} -f makefile.b32 ps
  609. #        cd $(WXDIR)\utils\wxtree\src
  610. #        ${MAKE} -f makefile.b32 ps
  611. #        cd $(THISDIR)
  612.  
  613. $(DOCDIR)/winhelp/wx.hlp:         $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
  614.         cd $(DOCDIR)/latex/wx
  615.         -erase wx.ph
  616.         hc wx
  617.         move wx.hlp $(DOCDIR)\winhelp\wx.hlp
  618.         move wx.cnt $(DOCDIR)\winhelp\wx.cnt
  619.         cd $(THISDIR)
  620.  
  621. $(DOCDIR)/winhelp/porting.hlp:         $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
  622.         cd $(DOCDIR)/latex/porting
  623.         -erase porting.ph
  624.         hc porting
  625.         move porting.hlp $(DOCDIR)\winhelp\porting.hlp
  626.         move porting.cnt $(DOCDIR)\winhelp\porting.cnt
  627.         cd $(THISDIR)
  628.  
  629. $(DOCDIR)/winhelp/prop.hlp:         $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
  630.         cd $(DOCDIR)/latex/proplist
  631.         -erase prop.ph
  632.         hc prop
  633.         move prop.hlp $(DOCDIR)\winhelp\prop.hlp
  634.         move prop.cnt $(DOCDIR)\winhelp\prop.cnt
  635.         cd $(THISDIR)
  636.  
  637. $(DOCDIR)/winhelp/techref.hlp:         $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
  638.         cd $(DOCDIR)/latex/techref
  639.         -erase techref.ph
  640.         hc techref
  641.         move techref.hlp $(DOCDIR)\winhelp\techref.hlp
  642.         move techref.cnt $(DOCDIR)\winhelp\techref.cnt
  643.         cd $(THISDIR)
  644.  
  645. $(DOCDIR)/latex/wx/wx.rtf:         $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
  646.         cd $(DOCDIR)\latex\wx
  647.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
  648.         cd $(THISDIR)
  649.  
  650. $(DOCDIR)/latex/porting/porting.rtf:         $(DOCDIR)/latex/porting/porting.tex
  651.         cd $(DOCDIR)\latex\porting
  652.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
  653.         cd $(THISDIR)
  654.  
  655. $(DOCDIR)/latex/proplist/prop.rtf:         $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
  656.         cd $(DOCDIR)\latex\proplist
  657.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
  658.         cd $(THISDIR)
  659.  
  660. $(DOCDIR)/latex/techref/techref.rtf:         $(DOCDIR)/latex/techref/techref.tex
  661.         cd $(DOCDIR)\latex\techref
  662.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
  663.         cd $(THISDIR)
  664.  
  665. $(DOCDIR)/pdf/wx.rtf:         $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
  666.         cd $(DOCDIR)\latex\wx
  667.         -copy *.wmf $(DOCDIR)\pdf
  668.         -copy *.bmp $(DOCDIR)\pdf
  669.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
  670.         cd $(THISDIR)
  671.  
  672. $(DOCDIR)/pdf/porting.rtf:         $(DOCDIR)/latex/porting/porting.tex
  673.         cd $(DOCDIR)\latex\porting
  674.         -copy *.wmf $(DOCDIR)\pdf
  675.         -copy *.bmp $(DOCDIR)\pdf
  676.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
  677.         cd $(THISDIR)
  678.  
  679. $(DOCDIR)/pdf/prop.rtf:         $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
  680.         cd $(DOCDIR)\latex\proplist
  681.         -copy *.wmf $(DOCDIR)\pdf
  682.         -copy *.bmp $(DOCDIR)\pdf
  683.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
  684.         cd $(THISDIR)
  685.  
  686. $(DOCDIR)/pdf/techref.rtf:         $(DOCDIR)/latex/techref/techref.tex
  687.         cd $(DOCDIR)\latex\techref
  688.         -copy *.wmf $(DOCDIR)\pdf
  689.         -copy *.bmp $(DOCDIR)\pdf
  690.         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
  691.         cd $(THISDIR)
  692.  
  693. $(DOCDIR)\html\wx\wx.htm:         $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex
  694.         cd $(DOCDIR)\latex\wx
  695.         -mkdir $(DOCDIR)\html\wx
  696.         -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
  697.         -erase $(DOCDIR)\html\wx\*.con
  698.         -erase $(DOCDIR)\html\wx\*.ref
  699.         -erase $(DOCDIR)\latex\wx\*.con
  700.         -erase $(DOCDIR)\latex\wx\*.ref
  701.          cd $(THISDIR)
  702.  
  703. $(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
  704.     cd $(DOCDIR)\html\wx
  705.     -hhc wx.hhp
  706.     cd $(THISDIR)
  707.  
  708.  
  709. $(DOCDIR)\html\porting\port.htm:         $(DOCDIR)\latex\porting\porting.tex
  710.         cd $(DOCDIR)\latex\porting
  711.         -mkdir $(DOCDIR)\html\porting
  712.         -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
  713.         -erase $(DOCDIR)\html\porting\*.con
  714.         -erase $(DOCDIR)\html\porting\*.ref
  715.         -erase $(DOCDIR)\latex\porting\*.con
  716.         -erase $(DOCDIR)\latex\porting\*.ref
  717.         cd $(THISDIR)
  718.  
  719. $(DOCDIR)\html\proplist\prop.htm:         $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex
  720.         cd $(DOCDIR)\latex\proplist
  721.         -mkdir $(DOCDIR)\html\proplist
  722.         -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
  723.         -erase $(DOCDIR)\html\proplist\*.con
  724.         -erase $(DOCDIR)\html\proplist\*.ref
  725.         -erase $(DOCDIR)\latex\proplist\*.con
  726.         -erase $(DOCDIR)\latex\proplist\*.ref
  727.         cd $(THISDIR)
  728.  
  729. $(WXDIR)\docs\latex\wx\manual.dvi:  $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
  730.     cd $(WXDIR)\docs\latex\wx
  731.         -latex manual
  732.         -latex manual
  733.         -makeindx manual
  734.         -bibtex manual
  735.         -latex manual
  736.         -latex manual
  737.         cd $(THISDIR)
  738.  
  739. $(WXDIR)\docs\latex\porting\porting.dvi:    $(DOCDIR)/latex/porting/porting.tex
  740.     cd $(WXDIR)\docs\latex\porting
  741.         -latex porting
  742.         -latex porting
  743.         -makeindx porting
  744.         -bibtex porting
  745.         -latex porting
  746.         -latex porting
  747.         cd $(THISDIR)
  748.  
  749. $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
  750.     cd $(WXDIR)\docs\latex\wx
  751.         -dvips32 -o wx.ps manual
  752.         move wx.ps $(WXDIR)\docs\ps\wx.ps
  753.         cd $(THISDIR)
  754.  
  755. $(WXDIR)\docs\ps\porting.ps:    $(WXDIR)\docs\latex\porting\porting.dvi
  756.     cd $(WXDIR)\docs\latex\porting
  757.         -dvips32 -o porting.ps porting
  758.         move porting.ps $(WXDIR)\docs\ps\porting.ps
  759.         cd $(THISDIR)
  760.  
  761. $(WXDIR)\docs\latex\wx\referenc.dvi:    $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
  762.     cd $(WXDIR)\docs\latex\wx
  763.         -latex referenc
  764.         -latex referenc
  765.         -makeindx referenc
  766.         -bibtex referenc
  767.         -latex referenc
  768.         -latex referenc
  769.         cd $(THISDIR)
  770.  
  771. $(WXDIR)\docs\ps\referenc.ps:   $(WXDIR)\docs\latex\wx\referenc.dvi
  772.     cd $(WXDIR)\docs\latex\wx
  773.         -dvips32 -o referenc.ps referenc
  774.         move referenc.ps $(WXDIR)\docs\ps\referenc.ps
  775.         cd $(THISDIR)
  776.  
  777. # In order to force document reprocessing
  778. touchmanual:
  779.     -touch $(WXDIR)\docs\latex\wx\manual.tex
  780.  
  781. updatedocs: touchmanual alldocs
  782.  
  783. # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
  784. # Office StartUp folder, and PDFMaker should be installed.
  785. updatepdf:  # touchmanual pdfrtf
  786.     start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
  787.  
  788.  
  789. MFTYPE=b32
  790. # Can't use this or we'll have to distribute all tmake files with wxWindows
  791. # makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
  792.  
  793. self:
  794.     cd $(WXWIN)\distrib\msw\tmake
  795.     tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
  796.     copy makefile.$(MFTYPE) $(WXWIN)\src\msw
  797.