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

  1. #===================================================================
  2. #
  3. #   WORMS.MAK - Console IO 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 = worms.h wrmthrd.h
  25.  
  26. #-------------------------------------------------------------------
  27. #
  28. #   A list of all of the object files
  29. #
  30. #-------------------------------------------------------------------
  31.  
  32. OBJS = $(OBJDIR)\worms.obj $(OBJDIR)\wrmthrd.obj $(OBJDIR)\init.obj  \
  33.        $(OBJDIR)\disp.obj  $(OBJDIR)\wrmhelp.obj $(OBJDIR)\wmouse.obj
  34.  
  35. ALL_IPF =
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section lists all files to be built by  make.  The
  39. #   makefile builds the executable as well as its associated help
  40. #   file.
  41. #-------------------------------------------------------------------
  42. all: $(EXEDIR)\worms.exe
  43.  
  44. #-------------------------------------------------------------------
  45. #   Dependencies
  46. #     This section lists all object files needed to be built for the
  47. #     application, along with the files it is dependent upon (e.g.
  48. #     its source and any header files).
  49. #-------------------------------------------------------------------
  50.  
  51. $(OBJDIR)\worms.obj:   worms.c $(HEADERS)
  52.  
  53. $(OBJDIR)\wrmthrd.obj: wrmthrd.c $(HEADERS)
  54.  
  55. $(OBJDIR)\init.obj:    init.c    $(HEADERS)
  56.  
  57. $(OBJDIR)\disp.obj:    disp.c    $(HEADERS)
  58.  
  59. $(OBJDIR)\wrmhelp.obj: wrmhelp.c $(HEADERS)
  60.  
  61. $(OBJDIR)\wmouse.obj:  wmouse.c  $(HEADERS)
  62.  
  63. $(EXEDIR)\worms.exe: $(OBJS) worms.def
  64.    -$(CREATE_PATH)
  65.    $(LINK) $@ worms.def $(MTLIBS) $(OBJS)
  66.  
  67. clean :
  68.         @if exist *.obj del *.obj
  69.         @if exist *.dll del *.dll
  70.         @if exist *.exe del *.exe
  71.