home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / muglog.zip / NMAKE386.INC < prev   
Text File  |  1994-10-03  |  3KB  |  97 lines

  1. # ╔═══════════════════════════════════════════════════════════════════════╗
  2. # ║ NMAKE Common Definitions                                              ║
  3. # ╚═══════════════════════════════════════════════════════════════════════╝
  4.  
  5. # ┌───────────────────────────────────────────────────────────────────────┐
  6. # │ Pseudo targets                                                        │
  7. # └───────────────────────────────────────────────────────────────────────┘
  8. .SUFFIXES:
  9. .SUFFIXES: .rc .res .obj .c .hlp .ipf .lib .def .l .mak .msg .txt .cpp .rex .cmd
  10.  
  11. # ┌───────────────────────────────────────────────────────────────────────┐
  12. # │ Default compilation macros                                            │
  13. # └───────────────────────────────────────────────────────────────────────┘
  14.  
  15. CC      = ICC
  16. CCFLAGS = /Gm+ /G4 /Kb+ /Q+ /Tl90 /Weff-
  17. LFLAGS  = /BATCH
  18.  
  19. LINK    = link386
  20. LIBS    = os2386.lib
  21.  
  22. # Add the additional debugging parameters, if requested.
  23.  
  24. !if "$(DEBUG)" == "Y"
  25. LFLAGS  = $(LFLAGS) /DEBUG
  26. CCFLAGS = $(CCFLAGS) /Ti+ /Gh+ /Tm
  27. !else
  28. CCFLAGS = $(CCFLAGS) /O+
  29. !endif
  30.  
  31. # Add the flag for DLL construction
  32.  
  33. !if "$(DLL)" == "Y"
  34. CCFLAGS = $(CCFLAGS) /Ge-
  35. !endif
  36.  
  37. # Add the flags for 32 to 16 bit thunking for use with the OS/2 16-bit DBMgr
  38.  
  39. !if "$(DBM)" == "Y"
  40. CCFLAGS = $(CCFLAGS) /Sm /DES32TO16
  41. !endif
  42.  
  43. # Change the compile/link options for TCPIP use
  44.  
  45. !if "$(TCP)" == "Y"
  46. CCFLAGS = $(CCFLAGS) /Sp2 /Ss+
  47. LFLAGS  = $(LFLAGS) /NOI
  48. LIBS    = $(LIBS) TCP32DLL.LIB SO32DLL.LIB
  49. !endif
  50.  
  51. # Add REXX to the library list if requested
  52.  
  53. !if "$(REXX)" == "Y"
  54. LIBS    = $(LIBS) rexx.lib
  55. !endif
  56.  
  57. # ┌───────────────────────────────────────────────────────────────────────┐
  58. # │ Default Implicit macros                                               │
  59. # └───────────────────────────────────────────────────────────────────────┘
  60.  
  61. .txt.msg:
  62.    mkmsgf $*.txt $*.msg     >> $(SOURCEPATH)\$(BASE).tmp
  63.  
  64. .cpp.obj:
  65.     $(CC) /C $(CCFLAGS) -Fo$*.obj $*.cpp  >> $(SOURCEPATH)\$(BASE).tmp
  66.  
  67. .c.obj:
  68.     $(CC) /C $(CCFLAGS) -Fo$*.obj $*.c    >> $(SOURCEPATH)\$(BASE).tmp
  69.  
  70. .ipf.hlp:
  71.     ipfcprep $*.ipf  $*._pf      >> $(SOURCEPATH)\$(BASE).tmp
  72.     ipfc $(SOURCEPATH)\$*.ipf >> $(SOURCEPATH)\$(BASE).tmp
  73.  
  74. .ipf.inf:
  75.     ipfcprep $*.ipf  $*._pf           >> $(SOURCEPATH)\$(BASE).tmp
  76.     ipfc /INF $(SOURCEPATH)\$*._pf >> $(SOURCEPATH)\$(BASE).tmp
  77.  
  78. .rc.res:
  79.     rc -r $*.rc             >> $(SOURCEPATH)\$(BASE).tmp
  80.  
  81. .def.lib:
  82.   implib $*.lib $*.def      >> $(SOURCEPATH)\$(BASE).tmp
  83.  
  84. .res.exe:
  85.   rc $*.res                 >> $(SOURCEPATH)\$(BASE).tmp
  86.  
  87. .res.dll:
  88.   rc $*.res $*.dll          >> $(SOURCEPATH)\$(BASE).tmp
  89.  
  90. .rex.cmd:
  91.   preproc $*.rex $*.cmd
  92.  
  93.  
  94. # ┌───────────────────────────────────────────────────────────────────────┐
  95. # │ Default Pseudo targets                                                │
  96. # └───────────────────────────────────────────────────────────────────────┘
  97.