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

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