home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / WPS / WSFILE / WSFILE.MAK < prev    next >
Text File  |  1995-08-24  |  4KB  |  119 lines

  1. #****************************************************************************
  2. #
  3. #  Work Place Shell Sample makefile
  4. #
  5. #  Copyright (C) 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. #****************************************************************************
  17.  
  18. !include ..\..\ibmsamp.inc
  19.  
  20. #****************************************************************************
  21. #  Dot directive definition area (usually just suffixes)
  22. #****************************************************************************
  23.  
  24. .SUFFIXES:
  25. .SUFFIXES: .c .obj .dll .idl .sc .h .ih .psc .rc .res
  26.  
  27. #****************************************************************************
  28. #  Environment Setup for the component(s).
  29. #****************************************************************************
  30.  
  31. ROOT = ..\..\..
  32. SOMTEMP = .\somtemp
  33.  
  34. !if [set SMEMIT=h;ih;sc;c]
  35. !endif
  36.  
  37. !if [cd $(SOMTEMP)]
  38. !  if [md $(SOMTEMP)]
  39. !    error error creating $(SOMTEMP) directory
  40. !  endif
  41. !else
  42. !  if [cd ..]
  43. !    error - Couldn't cd .. from $(SOMTEMP) directory
  44. !  endif
  45. !endif
  46.  
  47. #
  48. # Compiler/tools Macros
  49. #
  50. CFLAGS  = $(CFLAG)
  51. CC2      =  /Ge- /Ti+
  52. LINK    = LINK386
  53. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /codeview
  54. DLLLIBS = $(DLLLIBS) somtk.lib
  55.  
  56. #****************************************************************************
  57. # Set up Macros that will contain all the different dependencies for the
  58. # executables and dlls etc. that are generated.
  59. #****************************************************************************
  60.  
  61. OBJS = wsfile.obj wsfolder.obj
  62.  
  63. #****************************************************************************
  64. #   Setup the inference rules for compiling source code to
  65. #   object code.
  66. #****************************************************************************
  67.  
  68. .idl.ih:
  69.         sc -maddstar -mnoint -S128000 -C128000 -v -p $*.idl
  70.  
  71. .idl.h:
  72.         sc -maddstar -mnoint -S128000 -C128000 -v -p -s h $*.idl
  73.  
  74. .idl.c:
  75.         sc -maddstar -mnoint -S128000 -C128000 -v -p -s c $*.idl
  76.  
  77. .idl.def:
  78.         sc -maddstar -mnoint -S128000 -C128000 -v -p -s def $*.idl
  79.  
  80. .c.obj:
  81.         $(CC) $(CFLAGS) $(CC2)  -I$(HPATH)  -c  -q $<
  82.  
  83. all: wsfile.dll wsfolder.dll wsfile.hlp wsfolder.hlp
  84.  
  85. #
  86. # Specific Process Tag
  87. #
  88.  
  89. wsfile.ih:   $$(@B).idl $(ROOT)\h\wpdataf.h
  90.  
  91. wsfile.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc $(ROOT)\h\wpdataf.h
  92.  
  93. wsfile.dll: $$(@B).def wsfile.obj wsfile.res
  94.          $(LINK) $(LDFLAGS) wsfile.obj,$@,,$(DLLLIBS),$*;
  95.          rc -p -x $*.res $*.dll
  96.          mapsym wsfile.map
  97.  
  98. wsfile.hlp: $$(@B).ipf
  99.          ipfc $*.ipf
  100.  
  101. wsfile.res: $$(@B).rc $$(@B).ih
  102.          rc -r $*.rc $*.res
  103.  
  104. wsfolder.ih:   $$(@B).idl $(ROOT)\h\wpfolder.h
  105.  
  106. wsfolder.obj: $$(@B).c $$(@B).ih $$(@B).h $$(@B).sc $(ROOT)\h\wpfolder.h
  107.  
  108. wsfolder.dll: $$(@B).def wsfolder.obj wsfolder.res
  109.          $(LINK) $(LDFLAGS) wsfolder.obj,$@,,$(DLLLIBS),$*;
  110.          rc -p -x $*.res $*.dll
  111.          mapsym wsfolder.map
  112.  
  113. wsfolder.res: $$(@B).rc $$(@B).ih
  114.          rc -r $*.rc $*.res
  115.  
  116. wsfolder.hlp: $$(@B).ipf
  117.          ipfc $*.ipf
  118.  
  119.