home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / tlktbeta / samples / wpstutor / wpstutor.mak < prev    next >
Encoding:
Text File  |  1993-07-13  |  3.1 KB  |  100 lines

  1. #****************************************************************************
  2. #
  3. #  Work Place Shell Sample makefile
  4. #
  5. #  This makefile builds the WPSTutorial Object Class, WPSTUTOR.DLL.
  6. #  This class relies on the existence of SHOWDESC.EXE
  7. #
  8. #  Copyright (C) 1993 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. #****************************************************************************
  20.  
  21. !include ..\ibmsamp.inc
  22.  
  23. #****************************************************************************
  24. #  Dot directive definition area (usually just suffixes)
  25. #****************************************************************************
  26.  
  27. .SUFFIXES:
  28. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .def
  29.  
  30. #****************************************************************************
  31. #  Environment Setup for the component(s).
  32. #****************************************************************************
  33.  
  34. SOMTEMP = .\somtemp
  35. SCPATH  = ..\..\..\sc
  36. HPATH   = ..\..\os2h
  37. LIBPATH = ..\..\..\os2lib
  38.  
  39. !if [set SMINCLUDE=.;$(SCPATH);] || \
  40.     [set SMTMP=$(SOMTEMP)] || \
  41.     [set SMEMIT=ih;h;ph;psc;sc;c]
  42. !endif
  43.  
  44. !if [cd $(SOMTEMP)]
  45. !  if [md $(SOMTEMP)]
  46. !    error error creating $(SOMTEMP) directory
  47. !  endif
  48. !else
  49. !  if [cd ..]
  50. !    error - Couldn't cd .. from $(SOMTEMP) directory
  51. !  endif
  52. !endif
  53.  
  54. #
  55. # Compiler/tools Macros
  56. #
  57.  
  58. CC      = $(CC) /Ge- /Ti /O- /Gh
  59. LINK    = LINK386
  60. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /CO
  61. DLLLIBS = DDE4NBS + os2386 + som.lib
  62.  
  63.  
  64. #****************************************************************************
  65. # Set up Macros that will contain all the different dependencies for the
  66. # executables and dlls etc. that are generated.
  67. #****************************************************************************
  68.  
  69. OBJS = wpstutor.obj
  70.  
  71. #****************************************************************************
  72. #   Setup the inference rules for compiling source code to
  73. #   object code.
  74. #****************************************************************************
  75.  
  76. .c.obj:
  77.         $(CC) -I$(HPATH) -c $<
  78.  
  79. .csc.ih:
  80.         sc -v -r $*.csc
  81.  
  82. all: wpstutor.dll
  83.  
  84. #
  85. # Specific Process Tag
  86. #
  87.  
  88. wpstutor.ih:  $$(@B).csc $(HPATH)\wpdataf.h
  89.  
  90. wpstutor.obj: $$(@B).c $$(@B).ih $$(@B).h $$(@B).sc $(HPATH)\wpdataf.h \
  91.               methodid.h
  92.  
  93. wpstutor.dll: $$(@B).def $(OBJS) wpstutor.res
  94.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(DLLLIBS),$*;
  95.          rc -p -x $*.res $*.dll
  96.          mapsym wpstutor.map
  97.  
  98. wpstutor.res: $$(@B).rc $$(@B).ih $$(@B).ico
  99.          rc -r $*.rc $*.res
  100.