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

  1. #===================================================================
  2. #
  3. #   JIGSAW.MAK - Jigsaw Puzzle Application Make file
  4. #   Copyright    IBM Corporation 1996
  5. #
  6. #===================================================================
  7. #===================================================================
  8. # Include the file ibmsamp.inc which defines the various macros
  9. # depending on the target specified.
  10. #
  11. # The following macros are defined in ibmsamp.inc:
  12. #
  13. #       OBJDIR   - Directory where object files are created
  14. #       EXEDIR   - Directory where executable files are created
  15. #       RC       - Resource compiler
  16. #       RCFLAGS  - Resource compiler flags
  17. #       LINK     - Linker
  18. #       LFLAGS   - Linker flags
  19. #       MTLIBS   - Multithreaded versions of the runtime libraries
  20. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24. HEADERS = globals.h jigsaw.h jighelp.h
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\jigsaw.obj $(OBJDIR)\jighelp.obj $(OBJDIR)\procs.obj \
  32.        $(OBJDIR)\misc.obj   $(OBJDIR)\globals.obj
  33.  
  34. ALL_IPF = jigsaw.ipf
  35. #-------------------------------------------------------------------
  36. #   This section lists all files to be built by  make.  The
  37. #   makefile builds the executable as well as its associated help
  38. #   file.
  39. #-------------------------------------------------------------------
  40. all: $(EXEDIR)\jigsaw.exe $(EXEDIR)\jigsaw.hlp
  41.  
  42. #-------------------------------------------------------------------
  43. #   Dependencies
  44. #     This section lists all object files needed to be built for the
  45. #     application, along with the files it is dependent upon (e.g.
  46. #     its source and any header files).
  47. #-------------------------------------------------------------------
  48. $(OBJDIR)\jigsaw.res: $(HEADERS) prodinfo.bmp jigsaw.rc jigsaw.ico jighelp.rc jigsaw.dlg
  49.                 $(RC) $(RCFLAGS) $(@B).rc $@
  50.                 @del prodinfo.bmp
  51.  
  52. prodinfo.bmp :
  53.            copy ..\..\prodinfo.bmp $@
  54.  
  55. $(EXEDIR)\jigsaw.hlp:  $(ALL_IPF)
  56.  
  57. $(OBJDIR)\jigsaw.obj:  jigsaw.c  $(HEADERS)
  58.  
  59. $(OBJDIR)\jighelp.obj: jighelp.c $(HEADERS)
  60.  
  61. $(OBJDIR)\procs.obj:   procs.c   $(HEADERS)
  62.  
  63. $(OBJDIR)\misc.obj:    misc.c    $(HEADERS)
  64.  
  65. $(OBJDIR)\globals.obj: globals.c $(HEADERS)
  66.  
  67. $(EXEDIR)\jigsaw.exe: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  68.    -$(CREATE_PATH)
  69.    $(LINK) $@ $(@B).def $(MTLIBS) $(OBJS)
  70.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  71.  
  72. clean :
  73.         @if exist *.obj del *.obj
  74.         @if exist *.dll del *.dll
  75.         @if exist *.exe del *.exe
  76.