home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / startapp.zip / STARTAPP.INC < prev    next >
Text File  |  1998-07-28  |  1KB  |  53 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. # /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 _optlink as the default
  16. # /Gd-    disable optimization
  17. # /Se     allow C Set/2  extensions
  18. # /Fa+    flag to produce the assembler listing.
  19. #
  20. #
  21.  
  22. CC         = icc  /c /Gd- /Se /Re /ss /Ms /Gm+ /Ti+
  23.  
  24. AFLAGS  = /Mx -t -z
  25. ASM     = ml /c /Zm
  26. LFLAGS   = /NOFREE /NOE /DEBUG /ALIGN:16 /EXEPACK /M /BASE:0x10000
  27. LINK    = ILINK  $(LFLAGS)
  28. LIBS    = CPPOM30 + OS2386
  29. STLIBS  = CPPOS30 + OS2386
  30. MTLIBS  = CPPOM30 + os2386
  31. DLLLIBS = CPPON30 + os2386
  32. VLIBS   = CPPOS30 + vdh + os2386
  33.  
  34. .c.lst:
  35.     $(CC) -Fc$*.lst -Fo$*.obj $*.c
  36.  
  37. .c.obj:
  38.     $(CC) -Fo$*.obj $*.c
  39.  
  40. .asm.obj:
  41.     $(ASM)   $*.asm
  42.  
  43. .ipf.hlp:
  44.         ipfc $*.ipf /W3
  45.  
  46. .itl.hlp:
  47.         cc  -P $*.itl
  48.         ipfc $*.i
  49.         del $*.i
  50.  
  51. .rc.res:
  52.         rc -r $*.rc
  53.