File: Makefile

package info (click to toggle)
pppload 1.0-5
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 116 kB
  • ctags: 84
  • sloc: cpp: 408; makefile: 175
file content (180 lines) | stat: -rw-r--r-- 6,268 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
####### Installation
RM=rm -f
LN=ln -sf
INSTALL=install
BINDIR=$(PREFIX)/usr/X11R6/bin
MANDIR=$(PREFIX)/usr/X11R6/man/man1

####### Directories

QTDIR   =   /usr/lib/qt
BASEDIR	=	$(QTDIR)
INCDIR	=	/usr/include/qt
LIBDIR	=       /usr/X11R6/lib

####### Compiler

CFLAGS	=	-pipe -O2 -m486 -Wall -g
LFLAGS	=	-L$(LIBDIR) -lqt
LEXTRA	= 	
CC		=	g++

#######	Files

HEADERS =	PPPStats.H		\
			MainWindow.H	\
			Options.H

SOURCES	=	pppload.C		\
            PPPStats.C		\
			MainWindow.C	\
			Options.C

OBJECTS	=	pppload.o		\
            PPPStats.o		\
			MainWindow.o	\
			Options.o

SRCMETA =	mPPPStats.C		\
            mMainWindow.C

OBJMETA =	mPPPStats.o		\
            mMainWindow.o

TARGET	=	pppload
VERSION =	1.0

#######	Implicit rules

.SUFFIXES:
.SUFFIXES: .C $(SUFFIXES)

.C.o:
	$(CC) -c $(CFLAGS) -I$(INCDIR) $<

#######	Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS) $(OBJMETA)
	$(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS) $(LEXTRA)

depend: $(SRCMETA)
	makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null

showfiles:
	@echo $(SOURCES) $(HEADERS) Makefile

clean:
	/bin/rm -f *.o *.bak *BAK *~ *% #*
	/bin/rm -f $(SRCMETA)

veryclean: clean
	/bin/rm -f $(TARGET)

doc:
	../h2html-1.0/h2html $(HEADERS)
	
srctar:
	make veryclean
	make doc
	cd ..; tar -zcvf pppload-$(VERSION).tar.gz pppload-$(VERSION)

bintar:
	make veryclean
	make doc
	make
	strip $(TARGET)
	make clean
	cd ..; tar -zcvf pppload-$(VERSION)-bin.tar.gz pppload-$(VERSION)

install:
	$(INSTALL) -s pppload $(BINDIR)
	$(INSTALL) pppload.1 $(MANDIR)

uninstall:
	$(RM) $(BINDIR)/pppload
	$(RM) $(MANDIR)/pppload.1

####### Meta objects

mPPPStats.C: PPPStats.H
	moc -o mPPPStats.C PPPStats.H
	
mMainWindow.C: MainWindow.H
	moc -o mMainWindow.C MainWindow.H

# DO NOT DELETE THIS LINE -- make depend depends on it.

