home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / wps / textfldr / textfldr.mak < prev    next >
Makefile  |  1999-05-11  |  3KB  |  84 lines

  1. #****************************************************************************
  2. #
  3. #  Work Place Shell - Browse Sample makefile - SOM 2.1 / IDL version
  4. #
  5. #  Copyright (C) 1993, 1994 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.  
  21. !include ..\..\ibmsamp.inc
  22.  
  23. #-------------------------------------------------------------------
  24. #
  25. #   A list of all of the object files
  26. #
  27. #-------------------------------------------------------------------
  28.  
  29. OBJS = $(OBJDIR)\textfldr.obj
  30.  
  31. SOMTEMP = .\somtemp
  32.  
  33. !if [set SMTMP=$(SOMTEMP)] || \
  34.     [set SMEMIT=ih;h;c] || \
  35.     [set SMADDSTAR=1] || \
  36.     [set SMNOTC=1]
  37. !endif
  38.  
  39. !if [cd $(SOMTEMP)]
  40. !  if [md $(SOMTEMP)]
  41. !    error error creating $(SOMTEMP) directory
  42. !  endif
  43. !else
  44. !  if [cd ..]
  45. !    error - Couldn't cd .. from $(SOMTEMP) directory
  46. !  endif
  47. !endif
  48.  
  49. #-------------------------------------------------------------------
  50. #   This section lists all files to be built by the make.  The
  51. #   makefile builds the executible as well as its associated help
  52. #   file.
  53. #-------------------------------------------------------------------
  54. all: clean $(EXEDIR)\textfldr.dll
  55.  
  56. #-------------------------------------------------------------------
  57. #   Dependencies
  58. #     This section lists all object files needed to be built for the
  59. #     application, along with the files it is dependent upon (e.g.
  60. #     its source and any header files).
  61. #-------------------------------------------------------------------
  62. $(OBJDIR)\textfldr.res: textfldr.rc textfldr.ih
  63.                 $(RC) $(RCFLAGS) $(@B).rc $@
  64.  
  65. textfldr.h:   textfldr.idl
  66.  
  67. textfldr.def: textfldr.idl
  68.  
  69. textfldr.ih:  textfldr.idl
  70.  
  71. textfldr.c:   textfldr.idl
  72.  
  73. $(OBJDIR)\textfldr.obj:    textfldr.c    textfldr.ih  textfldr.h textfldr.idl
  74.    $(CC) -c $(DLLCFLAGS) -I. -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  75.  
  76. $(EXEDIR)\textfldr.dll: textfldr.def $(OBJS) $(OBJDIR)\textfldr.res
  77.    -$(CREATE_PATH)
  78.    $(LINK) $@ $(DLLCFLAGS) $(@B).def $(MTLIBS) + $(SOMLIBS) $(OBJS)
  79.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  80.  
  81. clean:
  82.         @if exist textfldr.h  del textfldr.h
  83.         @if exist textfldr.ih del textfldr.ih
  84.