home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / ibmsamp.inc next >
Text File  |  1999-05-11  |  3KB  |  91 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #   Copyright 1996-1999, IBM Corporation
  4. #
  5. #===================================================================
  6.  
  7. #===================================================================
  8. #This include file is included by the various sample makefiles.
  9. #===================================================================
  10.  
  11. OBJDIR = .
  12. EXEDIR = .
  13.  
  14. .SUFFIXES:
  15. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf .idl .ih .h .xih .xh
  16.  
  17. PATH_TO_DDK  = $$(PATH_TO_DDK)
  18. CFLAGS       = -Gd- -Se -Re -Ss -Ms -Gm+
  19. CC           = icc $(CFLAGS)
  20. DLLCFLAGS    = -Ge-
  21. OS2_H16      = $(PATH_TO_DDK)\base\h
  22. AS           = alp
  23. AFLAGS       =
  24. LFLAGS       = /NOE /NOD /ALIGN:16 /EXEPACK
  25. LINK         = icc /B"$(LFLAGS)" $(CFLAGS) -Fe
  26. RC           = rc
  27. RCFLAGS      = -r
  28. SOMCOMPILER  = sc
  29. MSGBIND      = msgbind
  30. MAPSYM       = mapsym
  31. OS2286_LIB   = os2286.lib
  32. OS2386_LIB   = os2386.lib
  33. OS2386P_LIB  = $(PATH_TO_DDK)\base\lib\os2386p.lib
  34. OS2LIB       = $(OS2386_LIB)
  35. IMPLIB       = implib
  36. IPF          = ipfc
  37. STLIB        = cppos30.lib
  38. MTLIB        = cppom30.lib
  39. DLLLIB       = cppon30.lib
  40. LIBS         = $(MTLIB) + $(OS2386_LIB)
  41. STLIBS       = $(STLIB) + $(OS2386_LIB)
  42. MTLIBS       = $(MTLIB) + $(OS2386_LIB)
  43. DLLLIBS      = $(DLLLIB) + $(OS2386_LIB)
  44. REXXLIBS     = rexx.lib
  45. DMILIBS      = dmiapi.lib
  46. TRACELIBS    = trace.lib
  47. LFLIBS       = lfapi.lib
  48. FFSTLIBS     = ffst.lib
  49. MMLIBS       = mmpm2.lib
  50. SOMLIBS      = somtk.lib
  51. VLIBS        = $(DLLLIB) + vdh + $(OS2386_LIB)
  52. ULSLIBS      = libuls.lib
  53. LANLIBS      = netapi32.lib
  54. UPMLIBS      = upm32.lib
  55. DAPIELIBS    = pmwinx.lib
  56.  
  57. .c{$(O)}.lst:
  58.     $(CC) -Fc"$(OBJDIR)\$(@B).lst -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  59.  
  60. .c{$(O)}.obj :
  61.         $(CC) -c -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  62.  
  63. .itl.hlp :
  64.         cc -P $*.itl
  65.         ipfc $*.i
  66.         del $*.i
  67.  
  68. .ipf{$(REL)}.hlp :
  69.         $(IPF) $(@B).ipf $(EXEDIR)\$(@B).hlp /W3
  70.  
  71. .rc{$(O)}.res :
  72.         $(RC) $(RCFLAGS) $*.rc $(OBJDIR)\$(@B).res
  73.  
  74. .idl.h:
  75.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"h"   $(SCFLAGS) $*.idl
  76.  
  77. .idl.xh:
  78.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"xh"  $(SCFLAGS) $*.idl
  79.  
  80. .idl.ih:
  81.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"ih"  $(SCFLAGS) $*.idl
  82.  
  83. .idl.xih:
  84.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"xih" $(SCFLAGS) $*.idl
  85.  
  86. .idl.def:
  87.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"def" $(SCFLAGS) $*.idl
  88.  
  89. .idl.c:
  90.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"c"   $(SCFLAGS) $*.idl
  91.