pppload.o: /usr/include/qt/qapp.h /usr/include/qt/qwidget.h
pppload.o: /usr/include/qt/qwindefs.h /usr/include/qt/qobjdefs.h
pppload.o: /usr/include/qt/qglobal.h /usr/include/qt/qobject.h
pppload.o: /usr/include/qt/qstring.h /usr/include/qt/qarray.h
pppload.o: /usr/include/qt/qgarray.h /usr/include/qt/qshared.h
pppload.o: /usr/include/qt/qgeneric.h /usr/include/string.h
pppload.o: /usr/include/features.h /usr/include/sys/cdefs.h
pppload.o: /usr/include/gnu/stubs.h
pppload.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
pppload.o: /usr/include/qt/qevent.h /usr/include/qt/qrect.h
pppload.o: /usr/include/qt/qsize.h /usr/include/qt/qpoint.h
pppload.o: /usr/include/qt/qpaintd.h /usr/include/qt/qpalette.h
pppload.o: /usr/include/qt/qcolor.h /usr/include/qt/qcursor.h
pppload.o: /usr/include/qt/qfont.h /usr/include/qt/qfontmet.h
pppload.o: /usr/include/qt/qfontinf.h PPPStats.H MainWindow.H
pppload.o: /usr/include/qt/qpixmap.h Options.H
PPPStats.o: /usr/include/stdlib.h /usr/include/features.h
PPPStats.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
PPPStats.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
PPPStats.o: /usr/include/sys/types.h /usr/include/gnu/types.h
PPPStats.o: /usr/include/time.h /usr/include/endian.h /usr/include/bytesex.h
PPPStats.o: /usr/include/sys/select.h /usr/include/selectbits.h
PPPStats.o: /usr/include/alloca.h /usr/include/errno.h /usr/include/errnos.h
PPPStats.o: /usr/include/linux/errno.h /usr/include/asm/errno.h
PPPStats.o: /usr/include/stdio.h /usr/include/libio.h
PPPStats.o: /usr/include/_G_config.h
PPPStats.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h
PPPStats.o: /usr/include/stdio_lim.h /usr/include/sys/ioctl.h
PPPStats.o: /usr/include/ioctls.h /usr/include/asm/ioctls.h
PPPStats.o: /usr/include/asm/ioctl.h /usr/include/ioctl-types.h
PPPStats.o: /usr/include/sys/ttydefaults.h /usr/include/sys/socket.h
PPPStats.o: /usr/include/socketbits.h /usr/include/sockaddrcom.h
PPPStats.o: /usr/include/asm/socket.h /usr/include/asm/sockios.h
PPPStats.o: /usr/include/net/if.h /usr/include/net/ppp_defs.h
PPPStats.o: /usr/include/asm/types.h /usr/include/linux/ppp_defs.h PPPStats.H
PPPStats.o: /usr/include/qt/qobject.h /usr/include/qt/qobjdefs.h
PPPStats.o: /usr/include/qt/qglobal.h /usr/include/qt/qstring.h
PPPStats.o: /usr/include/qt/qarray.h /usr/include/qt/qgarray.h
PPPStats.o: /usr/include/qt/qshared.h /usr/include/qt/qgeneric.h
PPPStats.o: /usr/include/string.h /usr/include/qt/qevent.h
PPPStats.o: /usr/include/qt/qwindefs.h /usr/include/qt/qrect.h
PPPStats.o: /usr/include/qt/qsize.h /usr/include/qt/qpoint.h Options.H
PPPStats.o: /usr/include/qt/qcolor.h
MainWindow.o: /usr/include/qt/qpainter.h /usr/include/qt/qpaintd.h
MainWindow.o: /usr/include/qt/qwindefs.h /usr/include/qt/qobjdefs.h
MainWindow.o: /usr/include/qt/qglobal.h /usr/include/qt/qrect.h
MainWindow.o: /usr/include/qt/qsize.h /usr/include/qt/qpoint.h
MainWindow.o: /usr/include/qt/qcolor.h /usr/include/qt/qfontmet.h
MainWindow.o: /usr/include/qt/qfont.h /usr/include/qt/qstring.h
MainWindow.o: /usr/include/qt/qarray.h /usr/include/qt/qgarray.h
MainWindow.o: /usr/include/qt/qshared.h /usr/include/qt/qgeneric.h
MainWindow.o: /usr/include/string.h /usr/include/features.h
MainWindow.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
MainWindow.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
MainWindow.o: /usr/include/qt/qfontinf.h /usr/include/qt/qregion.h
MainWindow.o: /usr/include/qt/qpen.h /usr/include/qt/qbrush.h
MainWindow.o: /usr/include/qt/qpntarry.h /usr/include/qt/qwmatrix.h
MainWindow.o: MainWindow.H /usr/include/qt/qwidget.h
MainWindow.o: /usr/include/qt/qobject.h /usr/include/qt/qevent.h
MainWindow.o: /usr/include/qt/qpalette.h /usr/include/qt/qcursor.h
MainWindow.o: /usr/include/qt/qpixmap.h Options.H
Options.o: /usr/include/stdio.h /usr/include/libio.h /usr/include/features.h
Options.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
Options.o: /usr/include/_G_config.h /usr/include/gnu/types.h
Options.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
Options.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stdarg.h
Options.o: /usr/include/stdio_lim.h Options.H /usr/include/qt/qcolor.h
Options.o: /usr/include/qt/qwindefs.h /usr/include/qt/qobjdefs.h
Options.o: /usr/include/qt/qglobal.h /usr/include/qt/qstring.h
Options.o: /usr/include/qt/qarray.h /usr/include/qt/qgarray.h
Options.o: /usr/include/qt/qshared.h /usr/include/qt/qgeneric.h
Options.o: /usr/include/string.h