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

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