home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / BLACKHOL.ZIP / MAKEDEFS.INC < prev    next >
Text File  |  1992-11-09  |  2KB  |  70 lines

  1. #===================================================================
  2. #
  3. #   Sample application makefile,common definitions for the IBM C
  4. #   compiler environment
  5. #===================================================================
  6. .SUFFIXES:
  7. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf
  8. #===================================================================
  9. # Default compilation macros for sample programs
  10. #
  11. # Compile switches  that are enabled
  12. CC = icc
  13. CC = $(CC) /c   #   compile don't link
  14. CC = $(CC) /ss  #   allow  "//" for comment lines
  15. CC = $(CC) /Se  #   allow cset  extensions
  16. CC = $(CC) /Ms  #   use the system calling convention and not optilink as the default
  17.  
  18. CC = $(CC) /Ti- #   include debugging info
  19. CC = $(CC) /W2  #   warning level 3
  20. CC = $(CC) /Ka- #   lost of precision messages + on / - off   <----
  21. CC = $(CC) /Kb+ #   turn basic diagnostics msg on +
  22. CC = $(CC) /Kc- #   turn preprocessor msg off -
  23. CC = $(CC) /Kt- #   turn preprocessor trace off
  24. CC = $(CC) /Ki- #   turn non-init vars msg on +   <----
  25. CC = $(CC) /Kp- #   turn unused func parms on +   <----
  26. CC = $(CC) /Kx- #   unused external defs on +     <----
  27.  
  28. CC = $(CC) /Gm+ #   use the multi-threaded libraries
  29. CC = $(CC) /Gd- #   static linking of libraries
  30. CC = $(CC) /Re  #   generate code that uses a run-time environment
  31. CC = $(CC) /Gn- #   generate default libraries info
  32. CC = $(CC) /Gs- #   enable stack probes
  33. CC = $(CC) /Q+  #   don't show copyright notices
  34.  
  35.  
  36. CCEXE = $(CC) /Ge+   #  generate EXE
  37. CCDLL = $(CC) /Ge-   #  generate DLL
  38.  
  39.  
  40. LFLAGS  = /NOI /ALIGN:16 /EXEPACK /CO /MAP /BASE:0x10000
  41. LFLAGS  = $(LFLAGS) /CODEVIEW
  42. LINK    = LINK386  $(LFLAGS)
  43. DEFLIBS = OS2386 + SOM
  44.  
  45. LIBS    = DDE4MBS + OS2386
  46. STLIBS  = DDE4SBS + OS2386
  47. MTLIBS  = DDE4MBS + os2386
  48. DLLLIBS = DDE4NBS + os2386
  49. VLIBS   = DDE4SBS + vdh + os2386
  50.  
  51. .c.lst:
  52.     $(CCDLL) -Fc$*.lst -Fo$*.obj $*.c
  53.  
  54. .c.obj:
  55.     $(CCDLL) -Fo$*.obj $*.c
  56.  
  57. .asm.obj:
  58.     $(ASM)   $*.asm
  59.  
  60. .ipf.hlp:
  61.         ipfc $*.ipf /W3
  62.  
  63. .itl.hlp:
  64.         cc  -P $*.itl
  65.         ipfc $*.i
  66.         del $*.i
  67.  
  68. .rc.res:
  69.         rc -r -p -x $*.rc
  70.