home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / sysmgt / ffst / probe / probe.mak < prev    next >
Text File  |  1999-05-11  |  3KB  |  70 lines

  1. #===================================================================
  2. #
  3. #   PROBE.MAK -    System Management FFST Probe Sample 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. #       FFSTLIBS - FFST libraries
  21. #===================================================================
  22.  
  23. !include ..\..\..\ibmsamp.inc
  24.  
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\probe.obj
  32.  
  33. #-------------------------------------------------------------------
  34. #   This section lists all files to be built by make.  The
  35. #   makefile builds the executable as well as its associated help
  36. #   file.
  37. #-------------------------------------------------------------------
  38. all: $(EXEDIR)\probe.exe $(EXEDIR)\probe.msg $(EXEDIR)\probe.rep
  39.  
  40. #-------------------------------------------------------------------
  41. #   This section creates the command file used by the linker.  This
  42. #   command file is recreated automatically every time you change
  43. #   the object file list, linker flags, or library list.
  44. #-------------------------------------------------------------------
  45. #-------------------------------------------------------------------
  46. #   Dependencies
  47. #     This section lists all object files needed to be built for the
  48. #     application, along with the files it is dependent upon (e.g.
  49. #     its source and any header files).
  50. #-------------------------------------------------------------------
  51. $(OBJDIR)\probe.obj: probe.c
  52.  
  53. $(EXEDIR)\probe.msg:  probemsg.txt
  54.    -$(CREATE_PATH)
  55.    mkmsgf probemsg.txt $@
  56.  
  57. $(EXEDIR)\probe.rep:  proberep.txt
  58.    mktmpf -O $@ -- proberep.txt
  59.  
  60. $(EXEDIR)\probe.exe: $(OBJS) $(@B).def
  61.    -$(CREATE_PATH)
  62.    $(LINK) $@ $(CFLAGS) $(@B).def $(MTLIBS) + $(FFSTLIBS) + $(ULSLIBS) @<<probe.lrf
  63. $(OBJS)
  64. <<
  65.  
  66. clean :
  67.         @if exist *.obj del *.obj
  68.         @if exist *.dll del *.dll
  69.         @if exist *.exe del *.exe
  70.