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

  1. #===================================================================
  2. #
  3. #   MAKEFILE  -  TCP/IP SYSCTL Sample Make file
  4. #
  5. #===================================================================
  6. #===================================================================
  7. # Include the file ibmsamp.inc which defines the various macros
  8. # depending on the target specified.
  9. #
  10. # The following macros are defined in ibmsamp.inc:
  11. #
  12. #       OBJDIR   - Directory where object files are created
  13. #       EXEDIR   - Directory where executable files are created
  14. #       RC       - Resource compiler
  15. #       RCFLAGS  - Resource compiler flags
  16. #       LINK     - Linker
  17. #       LFLAGS   - Linker flags
  18. #       MTLIBS   - Multithreaded versions of the runtime libraries
  19. #===================================================================
  20.  
  21. !include ..\..\ibmsamp.inc
  22.  
  23. TCPIPLIBS = tcpip32.lib $(LIBS)
  24. CFLAGS    = $(CFLAGS) /Sm /Ss /Q  /W2 /Gm /Gt
  25.  
  26. #-------------------------------------------------------------------
  27. #
  28. #   A list of all of the object files
  29. #
  30. #-------------------------------------------------------------------
  31.  
  32. SYSCTLOBJS = $(OBJDIR)\sysctl.obj
  33.  
  34. #-------------------------------------------------------------------
  35. #   This section lists all files to be built by  make.  The
  36. #   makefile builds the executable
  37. #-------------------------------------------------------------------
  38. all: $(EXEDIR)\sysctl.exe
  39.  
  40. #-------------------------------------------------------------------
  41. #   Dependencies
  42. #     This section lists all object files needed to be built for the
  43. #     application, along with the files it is dependent upon (e.g.
  44. #     its source and any header files).
  45. #-------------------------------------------------------------------
  46.  
  47. $(OBJDIR)\sysctl.obj: sysctl.c
  48.  
  49.  
  50. $(EXEDIR)\sysctl.exe: $(SYSCTLOBJS)
  51.    -$(CREATE_PATH)
  52.    $(LINK) $@ + $(TCPIPLIBS) $(SYSCTLOBJS)
  53.  
  54.  
  55. clean :
  56.         @if exist *.obj del *.obj
  57.         @if exist *.exe del *.exe
  58.  
  59.