home *** CD-ROM | disk | FTP | other *** search
- .autodepend
- .swap
-
- # (C) Copyright 1996 by Borland International
- #
- # Query32 MAKEFILE for Borland C++ v5.x.
- #
- # Use 'make -DBCROOT=<compiler root directory>' to specify
- # where the compiler resides if it is not in the default
- # c:\bc5 directory.
- #
- # Set -DINCLUDE and -DLIB to specify the compiler include
- # and lib directories.
- #
- # Set -DIDAPIINC and -DIDAPILIB 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 = \bc5
- !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, and libraries
- CC = bcc32
- TLINK = tlink32
- BRC = brc32
- C0OBJ = c0w32.obj
- LIBS = idapi32.lib import32.lib ctl3d32.lib cw32.lib
-
- # Set the full INCLUDE and LIB search paths
- INCLUDE = $(IDAPIINC);$(INCLUDE)
- LIB = $(IDAPILIB);$(LIB)
-
- # Set the Compiler, Linker, and Resource Compiler Options
- BCCOPT = -w -d -c -WE -R -v -vi -X- -H=query32.csm -D_RTLDLL;STRICT;
- BCCWARNS = -w-eff -w-aus -w-stu -w-par -w-sig
- TLINKOPT = -L$(LIB) -Tpe -aa -c -s
- RCOPT = -I$(INCLUDE) -31 -w32 -r
- RSPFILE = BCC32.RSP
-
- # Dependency List
- DEPEND32 = \
- engine.obj\
- query.obj\
- display.obj\
- macro.obj\
- qry_data.obj\
- query.res
-
- # Implicit Rules
- .c.obj:
- $(CC) @$(RSPFILE) @&&|
- | -I$(INCLUDE) $<
-
- {.}.rc.res:
- $(BRC) $(RCOPT) -FO$@ $.
-
- # Explicit rules
-
- all: bcc32.rsp query32.exe
-
- bcc32.rsp: makefile
- echo $(BCCOPT) >bcc32.rsp
- echo $(BCCWARNS) >>bcc32.rsp
-
- query32.exe: bcc32.rsp $(DEPEND32)
- $(TLINK) @&&|
- /v $(TLINKOPT) +
- $(C0OBJ)+
- engine.obj+
- query.obj+
- display.obj+
- macro.obj+
- qry_data.obj
- $<,$*
- $(LIBS)
- query.def
- query.res
- |
- $(BRC) query.res $<
-
- clean:
- del *.obj
- del *.res
- del *.csm
- del *.exe
- del *.map
- del *.rsp
-