home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / 32ADDRES.PAK / MAKEFILE < prev   
Encoding:
Text File  |  1997-05-06  |  2.3 KB  |  120 lines

  1. .autodepend
  2. .swap
  3.  
  4. # (C) Copyright 1996 by Borland International
  5. #
  6. # Address MAKEFILE for Borland C++ v5.x.
  7. #
  8. #     Use 'make -DBCROOT=<compiler root directory>' to specify
  9. #       where the compiler resides if it is not in the default
  10. #       c:\bc5 directory.
  11. #
  12. #     Set -DINCLUDE and -DLIB to specify the compiler include
  13. #       and lib directories.
  14. #
  15. #     Set -DIDAPIINC and -DIDAPILIB to the IDAPI INCLUDE and
  16. #       IDAPI LIB directories if you did not install to the
  17. #       default directory structure.
  18. #
  19. #
  20.  
  21. # Set the IDAPI INCLUDE and LIB directory
  22. !ifndef IDAPIINC
  23. IDAPIINC = ..\..\..\include
  24. !endif
  25.  
  26. !ifndef IDAPILIB
  27. IDAPILIB = ..\..\..\lib
  28. !endif
  29.  
  30. # BCROOT is only used if either the INCLUDE or LIB
  31. # environment variable is not used.
  32. !ifndef BCROOT
  33. BCROOT = \bc5
  34. !endif
  35.  
  36. # Check if the INCLUDE environment variable exists
  37. # If not, set it
  38. !ifndef INCLUDE
  39. INCLUDE = $(BCROOT)\include
  40. !endif
  41.  
  42. # Check if the LIB environment variable exists
  43. # If not, set it
  44. !ifndef LIB
  45. LIB = $(BCROOT)\lib
  46. !endif
  47.  
  48. # Set the compiler, linker, and Resource Compiler, and libraries
  49. CC       = bcc32
  50. TLINK    = tlink32
  51. BRC      = brcc32
  52. C0OBJ    = c0w32.obj
  53. LIBS     = import32.lib ctl3d32.lib cw32.lib idapi32.lib
  54.  
  55. # Set the full INCLUDE and LIB search paths
  56. INCLUDE = $(IDAPIINC);$(INCLUDE)
  57. LIB     = $(IDAPILIB);$(LIB)
  58.  
  59. # Set the Compiler, Linker, and Resource Compiler Options
  60. BCCOPT   = -I$(INCLUDE) -w -d -c -WE -R -v -vi -X- -H=address.csm -D_RTLDLL;STRICT;
  61. TLINKOPT = -L$(LIB) -Tpe -aa -c -s
  62. RCOPT    = -I$(INCLUDE)
  63. RSPFILE  = BCC32.RSP
  64.  
  65. # Dependency List
  66. DEPEND32 = \
  67.    adr_data.obj\
  68.    adr_dlgs.obj\
  69.    adr_main.obj\
  70.    adr_util.obj\
  71.    adrcmdlg.obj\
  72.    engine.obj\
  73.    macro.obj\
  74.    address.res
  75.  
  76.  
  77. # Implicit Rules
  78. .c.obj:
  79.     $(CC) @$(RSPFILE) $<
  80.  
  81. {.}.rc.res:
  82.     $(BRC) $(RCOPT) -FO$@ $.
  83.  
  84. # Explicit rules
  85.  
  86. all: bcc32.rsp address.exe
  87.  
  88. bcc32.rsp: makefile
  89.     echo $(BCCOPT) >bcc32.rsp
  90. #    del *.OBJ
  91. #    del *.RES
  92. #    del *.CSM
  93.  
  94.  
  95. address.exe: bcc32.rsp $(DEPEND32)
  96.   $(TLINK)   @&&|
  97.  /v $(TLINKOPT) +
  98. $(C0OBJ)+
  99. adr_data.obj+
  100. adr_dlgs.obj+
  101. adr_main.obj+
  102. adr_util.obj+
  103. adrcmdlg.obj+
  104. engine.obj+
  105. macro.obj
  106. $<,$*
  107. $(LIBS)
  108. address.def
  109. address.res
  110. |
  111.     $(BRC) address.res $<
  112.  
  113. clean:
  114.     del *.obj
  115.     del *.res
  116.     del *.csm
  117.     del *.exe
  118.     del *.map
  119.     del *.rsp
  120.