home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mnth0103.zip / Cannata / exe.inc < prev   
Text File  |  1992-03-19  |  2KB  |  60 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. # /Ge+    Create an Exe
  14. # /Gm+    use the multi-threaded libraries
  15. # /ss     allow  "//" for comment lines
  16. # /Ms     use the system calling convention and not optilink as the default
  17. # /Gd-    statically link to runtime library
  18. # /Se     allow cset  extensions
  19. #
  20. #Note: /D__MIG_LIB__ will be coming out after LA and code should be changed
  21. #      accordingly.
  22. #
  23.  
  24. #CC   = icc /c /Gd- /Ge  /Gm+ /Kb+ /Ms /Re /Se /ss /Ti+ /D__MIG_LIB__
  25. CC   = icc /c /Gd- /Ge  /Gm+ /Kb+ /Ms /Re /Se /ss /Ti+
  26.  
  27.  
  28.  
  29. AFLAGS  = /Mx -t -z
  30. ASM     = ml /c /Zm
  31. LFLAGS   = /NOE /NOD /CODEVIEW /ALIGN:16 /EXEPACK /M
  32. #LFLAGS   = /NOE /NOD  /ALIGN:16 /EXEPACK /M
  33. LINK    = LINK386  $(LFLAGS)
  34. LIBS    = DDE4MBS + OS2386
  35. STLIBS  = DDE4SBS + OS2386
  36. MTLIBS  = DDE4MBS + DDE4MBM  + os2386
  37. DLLLIBS = DDE4NBS + os2386
  38. VLIBS   = DDE4SBS + vdh + os2386
  39. LOCDLLS = C:\PROJECTS\CT_API.LIB + C:\PROJECTS\BarClass.lib
  40.  
  41. .c.lst:
  42.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  43.  
  44. .c.obj:
  45.     $(CC) -Fo$*.obj $*.c
  46.  
  47. .asm.obj:
  48.     $(ASM)   $*.asm
  49.  
  50. .ipf.hlp:
  51.         ipfc $*.ipf /W3
  52.  
  53. .itl.hlp:
  54.         cc  -P $*.itl
  55.         ipfc $*.i
  56.         del $*.i
  57.  
  58. .rc.res:
  59.         rc -r -p -x $*.rc
  60.