summaryrefslogtreecommitdiffstats
path: root/tmake/doc/m-linux-gcc.html
blob: 300ef35c0a38a1cf43b0bc2b3eecb0d3547ebb78 (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
<!doctype HTML public "-//W3C//DTD HTML 3.2//EN">
<html><head><title>
Generated Makefile for Linux / GNU g++
</title></head><body bgcolor="#ffffff">
<h2 align=center>Generated Makefile for Linux / GNU gcc</h2>

<pre>
#############################################################################
# Makefile for building hello
# Generated by tmake at 10:11, 1998/07/07
#     Project: hello
#    Template: app
#############################################################################

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

CC	=	g++
CFLAGS	=	-Wall -W -O2 -fno-strength-reduce
INCPATH	=	-I$(QTDIR)/include
LINK	=	g++
LFLAGS	=	
LIBS	=	-L$(QTDIR)/lib -lqt -L/usr/X11R6/lib -lX11
MOC	=	moc

####### Files

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

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .C .c

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

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

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

.C.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

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

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake hello.pro

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(TARGET)
	-rm -f *~ core

####### Compile

hello.o: hello.cpp \
		hello.h

main.o: main.cpp \
		hello.h

moc_hello.o: moc_hello.cpp \
		hello.h

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