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

  1. #===================================================================
  2. #
  3. #   MAKEFILE  -  TCP/IP ACCXRECV 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. TCPIPLIBS = tcpip32.lib
  23. CFLAGS    = $(CFLAGS) /Mp /Sm /Ss /Q /W2 /Gm /Gt
  24.  
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. ACCEPTOBJS = $(OBJDIR)\accept.obj
  32. RECVOBJS = $(OBJDIR)\recv.obj
  33.  
  34. #-------------------------------------------------------------------
  35. #   This section lists all files to be built by make.  The
  36. #   makefile builds the executable
  37. #-------------------------------------------------------------------
  38. all: $(EXEDIR)\accept.exe $(EXEDIR)\recv.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)\accept.obj: accept.c
  48.  
  49. $(OBJDIR)\recv.obj: recv.c
  50.  
  51. $(EXEDIR)\accept.exe: $(ACCEPTOBJS)
  52.    -$(CREATE_PATH)
  53.    $(LINK) $@ + $(MTLIBS) + $(TCPIPLIBS) $(ACCEPTOBJS)
  54.  
  55. $(EXEDIR)\recv.exe: $(RECVOBJS)
  56.    -$(CREATE_PATH)
  57.    $(LINK) $@ + $(MTLIBS) + $(TCPIPLIBS) $(RECVOBJS)
  58.  
  59.  
  60. clean :
  61.         @if exist *.obj del *.obj
  62.         @if exist *.exe del *.exe
  63.  
  64.