home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / sysmgt / errlog / errlog2 / errlog2.mak < prev   
Makefile  |  1999-05-11  |  2KB  |  62 lines

  1. #===================================================================
  2. #
  3. #   ERRLOG2.MAK - Error Logging 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. #       LFLIB    - Logging Framework libraries
  21. #===================================================================
  22.  
  23. !include ..\..\..\ibmsamp.inc
  24.  
  25. CFLAGS=$(CFLAGS) /DNO_UNI_EAS /DUNI_NO_DOS
  26. #-------------------------------------------------------------------
  27. #
  28. #   A list of all of the object files
  29. #
  30. #-------------------------------------------------------------------
  31.  
  32. OBJS = $(OBJDIR)\errlog2.obj
  33.  
  34. #-------------------------------------------------------------------
  35. #   This section lists all files to be built by make.  The
  36. #   makefile builds the executable as well as its associated help
  37. #   file.
  38. #-------------------------------------------------------------------
  39. all: $(EXEDIR)\errlog2.exe
  40.  
  41. #-------------------------------------------------------------------
  42. #   This section creates the command file used by the linker.  This
  43. #   command file is recreated automatically every time you change
  44. #   the object file list, linker flags, or library list.
  45. #-------------------------------------------------------------------
  46. #-------------------------------------------------------------------
  47. #   Dependencies
  48. #     This section lists all object files needed to be built for the
  49. #     application, along with the files it is dependent upon (e.g.
  50. #     its source and any header files).
  51. #-------------------------------------------------------------------
  52. $(OBJDIR)\errlog2.obj: errlog2.c
  53.  
  54. $(EXEDIR)\errlog2.exe: $(OBJS)
  55.    -$(CREATE_PATH)
  56.    $(LINK) $@ $(CFLAGS) $(MTLIBS) + $(LFLIBS) + $(ULSLIBS) $(OBJS)
  57.  
  58. clean :
  59.         @if exist *.obj del *.obj
  60.         @if exist *.dll del *.dll
  61.         @if exist *.exe del *.exe
  62.