home *** CD-ROM | disk | FTP | other *** search
- .autodepend
- .swap
-
- # (C) Copyright 1994 by Borland International
- #
- # Query MAKEFILE for Borland C++ v3.1 and v4.0.
- #
- # Use 'make -DBCROOT=<compiler root directory>' to specify
- # where the compiler resides.
- # Can also set the environment variables 'INCLUDE' and 'LIB'
- # to specify the compiler include and lib directories.
- #
- # Set 'IDAPIINC' and 'IDAPILIB' to the IDAPI INCLUDE and
- # IDAPI LIB directories if you did not install to the
- # default directory structure.
- #
-
- # Set the IDAPI INCLUDE and LIB directory
- !ifndef IDAPIINC
- IDAPIINC = ..\..\include
- !endif
-
- !ifndef IDAPILIB
- IDAPILIB = ..\..\lib
- !endif
-
- # BCROOT is only used if either the INCLUDE or LIB
- # environment variable is not used.
- !ifndef BCROOT
- BCROOT = c:\bc4
- !endif
-
- # Check if the INCLUDE environment variable exists
- # If not, set it
- !ifndef INCLUDE
- INCLUDE = $(BCROOT)\include
- !endif
-
- # Check if the LIB environment variable exists
- # If not, set it
- !ifndef LIB
- LIB = $(BCROOT)\lib
- !endif
-
- # Set the compiler, linker, and Resource Compiler
- CC = bcc
- TLINK = tlink
- BRC = brc
-
- # Set the full INCLUDE and LIB search paths
- INCLUDE = $(IDAPIINC);$(INCLUDE)
- LIB = $(IDAPILIB);$(LIB)
-
- # Set the Compiler, Linker, and Resource Compiler Options
- BCCOPT = -d -c -ml -WS -R -v -vi -X- -H=query.csm -DSTRICT;
- TLINKOPT = -L$(LIB) -Twe -c -C -s
- RCOPT = -I$(INCLUDE) -31
-
- # Dependnecy List
- DEPENDENCIES = \
- engine.obj\
- query.obj\
- display.obj\
- macro.obj\
- qry_data.obj\
- query.res
-
- # Implicit Rules
- .c.obj:
- $(CC) -I$(INCLUDE) $<
-
- .rc.res:
- $(BRC) -r -31 -i$(INCLUDE) $.
-
- # Explicit rules
-
- # Call other explicit rules
- all: turboc.cfg query.exe
-
- # Create the configuration file if it does not exist
- turboc.cfg: makefile
- echo $(BCCOPT) >turboc.cfg
- del *.obj
- del *.res
-
- query.exe: turboc.cfg $(DEPENDENCIES)
- $(TLINK) @&&|
- /v $(TLINKOPT) +
- c0wl.obj+
- engine.obj+
- query.obj+
- display.obj+
- qry_data.obj+
- macro.obj
- $<,$*
- ctl3dv2.lib+
- idapi.lib+
- import.lib+
- mathwl.lib+
- cwl.lib
- query.def
- query.res
- |
- $(BRC) query.res $<
-
- clean:
- del *.obj
- del *.exe
- del *.res
- del *.map
- del *.csm
- del turboc.cfg
-