home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / wpshidl / samples / pwfolder / pwfolder.mak < prev    next >
Encoding:
Makefile  |  1993-11-18  |  3.1 KB  |  82 lines

  1. #****************************************************************************
  2. #
  3. #  PWFolder Work Place Shell Sample makefile - SOM 2.0 / IDL version
  4. #
  5. #  Converted from OS/2 Version 2.0 Technical Compendium, Volume 4,
  6. #  GG24-3724 with permission.
  7. #
  8. #  Copyright (C) 1992, 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. #      NOTE: you will have to modify the environment variables to suit
  20. #            your environment
  21. #
  22. #            It assumes that your SOMBASE directory is d:\som and
  23. #            that your wpshidl directory is on d:\ as well.
  24. #
  25. #****************************************************************************
  26.  
  27. #****************************************************************************
  28. #  Dot directive definition area (usually just suffixes)
  29. #****************************************************************************
  30.  
  31. .SUFFIXES: .c .obj .dll .idl .h .ih .rc .res
  32.  
  33. #****************************************************************************
  34. #  Environment Setup for the component(s).
  35. #****************************************************************************
  36.  
  37. INCLUDE=d:\som\include;d:\ibmcpp\include;d:\wpshidl\h;d:\toolkt21\c\os2h;.;
  38. LIB=d:\som\lib;d:\ibmcpp\lib;d:\toolkt21\os2lib;
  39. SMINCLUDE=d:\som\include;d:\wpshidl\idl;d:\toolkt21\sc;.;
  40. SMTMP=%TMP%
  41. PATH=d:\som\bin;d:\ibmcpp\bin;d:\toolkt21\os2bin;
  42. SMEMIT=ih;h
  43.  
  44. #
  45. # Compiler/tools Macros
  46. #
  47.  
  48. CC         = icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm+
  49. LINK       = link386
  50. LDFLAGS    = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /noe
  51. LIBS       = os2386.lib dde4nbs.lib somtk.lib
  52.  
  53. #****************************************************************************
  54. # Set up Macros that will contain all the different dependencies for the
  55. # executables and dlls etc. that are generated.
  56. #****************************************************************************
  57.  
  58. OBJS       = pwfolder.obj
  59.  
  60. #****************************************************************************
  61. #   Setup the inference rules for compiling source code to
  62. #   object code.
  63. #****************************************************************************
  64.  
  65. .c.obj:
  66.         $(CC) -I$(INCLUDE) -c $<
  67.  
  68. .idl.ih:
  69.         sc -maddstar -mnoint -r -S128000 -C128000 -v -p  $*.idl
  70.  
  71. all: pwfolder.dll
  72.  
  73. pwfolder.obj: $*.c $*.ih $*.h $*.idl
  74.  
  75. pwfolder.dll: $(OBJS) pwfolder.res
  76.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(LIBS),$*;
  77.          rc $*.res $*.dll
  78.          mapsym pwfolder.map
  79.  
  80. pwfolder.res: pwfolder.rc
  81.          rc -r $*.rc $*.res
  82.