home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / WPS / WPSTUTOR / WPSTUTOR.MAK < prev    next >
Makefile  |  1995-08-24  |  3KB  |  104 lines

  1. #****************************************************************************
  2. #
  3. #  Work Place Shell - WPSTutorial Sample makefile - SOM 2.0 / IDL version
  4. #
  5. #  This makefile builds the WPSTutorial Object Class and WPSTUTOR.DLL.
  6. #  This class relies on the existence of SHOWDESC.EXE
  7. #
  8. #  Copyright (C) 1993, 1995  IBM Corporation
  9. #
  10. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  11. #      sample code created by IBM Corporation. This sample code is not
  12. #      part of any standard or IBM product and is provided to you solely
  13. #      for  the purpose of assisting you in the development of your
  14. #      applications.  The code is provided "AS IS", without
  15. #      warranty of any kind.  IBM shall not be liable for any damages
  16. #      arising out of your use of the sample code, even if they have been
  17. #      advised of the possibility of such damages.
  18. #
  19. #      NOTE: you will have to modify the environment variables to suit
  20. #            your environment
  21. #
  22. #****************************************************************************
  23.  
  24. !include ..\..\ibmsamp.inc
  25.  
  26. #****************************************************************************
  27. #  Dot directive definition area (usually just suffixes)
  28. #****************************************************************************
  29.  
  30. .SUFFIXES:
  31. .SUFFIXES: .c .obj .dll .idl .h .ih .rc .def
  32.  
  33. #****************************************************************************
  34. #  Environment Setup for the component(s).
  35. #****************************************************************************
  36.  
  37. SOMTEMP = .\somtemp
  38.  
  39.  
  40. !if [cd $(SOMTEMP)]
  41. !  if [md $(SOMTEMP)]
  42. !    error error creating $(SOMTEMP) directory
  43. !  endif
  44. !else
  45. !  if [cd ..]
  46. !    error - Couldn't cd .. from $(SOMTEMP) directory
  47. !  endif
  48. !endif
  49.  
  50.  
  51. #
  52. # Compiler/tools Macros
  53. #
  54.  
  55. CFLAGS  = $(CFLAG)
  56. CC      = icc
  57. LINK    = LINK386
  58. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /CO
  59. DLLLIBS = DDE4NBS + os2386 + somtk
  60.  
  61.  
  62. #****************************************************************************
  63. # Set up Macros that will contain all the different dependencies for the
  64. # executables and dlls etc. that are generated.
  65. #****************************************************************************
  66.  
  67. OBJS = wpstutor.obj
  68.  
  69. #****************************************************************************
  70. #   Setup the inference rules for compiling source code to
  71. #   object code.
  72. #****************************************************************************
  73.  
  74. .idl.ih:
  75.         sc -p -v -maddstar -mnoint -S128000 -C128000  $*.idl
  76.  
  77. .idl.c:
  78.         sc -p -v -maddstar -mnoint -S128000 -C128000 -sc $*.idl
  79.  
  80. .idl.def:
  81.         sc -p -v -maddstar -mnoint -S128000 -C128000 -s def $*.idl
  82.  
  83. .c.obj:
  84.         $(CC) $(CFLAG) /Ge- /Ti /O- /Gh -c $<
  85.  
  86. all: wpstutor.dll
  87.  
  88. #
  89. # Specific Process Tag
  90. #
  91.  
  92. wpstutor.ih:  $$(@B).IDL
  93.  
  94. wpstutor.obj: $$(@B).IH   $$(@B).H  $$(@B).IDL $$(@B).C \
  95.               methodid.h
  96.  
  97. wpstutor.dll: $$(@B).def $(OBJS) wpstutor.res
  98.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(DLLLIBS),$*;
  99.          rc -p -x $*.res $*.dll
  100.          mapsym wpstutor.map
  101.  
  102. wpstutor.res: $$(@B).rc $$(@B).ih $$(@B).ico
  103.          rc -r $*.rc $*.res
  104.