home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / code / wxwin140 / samples / ipc / makefile.dos < prev    next >
Encoding:
Makefile  |  1995-05-19  |  1.8 KB  |  79 lines

  1. # Makefile : Builds IPC example (DOS).
  2. # Use FINAL=1 argument to nmake to build final version with no debugging
  3. # info
  4.  
  5. WXDIR = $(CWORK)\wx\develop
  6. THISDIR = $(CWORK)\wx\develop\samples\ipc
  7. WXLIB = $(WXDIR)\lib\wx.lib
  8. LIBS=$(WXLIB) oldnames ddeml libw llibcew commdlg
  9.  
  10. !ifndef FINAL
  11. FINAL=0
  12. !endif
  13.  
  14. !if "$(FINAL)" == "0"
  15. CPPFLAGS=/AL /W3 /Zi /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
  16. LINKFLAGS=/NOD /CO /ONERROR:NOEXE
  17. !else
  18. # /Ox for real FINAL version
  19. CPPFLAGS=/AL /W3 /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
  20. LINKFLAGS=/NOD /ONERROR:NOEXE
  21. !endif
  22.  
  23. CLIENT_HEADERS = client.h
  24. CLIENT_SOURCES = client.cc
  25. CLIENT_OBJECTS = client.obj
  26. SERVER_HEADERS = server.h
  27. SERVER_SOURCES = server.cc
  28. SERVER_OBJECTS = server.obj
  29.  
  30. all:    client.exe server.exe
  31.  
  32. wx:
  33.         cd $(WXDIR)\src
  34.         nmake -f makefile.dos $(WXLIB)
  35.         cd $(THISDIR)
  36.  
  37. wxclean:
  38.         cd $(WXDIR)\src
  39.         nmake -f makefile.dos clean
  40.         cd $(THISDIR)
  41.  
  42.  
  43. client.exe:      $(WXDIR)\src\dummy.obj $(WXLIB) client.obj client.def client.res
  44.         link $(LINKFLAGS) @<<
  45. $(WXDIR)\src\dummy.obj client.obj,
  46. client,
  47. NUL,
  48. $(LIBS),
  49. client.def
  50. ;
  51. <<
  52.         rc -30 -K client.res
  53.  
  54. client.obj:      client.h client.cc
  55.         cl $(CPPFLAGS) /c /Tp $*.cc
  56.  
  57. client.res :      client.rc $(WXDIR)\include\wx.rc
  58.     rc -r /i$(WXDIR)\include client
  59.  
  60. server.exe:      $(WXDIR)\src\dummy.obj $(WXLIB) $(SERVER_OBJECTS) server.def server.res
  61.         link $(LINKFLAGS) @<<
  62. $(WXDIR)\src\dummy.obj $(SERVER_OBJECTS),
  63. server,
  64. NUL,
  65. $(LIBS),
  66. server.def
  67. ;
  68. <<
  69.         rc -30 -K server.res
  70.  
  71. server.obj:      server.h server.cc
  72.         cl $(CPPFLAGS) /c /Tp $*.cc
  73.  
  74. server.res :      server.rc $(WXDIR)\include\wx.rc
  75.     rc -r /i$(WXDIR)\include server
  76.  
  77. clean:
  78.         -erase *.obj *.exe *.res *.map *.rws
  79.