home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 20.ddi / DOC.PAK / COMPAT.TXT < prev    next >
Encoding:
Text File  |  1993-12-02  |  24.7 KB  |  795 lines

  1. Using the Paradox Engine And Database Frameworks with BC 4.0
  2. ============================================================
  3.  
  4. THE PARADOX ENGINE
  5.  
  6. There is only one significant detail regarding the use of the Paradox
  7. Engine 3.0x with Borland C++ 4.0.  The BC 3.1 versions of setjump and
  8. longjump will have to be linked into your application in order to create
  9. DOS Paradox Engine and Database Framework applications.  The object
  10. module, setjmp.obj, is provided in the BC4\LIB\COMPAT directory. Linking
  11. this module into your application will replace the BC 4.0 version of
  12. these functions.  To do this, simply add the file
  13. \BC4\LIB\COMPAT\SETJMP.OBJ to your project file or to the link command
  14. in your makefile.
  15.  
  16.  
  17. REBUILDING THE DATABASE FRAMEWORKS
  18.  
  19. Due to changes in the debug information format, symbol length, and
  20. runtime library, the Database Framework library must be recompiled with
  21. Borland C++ 4.0.
  22.  
  23. A number of changes will have to be made to the Paradox Engine DBF v3.01
  24. makefile in order for it to work with BC 4.0 (this makefile is available
  25. from our local BBS at (408) 431-5096 as the file TI1169.ZIP and from
  26. TechFax at (800) 822-4269, document number 1169):
  27.  
  28. 1. Copy makefile.bc to make40.mak
  29.  
  30. 2. Make certain that a turboc.cfg file exists in the BC4\BIN directory
  31.    containing:
  32.  
  33.       -Ic:\bc4\include
  34.       -Lc:\bc4\lib
  35.  
  36.    Make certain that a tlink.cfg file exist in the BC4\BIN directory
  37.    containing:
  38.  
  39.       -Lc:\bc4\lib
  40.  
  41.    Adjust the above paths to reflect your systems' configuration.
  42.  
  43. 3. Make the following changes:
  44.  
  45.    Line 83: Change the 'CCINCLUDE=' line to contain the path to the BC
  46.             4.0 include directory.
  47.    Line 168: Delete the blank space at the end of the 'DEBUGFLAG=v ' line
  48.    Line 172: Delete the blank space at the end of the 'DYNAMICFLAG=d ' line
  49.    Line 202: Add '-DWindows' after '-DWINDOWS'
  50.    Line 204: Add '-DWindows' after '-DWINDOWS'
  51.    Line 206: Add '-DWindows' after '-DWINDOWS'
  52.    Line 239: Replace '$D' with 'BuildDir'
  53.    Line 249: Replace '$D' with 'BuildDir'
  54.    Line 261: Replace '$D' with 'BuildDir'
  55.  
  56. Then use the following command to create a Database Framework Library.
  57. Add one or both of the options -DDBG and -DWINDOWS to add debug info or
  58. build for use in WINDOWS code. (Refer to the makefile for even more
  59. options.)
  60.  
  61.    make -fmake40.mak
  62.  
  63. For example, the following command will create a large model, static
  64. windows DBF library with debug info:
  65.  
  66.    make -DWINDOWS -DDBG -fmake40.mak
  67.  
  68. The libraries will be created in the PXENG30\C\LIB directory.  These
  69. libraries are now ready for use in your Database Frameworks Program.
  70.  
  71.  
  72. CHANGES TO USER CODE WITH RESPECT TO DBF
  73.  
  74. The only change to your source code involves the use of the 'new'
  75. operator. In BC++ 4.0, the new operator no longer returns NULL in case
  76. of failure, rather the xalloc exception is thrown.  To change this back
  77. so operator new returns NULL, call set_new_handler(0).
  78.  
  79. The only remaining issue is with using the new operator in the
  80. constructor of global objects.  How do you call set_new_handler(0)
  81. before a global object's constructor is called?  This is accomplished by
  82. using a #pragma startup function with a priority higher than that of the
  83. startup function used to call the particular global object's
  84. constructor.  The following code shows an example of changing the
  85. behavior of new:
  86.  
  87.    #include <new.h>
  88.  
  89.    void old_new(void)
  90.    {
  91.       set_new_handler(0);
  92.    }
  93.  
  94.    #pragma startup old_new 31
  95.  
  96.    BEngine eng(pxWin);
  97.  
  98.    int main (void)
  99.    {
  100.    .
  101.    .
  102.    .
  103.       return 0;
  104.    }
  105.  
  106. Note that creating global instances of Database Framework objects is not
  107. recommended because it can make error checking difficult.
  108.  
  109. The other option is to change the source of the Database Frameworks: Add
  110. the try {} catch(xalloc) clause everywhere that new is called.
  111.  
  112.  
  113.  
  114. Using Turbo Vision 1.0x with Borland C++ 4.0
  115. ============================================
  116.  
  117. REBUILDING THE TURBO VISION LIBRARY:
  118.  
  119. Due to changes in the debug information format, symbol length, and
  120. runtime library, the Turbo Vision library must be recompiled with
  121. Borland C++ 4.0.
  122.  
  123. There are a few minor changes that need to be made to the source code
  124. before recompiling it with the new compiler.  These are due to slightly
  125. tightened syntax restrictions.  The makefile will require some
  126. modification as well, which are shown below.
  127.  
  128. There are 3 steps to this process:
  129.  
  130.    1. Copy the old 3.1 Turbo Vision source into the new BC4 directory
  131.       structure.
  132.    2. Make the appropriate changes according to the instructions below.
  133.    3. Run MAKE to build the new Turbo Vision library you need to
  134.       continue your work.  If you are using Turbo Vision in an overlaid
  135.       application, make sure you follow the instructions specific to
  136.       overlays.
  137.  
  138. These steps are now presented in more detail:  Note that the Borland C++
  139. root directory is assumed to be \BC4.  Change this as necessary for your
  140. particular installation.  Also, if you are upgrading from Borland C++
  141. 2.0 and have the original version of Turbo Vision, some of the line
  142. numbers mentioned may not accurately reflect your version.
  143.  
  144. You need to copy your old Turbo Vision source and include files from
  145. Borland C++ 3.1 into your Borland C++ 4.0 directory hierarchy.  To do
  146. this, just run the following command:
  147.  
  148.    XCOPY \BC31\TVISION \BC4\TVISION /S
  149.  
  150. and when it asks you about creating a directory called TVISION, say yes.
  151. Modify the above paths according to your system configuration if
  152. necessary.  You are now ready to make the necessary modifications before
  153. rebuilding the library.
  154.  
  155. The changes are as follows:
  156.  
  157. 1. Due to tighter syntax checking, case blocks that declare initialized
  158.    local variables need their own scoping block.  Make the changes below
  159.    in the order shown so that confusion over the correct line numbers
  160.    can be avoided.  In general, the '{' follows a case statement, and
  161.    the '}' follows a break statement.
  162.  
  163.    COLORSEL.CPP
  164.  
  165.       Add after line 219:  }
  166.       Add after line 179:  {
  167.       Add after line 177:  }
  168.       Add after line 164:  {
  169.  
  170.    TBUTTON.CPP
  171.  
  172.       Add after line 226:  }
  173.       Add after line 211:  {
  174.       Add after line 209:  }
  175.       Add after line 192:  {
  176.  
  177. 2. TINPUTLIN.CPP
  178.    Replace line 44:  if( (p = strchr( s, '~' )) != 0 )
  179.    With              if( (p = (char*) strchr( s, '~' )) != 0)
  180.  
  181. 3. TMNUVIEW.CPP
  182.    Replace line 348:  char *loc = strchr( p->name, '~' );
  183.    With               char *loc = (char*)strchr( p->name, '~' );
  184.  
  185. 4. MAKEFILE
  186.    Replace line 100:
  187.       CFLAGS = -c $(CCOVYFLAGS) -P -O1 -m$(MODEL) -I$(INCLUDE) -n$(OBJDIR)
  188.    With
  189.       CFLAGS = -c -x- $(CCOVYFLAGS) -P -O1 -m$(MODEL) -I$(INCLUDE) -n$(OBJDIR)
  190.  
  191.    Replace line 73:
  192.       TLIB = $(BCROOT)\bin\tlib /0
  193.    With this group of 5 lines:
  194.       !ifdef DEBUG
  195.          TLIB = $(BCROOT)\bin\tlib
  196.       !else
  197.          TLIB = $(BCROOT)\bin\tlib /0
  198.       !endif
  199.  
  200.    *** If you did NOT purchase the Turbo Assembler add-on package for
  201.    Borland C++ 4.0, you must make some additional changes.
  202.  
  203.    Replace the group at lines 259-263:
  204.       !if $d(BC)
  205.          $(TASM) $&.asm, $(OBJDIR)\$&.obj
  206.       !else
  207.          copy $(TVLIBDIR)\$&.obj $(OBJDIR)
  208.       !endif
  209.    With this group:
  210.       !if !$d(NOTASM)
  211.          $(TASM) $&.asm, $(OBJDIR)\$&.obj
  212.       !else
  213.          copy $(LIBDIR)\COMPAT\$&.obj $(OBJDIR)
  214.       !endif
  215.  
  216.    Add after line 49:
  217.       NOTASM = 1
  218.  
  219.  
  220. USE OF EXCEPTION HANDLING WITH TURBO VISION:
  221.  
  222. Turbo Vision was designed with its own global new operator.  Due to this
  223. internal design you will not be able to use exception handling with the
  224. new operator. However, any other type of exception handling is
  225. supported. In order to enable exception handling do not make the change
  226. to line 88 of the makefile.
  227.  
  228.  
  229. USE OF OVERLAYS WITH TURBO VISION:
  230.  
  231. ** Note: All instructions in this section are in addition to the changes
  232. recommended above.
  233.  
  234. As with Borland C++ 3.1, Turbo Vision can be used in an overlayed program
  235. if the library is rebuild with certain options, shown below:
  236.  
  237.    All overlayed modules must be compiled with local virtual tables (-Vs).
  238.  
  239.    Overlayed modules no longer need to be compiled via assembler (-B).
  240.  
  241.    Overlayed modules must be compiled with exceptions disabled (-x-).
  242.  
  243. Here are the steps required to build an overlayable version of TV.LIB:
  244.  
  245. 1. First make an additional change to file TVISION\SOURCE\MAKEFILE:
  246.  
  247.    Change line 96 from : CCOVYFLAGS = -Y -Vs -B
  248.                     to : CCOVYFLAGS = -Y -Vs
  249.  
  250. 2. Change to the \BC4\TVISION\LIB directory and make a backup copy of
  251.    TV.LIB by typing:
  252.  
  253.    COPY TV.LIB OLDTV.LIB
  254.  
  255. 3. Switch to the \BC4\TVISION\SOURCE directory and type:
  256.  
  257.    MAKE -B -DOVERLAY
  258.  
  259. 4. This will create a new TV.LIB in the \BC4\TVISION\LIB directory.
  260.    There are seven modules in TV.LIB which cannot be overlayed.  The
  261.    easiest solution to this problem is to create three seperate
  262.    libraries.  Two libraries will be used when creating overlayed TV
  263.    apps, and the original TV.LIB will remain for use in non-overlayed TV
  264.    apps:
  265.  
  266.     TV.LIB   - full TV lib for use in non-overlayed TV apps
  267.     TVO.LIB  - overlayable modules of TV.LIB
  268.     TVNO.LIB - non-overlayable modules of TV.LIB
  269.  
  270.    To create these libraries, switch into the TVISION\LIB directory and
  271.    type the following commands:
  272.  
  273.     TLIB TV.LIB -*SYSERR -*TSCREEN -*DRIVERS -*DRIVERS2 -*SWAPST -*TEVENT -*SYSINT
  274.     TLIB TVNO.LIB +SYSERR +TSCREEN +DRIVERS +DRIVERS2 +SWAPST +TEVENT +SYSINT
  275.     RENAME TV.LIB TVO.LIB
  276.     RENAME TVOLD.LIB TV.LIB
  277.     DEL *.OBJ *.BAK
  278.  
  279. 5. You will now have the three libraries.  To create an overlayed Turbo
  280.    Vision application, include both TVO.LIB and TVNO.LIB in the project
  281.    file or link line of the makefile.  Using the local options for each
  282.    item, mark TVO.LIB as overlayed and TVNO.LIB as non-overlayed.  Also,
  283.    go to the TargetExpert dialog box for this target and uncheck the
  284.    Turbo Vision Library.
  285.  
  286.  
  287.  
  288. Using the Object Based Class Library with Borland C++ 4.0
  289. =========================================================
  290.  
  291. The object based class library, while still included with Borland C++
  292. 4.0, must be compiled before it can be used.  Here are instructions for
  293. doing so:
  294.  
  295. There is a makefile in the source directory, \BC4\SOURCE\CLASSLIB which
  296. can be used to build all versions of the class library.  For example, to
  297. build a large model static version for use with Object Windows, run the
  298. following command:
  299.  
  300.    MAKE -DDOS -DOBJECTS "-DBCC=bcc -x-" -DMODEL=l -DNAME=tclassl
  301.  
  302. To build a debugging dynamic version of the class library DLL, run the
  303. following command:
  304.  
  305.    MAKE -DDOS -DDBG -DOBJECTS "-DBCC=bcc -x-" -DDLL -DNAME=tclass
  306.  
  307. Note that to successfully use the DLL version of the class library you will
  308. have to copy TCLASS40.DLL from the \BC4\LIB directory into the \BC4\BIN
  309. directory.
  310.  
  311.  
  312.  
  313. Using OWL 1.0 with Borland C++ 4.0
  314. ==================================
  315.  
  316. REBUILDING THE OWL LIBRARY:
  317.  
  318. Due to changes in the debug information format, symbol length, and
  319. runtime library, the Object Windows library must be recompiled with
  320. Borland C++ 4.0.
  321.  
  322. Rebuilding Object Windows requires that you first rebuild the Object
  323. Based Class Library.  If you have not already done so, go to the section
  324. above marked "Using the Object Based Class Library with Borland C++ 4.0"
  325. and follow those directions before continuing here.
  326.  
  327. There are 4 steps to this process:
  328.  
  329.    1. Copy the old 3.1 OWL source into the new BC4 directory structure.
  330.    2. Extract the new makefile from the end of this file and save it.
  331.    3. Make a slight modification to OWLDLL.DEF.
  332.    4. Run MAKE to build the various OWL libraries you need to continue
  333.       your work.
  334.  
  335. These steps are now presented in more detail:  Note that the Borland C++
  336. root directory is assumed to be \BC4.  Change this as necessary for your
  337. particular installation.
  338.  
  339. First, go to the \BC4\SOURCE directory and create a new subdirectory
  340. called OWL1.  In OWL1, make three more subdirectories called SOURCE,
  341. LIB, and OBJECT.  In OBJECT, make directories called WS, WM, WL, and WD.
  342. Copy the entire contents of the \BC31\OWL\SOURCE directory from Borland
  343. C++ 3.1 into \BC4\SOURCE\OWL1\SOURCE.  The following batch text
  344. (modified to reflect your systems directory structure) will automate
  345. these tasks for you:
  346.  
  347.    CD \BC4\SOURCE
  348.    MKDIR OWL1
  349.    CD OWL1
  350.    MKDIR OBJECT
  351.    MKDIR SOURCE
  352.    CD OBJECT
  353.    MKDIR WS
  354.    MKDIR WM
  355.    MKDIR WL
  356.    MKDIR DL
  357.    CD ..\SOURCE
  358.    XCOPY \BC31\OWL\SOURCE .
  359.  
  360. You are now ready to make the necessary modifications before rebuilding
  361. the library.
  362.  
  363. The makefile for OWL 1.0 needed some changes to be suitable for use with
  364. Borland C++ 4.0.  Due to the number of changes, we have enclosed a new
  365. makefile and the end of this document.  Extract it using your favorite
  366. editor (e.g. the IDE) and save it in the OWL1\SOURCE directory as
  367. MAKEFILE.
  368.  
  369. There are now new names for the OWL 1.0 libraries to avoid conflicts
  370. with the OWL 2.0 libraries.  The new names are:
  371.  
  372.    OWL100WS.LIB   Small model
  373.    OWL100WM.LIB   Medium model
  374.    OWL100WL.LIB   Large model
  375.    OWL100I.LIB    Import library for DLL
  376.    OWL100.DLL     OWL 1.0 DLL
  377.  
  378. In order to properly rename the DLL, the file OWLDLL.DEF in the
  379. OWL1\SOURCE directory must be modified as well.  Change line 1 of this
  380. file from "LIBRARY OWL31" to "LIBRARY OWL100".
  381.  
  382. The Object Window's makefile can now be invoked via MAKE.EXE to rebuild
  383. the entire library.  For example, to rebuild the large model static
  384. library with no debug information, run MAKE with this option:
  385.  
  386.    MAKE -DMODEL=l
  387.  
  388. To build the dynamic library with full debug info, run MAKE as follows:
  389.  
  390.    MAKE -DDLL -DDEBUG
  391.  
  392. *** If you did not purchase the Turbo Assembler 4.0, you can only
  393. rebuild the large model static library or the dynamic library.  You must
  394. also define NOTASM when running MAKE.  The following command will build
  395. the large model static library.
  396.  
  397.    MAKE -DMODEL=l -DNOTASM
  398.  
  399.  
  400.  
  401. USING THE NEW OWL 1.0 LIBRARIES
  402.  
  403. To import your old OWL 1.0 projects into BC++ 4.0, only a few changes
  404. are needed.  First load the .PRJ file into the IDE via Project | Open
  405. Project. After the project file is loaded, perform the following
  406. changes:
  407.  
  408.    1. Using TargetExpert (see the local menu for the project file
  409.       target) uncheck OWL and the Class Library.  Also double check that
  410.       the target is Windows 16-bit, and that the memory model is
  411.       correct.
  412.  
  413.    2. If using the static versions of these libraries, add as
  414.       dependencies to the target node TCLASSx.LIB and OWL100Wx.LIB where
  415.       'x' is the letter of the memory model being used.
  416.  
  417.       If using the dynamic versions, add as dependencies to the target
  418.       node TCLASSI.LIB and OWL100I.LIB.
  419.  
  420.    3. Select the Project Notebook (via Options | Project).
  421.       Under Directories.  Set the Include path to:
  422.          \BC4\INCLUDE;\BC4\INCLUDE\CLASSLIB\OBSOLETE;\BC4\INCLUDE\OWLCVT
  423.       Set the Library path to:
  424.          \BC4\LIB
  425.       Under C++ Options | Exception Handling/RTTI turn off all checkboxes.
  426.  
  427.       If using the dynamic versions of these libraries, go to Options |
  428.       Project | Compiler | Defines and add the symbol _CLASSDLL.
  429.  
  430.    4. If you are using OWL.DEF from OWL 1.0, make sure you copy it from
  431.       the old OWL 1.0 LIB directory to a new area and modify the project
  432.       node for this item accordingly.
  433.  
  434. *** Note that just as in Borland C++ 3.1, if you are using the dynamic
  435. version of OWL, you must also use the dymamic version of the class
  436. library and of the runtime library.
  437.  
  438.  
  439.  
  440. TEXT FOR NEW OWL 1.0 MAKEFILE:
  441. ==============================
  442. # ObjectWindows - (C) Copyright 1992 by Borland International
  443.  
  444. .autodepend
  445. .swap
  446.  
  447. !if $d(DEBUG)
  448. DBG = -v
  449. !endif
  450.  
  451. VERSION = 100
  452.  
  453. !if !$d(MODEL)
  454. !if $d(DLL)
  455. MODEL = l
  456. !else
  457. MODEL = l
  458. !endif
  459. !endif
  460.  
  461. !if $d(DLL)
  462. WIN = -WDE -D_CLASSDLL
  463. D = d
  464. SWINDOBJNAME=swndobjd.obj
  465. OWLMATHNAME=owlmathd.obj
  466. VERSIONNAME=versiond.obj
  467. !else
  468. WIN = -WE
  469. D = w
  470. SWINDOBJNAME=swndobj$(MODEL).obj
  471. OWLMATHNAME=owlmath$(MODEL).obj
  472. VERSIONNAME=version$(MODEL).obj
  473. !endif
  474.  
  475. #
  476. # By default, build OWL with STRICT and WIN30 and WIN31 entry points.
  477. #
  478.  
  479. WINMODE = -DWIN30;WIN31;STRICT
  480.  
  481. !if $d(STRICT)
  482.  
  483. WINMODE = -DSTRICT
  484. !if $d(WIN31)
  485. WINMODE = -DWIN31 $(WINMODE)
  486. !endif
  487. !if $d(WIN30)
  488. WINMODE = -DWIN30 $(WINMODE)
  489. !endif
  490.  
  491. !else # !STRICT
  492.  
  493. !if $d(WIN31)
  494. WINMODE = -DWIN31
  495. !if $d(WIN30)
  496. WINMODE = -DWIN30 $(WINMODE)
  497. !endif
  498.  
  499. !else # !WIN31 && !STRICT
  500.  
  501. !if $d(WIN30)
  502. WINMODE = -DWIN30
  503. !endif
  504.  
  505. !endif # !WIN31
  506. !endif # !STRICT
  507.  
  508.  
  509. !if !$d(BCROOT)
  510. BCROOT=..\..\..
  511. !endif
  512.  
  513. !if !$d(OWLROOT)
  514. OWLROOT=$(BCROOT)\source\owl1
  515. !endif
  516.  
  517. !if !$d(CLASSDIR)
  518. CLASSDIR = $(BCROOT)\source\classlib\obsolete
  519. !endif
  520.  
  521. KEY = $(D)$(MODEL)
  522. OBJDIR = ..\object\$(KEY)
  523.  
  524. .path.obj = $(OBJDIR)
  525.  
  526. !if $d(DEBUG)
  527. TLIB = $(BCROOT)\bin\tlib /P128
  528. !else
  529. TLIB = $(BCROOT)\bin\tlib /0
  530. !endif
  531.  
  532. CC = $(BCROOT)\bin\bcc
  533. TLINK = $(BCROOT)\bin\tlink
  534. ASM = $(BCROOT)\bin\tasmx
  535.  
  536. INCLUDE = $(BCROOT)\include\owlcvt;$(BCROOT)\include\classlib\obsolete;$(BCROOT)\include
  537. LIBDIR = $(BCROOT)\lib
  538.  
  539. !if $d(DLL)
  540. CFLAGS = -c -x- -RT- -v -vi $(WINMODE);BUILD_OWL $(WIN) -m$(MODEL) -n$(OBJDIR) -2
  541. !else
  542. CFLAGS = -c -x- -RT- $(DBG) $(WINMODE);BUILD_OWL $(WIN) -m$(MODEL) -n$(OBJDIR) -2
  543. !endif
  544.  
  545. ASMFLAGS = /o /D__LARGE__ /D__CDECL__ /e /ml
  546.  
  547. BCC = $(CC)
  548. !if $d(DLL)
  549. TBCC = $(CC) -TD_CLASSDLL
  550. !else
  551. TBCC = $(CC)
  552. !endif
  553.  
  554. #used for linking DLL
  555. LFLAGS = /v /Twd /n /x /c /C
  556. BCLIBDIR = $(BCROOT)\lib
  557. DCLASSLIB = $(BCLIBDIR)\tclassi.lib
  558. STDLIBS = $(BCLIBDIR)\import $(BCLIBDIR)\crtldll $(BCLIBDIR)\cwl
  559.  
  560. OBJS = \
  561.    module.obj     \
  562.    applicat.obj   \
  563.    window.obj     \
  564.    owl.obj        \
  565.    dialog.obj     \
  566.    scroller.obj   \
  567.    control.obj    \
  568.    button.obj     \
  569.    checkbox.obj   \
  570.    static.obj     \
  571.    edit.obj       \
  572.    groupbox.obj   \
  573.    radiobut.obj   \
  574.    listbox.obj    \
  575.    combobox.obj   \
  576.    scrollba.obj   \
  577.    mdiframe.obj   \
  578.    mdiclien.obj   \
  579.    inputdia.obj   \
  580.    filedial.obj   \
  581.    editwnd.obj    \
  582.    filewnd.obj    \
  583.    bbutton.obj    \
  584.    bchkbox.obj    \
  585.    bradio.obj     \
  586.    bdivider.obj   \
  587.    bgrpbox.obj    \
  588.    bstatic.obj    \
  589.    bstatbmp.obj   \
  590.    bwindow.obj    \
  591.    safepool.obj   \
  592.    objstrm.obj    \
  593.    tcollect.obj   \
  594.    tsortcol.obj   \
  595.    appdict.obj    \
  596.    windobj.obj    \
  597.    version.obj    \
  598.    owlmath.obj    \
  599.    swindobj.obj
  600.  
  601. .cpp.obj:
  602.     $(BCC) {$. }
  603.  
  604. .c.obj:
  605.     $(BCC) {$. }
  606.  
  607. .asm.obj:
  608.     $(TBCC) $.
  609.  
  610. !if $d(DLL)
  611. all: config $(LIBDIR)\owl.lib
  612. !else
  613. all: config $(LIBDIR)\owl$(VERSION)$(KEY).lib
  614. !endif
  615.  
  616. config: makefile
  617.    echo -I$(INCLUDE) > turboc.cfg
  618.    echo $(CFLAGS) >> turboc.cfg
  619.  
  620. swindobj.obj: swindobj.cpp
  621. !if !$d(NOTASM)
  622.    $(CC) $(CFLAGS) -S swindobj.cpp
  623.    $(ASM) $(ASMFLAGS) $(OBJDIR)\swindobj.asm,$(OBJDIR)\swindobj.obj
  624. !else
  625.     copy $(BCROOT)\LIB\COMPAT\$(SWINDOBJNAME) $(OBJDIR)\swindobj.obj
  626. !endif
  627.  
  628. owlmath.obj: owlmath.cpp
  629. !if !$d(NOTASM)
  630.    $(CC) $(CFLAGS) -S owlmath.cpp
  631.    $(ASM) $(ASMFLAGS) $(OBJDIR)\owlmath.asm,$(OBJDIR)\owlmath.obj
  632. !else
  633.    copy $(BCROOT)\LIB\COMPAT\$(OWLMATHNAME) $(OBJDIR)\owlmath.obj
  634. !endif
  635.  
  636. version.obj:
  637.    copy $(BCROOT)\LIB\COMPAT\$(VERSIONNAME) $(OBJDIR)\version.obj
  638.  
  639. tcollect.obj: tcollect.cpp
  640.    $(BCC) -RT- $?
  641.  
  642. tsortcol.obj: tsortcol.cpp
  643.    $(BCC) -RT- $?
  644.  
  645. $(LIBDIR)\owl.lib: $(OBJS) $(DCLASSLIB)
  646.    $(TLINK) $(LFLAGS) @&&!
  647. $(BCLIBDIR)\c0$(KEY) +
  648. $(OBJDIR)\windobj    +
  649. $(OBJDIR)\swindobj   +
  650. $(OBJDIR)\applicat   +
  651. $(OBJDIR)\window     +
  652. $(OBJDIR)\owl        +
  653. $(OBJDIR)\dialog     +
  654. $(OBJDIR)\scroller   +
  655. $(OBJDIR)\owlmath    +
  656. $(OBJDIR)\inputdia   +
  657. $(OBJDIR)\filedial   +
  658. $(OBJDIR)\control    +
  659. $(OBJDIR)\button     +
  660. $(OBJDIR)\checkbox   +
  661. $(OBJDIR)\static     +
  662. $(OBJDIR)\edit       +
  663. $(OBJDIR)\radiobut   +
  664. $(OBJDIR)\groupbox   +
  665. $(OBJDIR)\listbox    +
  666. $(OBJDIR)\combobox   +
  667. $(OBJDIR)\mdiframe   +
  668. $(OBJDIR)\mdiclien   +
  669. $(OBJDIR)\scrollba   +
  670. $(OBJDIR)\editwnd    +
  671. $(OBJDIR)\filewnd    +
  672. $(OBJDIR)\module     +
  673. $(OBJDIR)\bbutton    +
  674. $(OBJDIR)\bchkbox    +
  675. $(OBJDIR)\bradio     +
  676. $(OBJDIR)\bdivider   +
  677. $(OBJDIR)\bgrpbox    +
  678. $(OBJDIR)\bstatic    +
  679. $(OBJDIR)\bstatbmp   +
  680. $(OBJDIR)\bwindow    +
  681. $(OBJDIR)\safepool   +
  682. $(OBJDIR)\objstrm    +
  683. $(OBJDIR)\tcollect   +
  684. $(OBJDIR)\tsortcol   +
  685. $(OBJDIR)\appdict    +
  686. $(OBJDIR)\version
  687. ! $(LIBDIR)\owl$(VERSION).dll,, @&&!
  688. /v- $(DCLASSLIB) $(STDLIBS)
  689. !,owldll.def
  690.    implib $(LIBDIR)\owl$(VERSION)i.lib $(LIBDIR)\owl$(VERSION).dll
  691.    copy $(LIBDIR)\owl$(VERSION).dll $(BCROOT)\bin
  692.    tdstrip -s $(BCROOT)\bin\owl$(VERSION).dll
  693.    del $(LIBDIR)\owl$(VERSION).dll
  694.  
  695. $(LIBDIR)\owl$(VERSION)$(KEY).lib: $(OBJS)
  696.    del $(LIBDIR)\owl$(VERSION)$(KEY).lib
  697.    $(TLIB) $(LIBDIR)\owl$(VERSION)$(KEY).lib @&&!
  698. +$(OBJDIR)\windobj   &
  699. +$(OBJDIR)\swindobj  &
  700. +$(OBJDIR)\window    &
  701. +$(OBJDIR)\applicat  &
  702. +$(OBJDIR)\owl       &
  703. +$(OBJDIR)\dialog    &
  704. +$(OBJDIR)\scroller  &
  705. +$(OBJDIR)\owlmath   &
  706. +$(OBJDIR)\inputdia  &
  707. +$(OBJDIR)\filedial  &
  708. +$(OBJDIR)\control   &
  709. +$(OBJDIR)\button    &
  710. +$(OBJDIR)\checkbox  &
  711. +$(OBJDIR)\static    &
  712. +$(OBJDIR)\edit      &
  713. +$(OBJDIR)\radiobut  &
  714. +$(OBJDIR)\groupbox  &
  715. +$(OBJDIR)\listbox   &
  716. +$(OBJDIR)\combobox  &
  717. +$(OBJDIR)\mdiframe  &
  718. +$(OBJDIR)\mdiclien  &
  719. +$(OBJDIR)\scrollba  &
  720. +$(OBJDIR)\editwnd   &
  721. +$(OBJDIR)\filewnd   &
  722. +$(OBJDIR)\module    &
  723. +$(OBJDIR)\bbutton   &
  724. +$(OBJDIR)\bchkbox   &
  725. +$(OBJDIR)\bradio    &
  726. +$(OBJDIR)\bdivider  &
  727. +$(OBJDIR)\bgrpbox   &
  728. +$(OBJDIR)\bstatic   &
  729. +$(OBJDIR)\bstatbmp  &
  730. +$(OBJDIR)\bwindow   &
  731. +$(OBJDIR)\safepool  &
  732. +$(OBJDIR)\objstrm   &
  733. +$(OBJDIR)\tcollect  &
  734. +$(OBJDIR)\tsortcol  &
  735. +$(OBJDIR)\appdict   &
  736. +$(OBJDIR)\version
  737. !
  738.  
  739. clean:
  740.    @echo Removing .OBJ's and .ASM's from $(OBJDIR)
  741.    @if exist .\version.cpp  \
  742.       if exist $(OBJDIR)\version.obj  del $(OBJDIR)\version.obj
  743. !if !$d(NOTASM)
  744.    @if exist .\owlmath.cpp  \
  745.       if exist $(OBJDIR)\owlmath.obj  del $(OBJDIR)\owlmath.obj
  746.    @if exist .\swindobj.cpp \
  747.       if exist $(OBJDIR)\swindobj.obj del $(OBJDIR)\swindobj.obj
  748.    @if exist $(OBJDIR)\swindobj.asm   del $(OBJDIR)\swindobj.asm
  749. !endif
  750.    @if exist $(OBJDIR)\module.obj     del $(OBJDIR)\module.obj
  751.    @if exist $(OBJDIR)\applicat.obj   del $(OBJDIR)\applicat.obj
  752.    @if exist $(OBJDIR)\window.obj     del $(OBJDIR)\window.obj
  753.    @if exist $(OBJDIR)\owl.obj        del $(OBJDIR)\owl.obj
  754.    @if exist $(OBJDIR)\dialog.obj     del $(OBJDIR)\dialog.obj
  755.    @if exist $(OBJDIR)\scroller.obj   del $(OBJDIR)\scroller.obj
  756.    @if exist $(OBJDIR)\control.obj    del $(OBJDIR)\control.obj
  757.    @if exist $(OBJDIR)\button.obj     del $(OBJDIR)\button.obj
  758.    @if exist $(OBJDIR)\checkbox.obj   del $(OBJDIR)\checkbox.obj
  759.    @if exist $(OBJDIR)\static.obj     del $(OBJDIR)\static.obj
  760.    @if exist $(OBJDIR)\edit.obj       del $(OBJDIR)\edit.obj
  761.    @if exist $(OBJDIR)\groupbox.obj   del $(OBJDIR)\groupbox.obj
  762.    @if exist $(OBJDIR)\radiobut.obj   del $(OBJDIR)\radiobut.obj
  763.    @if exist $(OBJDIR)\listbox.obj    del $(OBJDIR)\listbox.obj
  764.    @if exist $(OBJDIR)\combobox.obj   del $(OBJDIR)\combobox.obj
  765.    @if exist $(OBJDIR)\scrollba.obj   del $(OBJDIR)\scrollba.obj
  766.    @if exist $(OBJDIR)\mdiframe.obj   del $(OBJDIR)\mdiframe.obj
  767.    @if exist $(OBJDIR)\mdiclien.obj   del $(OBJDIR)\mdiclien.obj
  768.    @if exist $(OBJDIR)\inputdia.obj   del $(OBJDIR)\inputdia.obj
  769.    @if exist $(OBJDIR)\filedial.obj   del $(OBJDIR)\filedial.obj
  770.    @if exist $(OBJDIR)\editwnd.obj    del $(OBJDIR)\editwnd.obj
  771.    @if exist $(OBJDIR)\filewnd.obj    del $(OBJDIR)\filewnd.obj
  772.    @if exist $(OBJDIR)\bbutton.obj    del $(OBJDIR)\bbutton.obj
  773.    @if exist $(OBJDIR)\bchkbox.obj    del $(OBJDIR)\bchkbox.obj
  774.    @if exist $(OBJDIR)\bradio.obj     del $(OBJDIR)\bradio.obj
  775.    @if exist $(OBJDIR)\bdivider.obj   del $(OBJDIR)\bdivider.obj
  776.    @if exist $(OBJDIR)\bgrpbox.obj    del $(OBJDIR)\bgrpbox.obj
  777.    @if exist $(OBJDIR)\bstatic.obj    del $(OBJDIR)\bstatic.obj
  778.    @if exist $(OBJDIR)\bstatbmp.obj   del $(OBJDIR)\bstatbmp.obj
  779.    @if exist $(OBJDIR)\bwindow.obj    del $(OBJDIR)\bwindow.obj
  780.    @if exist $(OBJDIR)\safepool.obj   del $(OBJDIR)\safepool.obj
  781.    @if exist $(OBJDIR)\objstrm.obj    del $(OBJDIR)\objstrm.obj
  782.    @if exist $(OBJDIR)\tcollect.obj   del $(OBJDIR)\tcollect.obj
  783.    @if exist $(OBJDIR)\tsortcol.obj   del $(OBJDIR)\tsortcol.obj
  784.    @if exist $(OBJDIR)\appdict.obj    del $(OBJDIR)\appdict.obj
  785.    @if exist $(OBJDIR)\windobj.obj    del $(OBJDIR)\windobj.obj
  786.    @if exist $(OBJDIR)\bwindow.obj    del $(OBJDIR)\bwindow.obj
  787.    @if exist $(OBJDIR)\safepool.obj   del $(OBJDIR)\safepool.obj
  788.    @if exist $(OBJDIR)\objstrm.obj    del $(OBJDIR)\objstrm.obj
  789.    @if exist $(OBJDIR)\tcollect.obj   del $(OBJDIR)\tcollect.obj
  790.    @if exist $(OBJDIR)\tsortcol.obj   del $(OBJDIR)\tsortcol.obj
  791.    @if exist $(OBJDIR)\appdict.obj    del $(OBJDIR)\appdict.obj
  792.    @if exist $(OBJDIR)\windobj.obj    del $(OBJDIR)\windobj.obj
  793.  
  794. # End of MAKEFILE for OWL 1.0
  795.