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

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