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

  1. .autodepend
  2. .swap
  3.  
  4. # (C) Copyright 1996 by Borland International
  5. #
  6. # Inventory 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     = idapi32.lib import32.lib ctl3d32.lib cw32.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- -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.    inv_main.obj\
  68.    inv_data.obj\
  69.    inv_util.obj\
  70.    engine.obj\
  71.    macro.obj\
  72.    inventry.res
  73.  
  74.  
  75. # Implicit Rules
  76. .c.obj:
  77.     $(CC) @$(RSPFILE) $<
  78.  
  79. {.}.rc.res:
  80.     $(BRC) $(RCOPT) -FO$@ $.
  81.  
  82. # Explicit rules
  83.  
  84. all: bcc32.rsp inventry.exe
  85.  
  86. bcc32.rsp: makefile
  87.     echo $(BCCOPT) >bcc32.rsp
  88. #    del *.OBJ
  89. #    del *.RES
  90. #    del *.CSM
  91.  
  92.  
  93. inventry.exe: bcc32.rsp $(DEPEND32)
  94.   $(TLINK)   @&&|
  95.  /v $(TLINKOPT) +
  96. $(C0OBJ)+
  97. inv_main.obj+
  98. inv_data.obj+
  99. inv_util.obj+
  100. engine.obj+
  101. macro.obj
  102. $<,$*
  103. $(LIBS)
  104. inventry.def
  105. inventry.res
  106. |
  107.     $(BRC) inventry.res $<
  108.  
  109. clean:
  110.     del *.obj
  111.     del *.res
  112.     del *.csm
  113.     del *.exe
  114.     del *.map
  115.     del *.rsp
  116.