summaryrefslogtreecommitdiffstats
path: root/tmake/doc/m-win32-msvc.html
blob: 24097cc499fd0d476fa7c7ed95e8cc2a41c71b64 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!doctype HTML public "-//W3C//DTD HTML 3.2//EN">
<html><head><title>
Generated Makefile for  Win32 / Microsoft Visual C++
</title></head><body bgcolor="#ffffff">
<h2 align=center>Generated Makefile for Win32 / Microsoft Visual C++</h2>

<pre>
#############################################################################
# Makefile for building hello
# Generated by tmake at 20:40, 1998/02/27
#     Project: hello
#    Template: app
#############################################################################

####### Compiler, tools and options

CC	=	cl
CFLAGS	=	-nologo -W3 -O2
INCPATH	=	-I"$(QTDIR)\include"
LINK	=	link
LFLAGS	=	/NOLOGO /SUBSYSTEM:windows
LIBS	=	$(QTDIR)\lib\qt.lib user32.lib gdi32.lib comdlg32.lib wsock32.lib
MOC	=	moc

####### Files

HEADERS =	hello.h
SOURCES =	hello.cpp \
		main.cpp
OBJECTS =	hello.obj \
		main.obj
SRCMOC	=	moc_hello.cpp
OBJMOC	=	moc_hello.obj
TARGET	=	hello.exe

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .c

.cpp.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.cxx.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.cc.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

.c.obj:
	$(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<
	    $(OBJECTS) $(OBJMOC) $(LIBS)
<<

moc: $(SRCMOC)

tmake: Makefile

Makefile: hello.pro
	tmake hello.pro -o Makefile

clean:
	-del hello.obj
	-del main.obj
	-del moc_hello.cpp
	-del moc_hello.obj
	-del $(TARGET)

####### Compile

hello.obj: hello.cpp \
		hello.h

main.obj: main.cpp \
		hello.h

moc_hello.obj: moc_hello.cpp \
		hello.h

moc_hello.cpp: hello.h
	$(MOC) hello.h -o moc_hello.cpp
</pre>
</body></html>