summaryrefslogtreecommitdiffstats
path: root/qnetchess/Makefile.win32
blob: 9179cc83e0a2250d980acf1b707e85cd06c6426b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# $Id: Makefile.win32,v 1.0 2005/01/16 13:45:54 denis Exp $

PROG= QNetChess
CC= cl
CXX= cl
LOCALE_FILE= $(PROG)_ru
CXXFLAGS= -GX -nologo -W3 -MD -O1 -DQT_DLL -DQT_THREAD_SUPPORT -DNO_DEBUG\
	-DLOCALE_FILE=\""$(LOCALE_FILE)"\"
INCPATH= -I"$(QTDIR)\include"
LINK= link
LDFLAGS= /NOLOGO /SUBSYSTEM:windows /OPT:REF
LIBS= $(QTDIR)\lib\qt-mteval321.lib $(QTDIR)\lib\qtmain.lib \
	opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib \
	comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
	uuid.lib imm32.lib winmm.lib wsock32.lib
MOC= $(QTDIR)\bin\moc

OBJS= main.obj mainwindow.obj gameboard.obj gamesocket.obj\
	mainwindow.moc gameboard.moc gamesocket.moc
TARGET= $(PROG).exe


.SUFFIXES: .h .cxx .cpp .obj .moc

.cpp.obj:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<

.cxx.moc:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<

.h.cxx:
	$(MOC) -o $@ $<

all: $(OBJS)
	$(LINK) $(LDFLAGS) /OUT:$(TARGET) @<<
	    $(OBJS) $(LIBS)
<<

clean:
	-del main.obj
	-del mainwindow.obj
	-del gameboard.obj
	-del gamesocket.obj
	-del mainwindow.moc
	-del gameboard.moc
	-del gamesocket.moc
	-del mainwindow.cxx
	-del gameboard.cxx
	-del gamesocket.cxx

distclean: clean
	-del $(TARGET)


main.obj:		main.cpp
mainwindow.obj:		mainwindow.cpp
gameboard.obj:		gameboard.cpp
gamesocket.obj:		gamesocket.cpp
mainwindow.moc:		mainwindow.cxx
gameboard.moc:		gameboard.cxx
gamesocket.moc:		gamesocket.cxx
mainwindow.cxx:		mainwindow.h
gameboard.cxx:		gameboard.h
gamesocket.cxx:		gamesocket.h