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

  1. #===================================================================
  2. #
  3. #   MAKEFILE  -  TCP/IP SENDFILE 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
  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. RECVOBJS = $(OBJDIR)\recv.obj
  33. SENDFILEOBJS = $(OBJDIR)\sendfile.obj
  34.  
  35. #-------------------------------------------------------------------
  36. #   This section lists all files to be built by make.  The
  37. #   makefile builds the executable
  38. #-------------------------------------------------------------------
  39. all: $(EXEDIR)\recv.exe $(EXEDIR)\sendfile.exe
  40.  
  41. #-------------------------------------------------------------------
  42. #   Dependencies
  43. #     This section lists all object files needed to be built for the
  44. #     application, along with the files it is dependent upon (e.g.
  45. #     its source and any header files).
  46. #-------------------------------------------------------------------
  47.  
  48. $(OBJDIR)\recv.obj: recv.c
  49.  
  50. $(OBJDIR)\sendfile.obj: sendfile.c
  51.  
  52. $(EXEDIR)\recv.exe: $(RECVOBJS)
  53.    -$(CREATE_PATH)
  54.    $(LINK) $@ + $(MTLIBS) + $(TCPIPLIBS) $(RECVOBJS)
  55.  
  56. $(EXEDIR)\sendfile.exe: $(SENDFILEOBJS)
  57.    -$(CREATE_PATH)
  58.    $(LINK) $@ + $(MTLIBS) + $(TCPIPLIBS) $(SENDFILEOBJS)
  59.  
  60.  
  61. clean :
  62.         @if exist *.obj del *.obj
  63.         @if exist *.exe del *.exe
  64.  
  65.