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

  1. #===================================================================
  2. #
  3. #   NAMES.MAK - DMI Overlay (DLL) Componentry 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. #-------------------------------------------------------------------
  25. #
  26. #   A list of all of the object files
  27. #
  28. #-------------------------------------------------------------------
  29.  
  30. OBJS    = $(OBJDIR)\names.obj
  31.  
  32. #-------------------------------------------------------------------
  33. #   This section lists all files to be built by make.  The
  34. #   makefile builds the executable as well as its associated help
  35. #   file.
  36. #-------------------------------------------------------------------
  37. all: $(EXEDIR)\names.dll
  38.  
  39. #-------------------------------------------------------------------
  40. #   This section creates the command file used by the linker.  This
  41. #   command file is recreated automatically every time you change
  42. #   the object file list, linker flags, or library list.
  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)\names.obj: names.c $(HEADERS)
  52.    $(CC) -c $(DLLCFLAGS) -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  53.  
  54. $(EXEDIR)\names.dll: $(OBJS) $(@B).def
  55.    -$(CREATE_PATH)
  56.    $(LINK) $@ $(DLLCFLAGS) $(@B).def $(MTLIBS) + $(DMILIBS) $(OBJS)
  57.  
  58. clean :
  59.         @if exist *.obj del *.obj
  60.         @if exist *.dll del *.dll
  61.         @if exist *.exe del *.exe
  62.