home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mnth0103.zip / Cannata / dll.inc < prev    next >
Text File  |  1992-03-07  |  2KB  |  63 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 switchs  that are enabled
  12. # /c      compile don't link
  13. # /Gd-    statically link to runtime library
  14. # /Gd+    dynamically link to runtime library
  15. # /Ge-    Create a Dll
  16. # /Gm+    use the multi-threaded libraries
  17. # /Kb+    Produce basic diagnostic messages
  18. # /Ms     use the system calling convention and not optilink
  19. # /Re     Generate code to run in a C Set/2 runtime environment
  20. # /Se     allow C Set/2  extensions
  21. # /sm     allow migration extensions
  22. # /ss     enable c++ extensions like "//" for comment lines
  23. # /Ti     generate PM debugger information  with /Yc
  24. # /W3     warning level three
  25. #===================================================================
  26.  
  27. # /sm /W3 /D__MIG_LIB__
  28.  
  29. CC   = icc /c /Gd+ /Ge- /Gm+ /Kb+ /Ms /Re /Se /ss /Ti+
  30.  
  31. #/B"/NOI /CODEVIEW /ALIGN:16 /EXEPACK /M"
  32. IMPL = implib
  33.  
  34. AFLAGS  = /Mx -t -z
  35. ASM     = ml /c /Zm
  36. #LFLAGS   = /NOI /CODEVIEW /ALIGN:16 /EXEPACK /M
  37. LFLAGS   = /NOE /NOD /CODEVIEW /ALIGN:16 /EXEPACK /M
  38. #LFLAGS   = /NOE /NOD  /ALIGN:16 /EXEPACK /M
  39. LINK    = LINK386  $(LFLAGS)
  40. DLLLIBS = DDE4NBS + os2386
  41.  
  42. .c.lst:
  43.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  44.  
  45. .c.obj:
  46.     $(CC) -Fo$*.obj $*.c
  47.  
  48. .asm.obj:
  49.     $(ASM)   $*.asm
  50.  
  51. .ipf.hlp:
  52.         ipfc $*.ipf /W3
  53.  
  54. .itl.hlp:
  55.         cc  -P $*.itl
  56.         ipfc $*.i
  57.         del $*.i
  58.  
  59. .rc.res:
  60.         rc -r -p -x $*.rc
  61.  
  62.  
  63.