home *** CD-ROM | disk | FTP | other *** search
- #-----------------------------------------------------------------------------
- #
- # LEARNING C++ (for Borland C++ 2.0)
- #
- # by Tom Swan
- #
- # MAKEC09 -- Make file for chapter 9
- #
- # To compile all programs, make sure C:\BC\BIN is in your
- # system path (replace C: with the drive letter where you
- # installed Borland C++.) Then enter
- #
- # MAKE -fMAKEC09
- #
- # Copyright (c) 1991 by Tom Swan. All rights reserved.
- #
- #-----------------------------------------------------------------------------
-
- # IMPORTANT:
- # If files DISP.H and DISP.OBJ are not stored in
- # \lcppb\lib, change the path in the following definition
- # to the location of the two files. Do not end the path
- # with a backslash.
-
- lib=\lcppb\lib
-
-
- # Library and include-file macros. If you change the library
- # file name, you'll have to change it in every MAKE file.
-
- library=$(lib)\lcpp.lib
- include=$(lib)
-
-
- # OPTION:
- # To examine programs with Turbo Debugger, remove the
- # leading # from the beginning of the following command. This
- # will increase disk consumption drastically, so you'll
- # normally leave the line as is.
-
- #debugging = 1
-
- # Note: If you change the debugging symbol, delete all .OBJ
- # and .EXE files before remaking.
-
-
- # These statements create appropriate macros based on the
- # setting of the debugging symbol above. The -v option adds
- # debugging information to compiled programs.
-
- !if $d(debugging)
- compile=bcc -c -v -I$(include) $(library)
- link=bcc -v -I$(include) $(library)
- !else
- compile=bcc -c -I$(include) $(library)
- link=bcc -I$(include) $(library)
- !endif
-
-
- # -- Force MAKE to recognize various dependencies
-
- depends: \
- arraylst.exe friend.exe friendfn.exe friendmf.exe mfnptr.exe \
- newops.exe overnew.exe pointin.exe pointout.exe strops.exe \
- strops2.exe thisis.exe trouble.exe mainbug.obj subbug.obj
-
-
- # -- Compile executable programs
-
- arraylst.exe: arraylst.cpp
- $(link) arraylst
-
- friend.exe: friend.cpp
- $(link) friend
-
- friendfn.exe: friendfn.cpp
- $(link) friendfn
-
- friendmf.exe: friendmf.cpp
- $(link) friendmf
-
- mfnptr.exe: mfnptr.cpp
- $(link) mfnptr
-
- newops.exe: newops.cpp
- $(link) newops
-
- overnew.exe: overnew.cpp
- $(link) overnew
-
- pointin.exe: pointin.cpp
- $(link) pointin
-
- pointout.exe: pointout.cpp
- $(link) pointout
-
- strops.exe: strops.cpp
- $(link) strops
-
- strops2.exe: strops2.cpp
- $(link) strops2
-
- thisis.exe: thisis.cpp
- $(link) thisis
-
- trouble.exe: trouble.cpp
- $(link) trouble
-
-
- # -- The following modules compile but do not link correctly,
- # demonstrating a benefit of typesafe linkage. This is
- # normal--it is not a bug. See pages 516-517 in Learning C++
- # for a complete explanation.
-
- mainbug.obj: mainbug.cpp
- $(compile) mainbug
-
- subbug.obj: subbug.cpp
- $(compile) subbug
-