home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / RB3774.ZIP / RECORD.ZIP / IBMSAMP.INC < prev    next >
Text File  |  1992-01-15  |  1KB  |  55 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. # /Gm+    use the multi-threaded libraries
  14. # /ss     allow  "//" for comment lines
  15. # /Ms     use the system calling convention and not optilink as the default
  16. # /Gd-    Disable optimization
  17. # /Se     allow cset  extensions
  18. #
  19. #Note: /D__MIG_LIB__ will be coming out after LA and code should be changed
  20. #      accordingly.
  21. #
  22.  
  23. CC         = icc /c /Gd- /Se /Re /ss /Ms /Gm+ /D__MIG_LIB__
  24.  
  25.  
  26. AFLAGS  = /Mx -t -z
  27. ASM     = ml /c /Zm
  28. LFLAGS   = /NOE /NOD /ALIGN:16 /EXEPACK /M
  29. LINK    = LINK386  $(LFLAGS)
  30. LIBS    = DDE4MBS + OS2386
  31. STLIBS  = DDE4SBS + OS2386
  32. MTLIBS  = DDE4MBS + DDE4MBM  + os2386
  33. DLLLIBS = DDE4NBS + os2386
  34. VLIBS   = DDE4SBS + vdh + os2386
  35.  
  36. .c.lst:
  37.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  38.  
  39. .c.obj:
  40.     $(CC) -Fo$*.obj $*.c
  41.  
  42. .asm.obj:
  43.     $(ASM)   $*.asm
  44.  
  45. .ipf.hlp:
  46.         ipfc $*.ipf /W3
  47.  
  48. .itl.hlp:
  49.         cc  -P $*.itl
  50.         ipfc $*.i
  51.         del $*.i
  52.  
  53. .rc.res:
  54.         rc -r -p -x $*.rc
  55.