home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # Copyright (c) 1997 by Cayenne Software Inc.
- #
- # This software is furnished under a license and may be used only in
- # accordance with the terms of such license and with the inclusion of
- # the above copyright notice. This software or any other copies thereof
- # may not be provided or otherwise made available to any other person.
- # No title to and ownership of the software is hereby transferred.
- #
- # The information in this software is subject to change without notice
- # and should not be construed as a commitment by Cayenne Software Inc.
- #
- #---------------------------------------------------------------------------
- #
- # File : @(#)mkmkinc.tcl /main/titanic/4 26 Jun 1997
- # Description : Make template compiler include
- #
- #---------------------------------------------------------------------------
- #
-
- proc getIncludePrefix {} {
- return "-I"
- }
-
- proc getLibraryPrefix {} {
- return ""
- }
- proc getLinkCommand {} {
- return "\$(LD) @\&\&!\n\t\$(LDFLAGS) \$(~\[mm_obj_name]) ~\[mm_dependencies library .\$LIB_EXT] \$(LIBS)\n!\n"
- }
-
- proc getArCommand {} {
- return "rmf \$@\n\t\&\$(AR) \$@ + \$**\n"
- }
-
- proc compilerMakefileTemplate {suffixSect libSect inclSect defineSect ruleSect dependSect} {
- set cppSuf [fstorage::getFsExtension "c++"]
-
- $suffixSect append " .obj .$cppSuf"
-
- $defineSect append "DEBUGFLAGS = -Od\n"
- $defineSect append "AR = tlib\n"
- $defineSect append "CXX = bcc32\n"
- $defineSect append "CXXFLAGS = -P$cppSuf -DWIN32 \$(DEBUGFLAGS) \$(INCS)\n"
- $defineSect append "LD = \$(CXX)\n"
- $defineSect append "LDFLAGS = -e$@\n"
-
- $ruleSect append ".$cppSuf.obj:\n"
- $ruleSect append "\t\$(CXX) @\&\&!\n\t-c \$(CXXFLAGS) \$<\n!\n"
-
- $dependSect append "clean_depend:\n"
- $dependSect append "depend:\n"
- }
-