home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / wps / browse / browse.mak < prev    next >
Makefile  |  1999-05-11  |  3KB  |  91 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)\browse.obj $(OBJDIR)\pmbrowse.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. ALL_IPF = browse.ipf
  50.  
  51. #-------------------------------------------------------------------
  52. #   This section lists all files to be built by the make.  The
  53. #   makefile builds the executible as well as its associated help
  54. #   file.
  55. #-------------------------------------------------------------------
  56. all: clean $(EXEDIR)\browse.dll $(EXEDIR)\browse.hlp
  57.  
  58. #-------------------------------------------------------------------
  59. #   Dependencies
  60. #     This section lists all object files needed to be built for the
  61. #     application, along with the files it is dependent upon (e.g.
  62. #     its source and any header files).
  63. #-------------------------------------------------------------------
  64. $(OBJDIR)\browse.res: browse.rc browse.ih browse.ico pmbrowse.h
  65.                 $(RC) $(RCFLAGS) $(@B).rc $@
  66.  
  67. $(EXEDIR)\browse.hlp: $(ALL_IPF)
  68.  
  69. browse.h:   browse.idl
  70.  
  71. browse.def: browse.idl
  72.  
  73. browse.ih:  browse.idl
  74.  
  75. browse.c:   browse.idl
  76.  
  77. $(OBJDIR)\browse.obj:    browse.c    browse.ih  browse.h browse.idl
  78.    $(CC) -c $(DLLCFLAGS) -I. -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  79.  
  80. $(OBJDIR)\pmbrowse.obj:  pmbrowse.c  pmbrowse.h
  81.    $(CC) -c $(DLLCFLAGS) -I. -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  82.  
  83. $(EXEDIR)\browse.dll: browse.def $(OBJS) $(OBJDIR)\browse.res
  84.    -$(CREATE_PATH)
  85.    $(LINK) $@ $(DLLCFLAGS) $(@B).def $(MTLIBS) + $(SOMLIBS) $(OBJS)
  86.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  87.  
  88. clean:
  89.         @if exist browse.h  del browse.h
  90.         @if exist browse.ih del browse.ih
  91.