home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-05-19 | 1.8 KB | 79 lines |
- # Makefile : Builds IPC example (DOS).
- # Use FINAL=1 argument to nmake to build final version with no debugging
- # info
-
- WXDIR = $(CWORK)\wx\develop
- THISDIR = $(CWORK)\wx\develop\samples\ipc
- WXLIB = $(WXDIR)\lib\wx.lib
- LIBS=$(WXLIB) oldnames ddeml libw llibcew commdlg
-
- !ifndef FINAL
- FINAL=0
- !endif
-
- !if "$(FINAL)" == "0"
- CPPFLAGS=/AL /W3 /Zi /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
- LINKFLAGS=/NOD /CO /ONERROR:NOEXE
- !else
- # /Ox for real FINAL version
- CPPFLAGS=/AL /W3 /G2sw /Od /YuWINDOWS.H /Dwx_msw /Fp$(CWORK)\wx\develop\src\windows.pch
- LINKFLAGS=/NOD /ONERROR:NOEXE
- !endif
-
- CLIENT_HEADERS = client.h
- CLIENT_SOURCES = client.cc
- CLIENT_OBJECTS = client.obj
- SERVER_HEADERS = server.h
- SERVER_SOURCES = server.cc
- SERVER_OBJECTS = server.obj
-
- all: client.exe server.exe
-
- wx:
- cd $(WXDIR)\src
- nmake -f makefile.dos $(WXLIB)
- cd $(THISDIR)
-
- wxclean:
- cd $(WXDIR)\src
- nmake -f makefile.dos clean
- cd $(THISDIR)
-
-
- client.exe: $(WXDIR)\src\dummy.obj $(WXLIB) client.obj client.def client.res
- link $(LINKFLAGS) @<<
- $(WXDIR)\src\dummy.obj client.obj,
- client,
- NUL,
- $(LIBS),
- client.def
- ;
- <<
- rc -30 -K client.res
-
- client.obj: client.h client.cc
- cl $(CPPFLAGS) /c /Tp $*.cc
-
- client.res : client.rc $(WXDIR)\include\wx.rc
- rc -r /i$(WXDIR)\include client
-
- server.exe: $(WXDIR)\src\dummy.obj $(WXLIB) $(SERVER_OBJECTS) server.def server.res
- link $(LINKFLAGS) @<<
- $(WXDIR)\src\dummy.obj $(SERVER_OBJECTS),
- server,
- NUL,
- $(LIBS),
- server.def
- ;
- <<
- rc -30 -K server.res
-
- server.obj: server.h server.cc
- cl $(CPPFLAGS) /c /Tp $*.cc
-
- server.res : server.rc $(WXDIR)\include\wx.rc
- rc -r /i$(WXDIR)\include server
-
- clean:
- -erase *.obj *.exe *.res *.map *.rws
-