]> git.saurik.com Git - wxWidgets.git/blob - samples/wxsocket/makefile.nt
* Added wxsocket lib and sample (I hope I don't forget some file)
[wxWidgets.git] / samples / wxsocket / makefile.nt
1 #
2 # File: makefile.nt
3 # Author: Stefan Hammes (stefan.hammes@urz.uni-heidelberg.de) / Julian Smart / Petr Houser (1996)
4 # Created: 1995
5 # Updated:=09
6 #
7 # "%W% %G%"
8 #
9 # Makefile : Builds wxSock library for Windows NT / Win95
10 !include <..\..\..\src\ntwxwin.mak>
11
12 # Change WXDIR or WXWIN to wherever wxWindows is found
13 #WXWIN = $(WX)
14 WXDIR = $(WXWIN)
15 WXINC = $(WXDIR)\include\msw
16
17 WXSOCKDIR = $(WXDIR)\contrib\wxsock
18 WXSOCKINC = $(WXSOCKDIR)
19 WXSOCKLIB = $(WXSOCKDIR)\lib\wxsock.lib $(WXSOCKDIR)\lib\zlib.lib
20 INC=-I$(WXBASEINC) -I$(WXINC) -I$(WXSOCKINC)
21
22 WXLIB = $(WXDIR)\lib\wx.lib
23
24 LIBS=$(WXSOCKLIB) wsock32.lib $(LIBS)
25 #LIBS=$(WXLIB) $(WXSTRINGLIB) oldnames libw llibcew llibce commdlg shell
26
27 all: client.exe server.exe
28
29 wx:
30 cd $(WXDIR)\src\msw
31 nmake -f makefile.nt
32 cd $(ITSYDIR)
33
34 client.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(WXSTRINGLIB) client.obj\
35 client.res
36 $(link) -out:client.exe $(LINKFLAGS) $(DUMMYOBJ) client.obj \
37 client.res $(LIBS)
38
39 server.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(WXSTRINGLIB) server.obj
40 $(link) -out:server.exe $(LINKFLAGS) $(DUMMYOBJ) server.obj $(LIBS)
41
42 client.obj: client.$(SRCSUFF)
43 $(cc) $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
44
45 client.res: client.rc $(WXDIR)\include\msw\wx.rc
46 $(rc) -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa -fo$@ client.rc
47
48
49 server.obj: server.$(SRCSUFF)
50 $(cc) $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
51
52 clean:
53 -erase *.obj
54 -erase *.exe
55 -erase *.lib
56 -erase *.res
57 -erase *.sbr
58 -erase *.pdb