home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / ibmsamp.inc next >
Text File  |  1996-11-19  |  3KB  |  99 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #   Copyright 1996 IBM Corporation
  4. #
  5. #===================================================================
  6.  
  7. #===================================================================
  8. #This include file is included by the various sample makefiles.
  9. #Define the macros depending on the target specified.
  10. #
  11. # The only valid targets are the following :-
  12. #
  13. #===================================================================
  14.  
  15. OBJDIR = .
  16. EXEDIR = .
  17.  
  18. #===================================================================
  19. # First we handle the case where the TARGET_PROC might be defined in a
  20. # mixed case fashion. We convert any case to the PPC so that we can deal
  21. # with just one case (PPC)
  22. #===================================================================
  23.  
  24. .SUFFIXES:
  25. .SUFFIXES: .rc .res .obj .lst .c .asm .hlp .itl .ipf .idl .ih .h .xih .xh
  26.  
  27. CFLAGS          =      -Gd- -Se -Re -Ss -Ms -Gm+
  28. CC              =      icc $(CFLAGS)
  29. ODICC           =      icc
  30. DLLCFLAGS       =      -Ge-
  31. AS              =      ml /c /Zm
  32. AFLAGS          =      /Mx -t -z
  33. LFLAGS          =      /NOE /NOD /ALIGN:16 /EXEPACK
  34. LINK            =      icc /B"$(LFLAGS)" $(CFLAGS) -Fe
  35. RC              =      rc
  36. RCFLAGS         =      -r
  37. SOMCOMPILER     =      sc
  38. MSGBIND         =      msgbind
  39. MAPSYM          =      mapsym
  40. OS2LIB          =      os2386.lib
  41. IMPLIB          =      implib
  42. IPF             =      ipfc
  43. LIBS            =      CPPOM30.LIB + OS2386.LIB
  44. STLIBS          =      CPPOS30.LIB + OS2386.LIB
  45. MTLIBS          =      CPPOM30.LIB + OS2386.LIB
  46. DLLLIBS         =      CPPON30.LIB + OS2386.LIB
  47. REXXLIBS        =      REXX.LIB
  48. DMILIBS         =      DMIAPI.LIB
  49. TRACELIBS       =      TRACE.LIB
  50. LFLIBS          =      LFAPI.LIB
  51. FFSTLIBS        =      FFST.LIB
  52. MMLIBS          =      MMPM2.LIB
  53. SOMLIBS         =      SOMTK.LIB
  54. VLIBS           =      CPPON30.LIB + VDH + OS2386
  55. ODLIBS          =      OPENDOC.LIB + OS2CMBSI.LIB
  56. ULSLIBS         =      LIBULS.LIB
  57. LANLIBS         =      NETAPI32.LIB
  58. UPMLIBS         =      UPM32.LIB
  59. DAPIELIBS       =      PMWINX.LIB
  60. ODPUBLIC_LIB    =      ..\PUBLIC
  61. CNTNR_HDRPATH   =      ..\PUBLIC
  62. CNTNR_LIBPATH   =      ..\PUBLIC
  63. OPENDOCIDL      =      .
  64.  
  65. .c{$(O)}.lst:
  66.     $(CC) -Fc"$(OBJDIR)\$(@B).lst -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  67.  
  68. .c{$(O)}.obj :
  69.         $(CC) -c -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  70.  
  71. .itl.hlp :
  72.         cc -P $*.itl
  73.         ipfc $*.i
  74.         del $*.i
  75.  
  76. .ipf{$(REL)}.hlp :
  77.         $(IPF) $(@B).ipf $(EXEDIR)\$(@B).hlp /W3
  78.  
  79. .rc{$(O)}.res :
  80.         $(RC) $(RCFLAGS) $*.rc $(OBJDIR)\$(@B).res
  81.  
  82. .idl.h:
  83.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"h"   $(SCFLAGS) $*.idl
  84.  
  85. .idl.xh:
  86.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"xh"  $(SCFLAGS) $*.idl
  87.  
  88. .idl.ih:
  89.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"ih"  $(SCFLAGS) $*.idl
  90.  
  91. .idl.xih:
  92.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"xih" $(SCFLAGS) $*.idl
  93.  
  94. .idl.def:
  95.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"def" $(SCFLAGS) $*.idl
  96.  
  97. .idl.c:
  98.         sc -p -mnotc -maddstar -mnoint -S128000 -C128000 -s"c"   $(SCFLAGS) $*.idl
  99.