File: Jamfile

package info (click to toggle)
xxdiff 1%3A4.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 2,245
  • sloc: cpp: 18,495; python: 6,134; sh: 1,543; ansic: 1,535; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 82
file content (363 lines) | stat: -rw-r--r-- 7,917 bytes parent folder | download | duplicates (10)
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# # -*- mode: jam -*-
# #*****************************************************************************\
# # $RCSfile$
# #
# # Copyright (C) 2001-2003  Martin Blais <blais@furius.ca>
# #
# # This program is free software; you can redistribute it and/or modify
# # it under the terms of the GNU General Public License as published by
# # the Free Software Foundation; either version 2 of the License, or
# # (at your option) any later version.
# #
# # This program is distributed in the hope that it will be useful,
# # but WITHOUT ANY WARRANTY; without even the implied warranty of
# # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# # GNU General Public License for more details.
# #
# # You should have received a copy of the GNU General Public License
# # along with this program; if not, write to the Free Software
# # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# #****************************************************************************/
# #
# # Generate with xxdiff.t template, as `tmake -t xxdiff.t xxdiff.pro > Makefile'
# #
# 
# TEMPLATE = xxdiff
# CONFIG = release qt warn_on
# 
# # For KDE support, uncomment the following lines:
# #TMAKE_CFLAGS += -DXX_KDE -I/usr/include/kde
# #TMAKE_CXXFLAGS += -DXX_KDE -I/usr/include/kde
# #TMAKE_LIBS += -lkdeui -lkio -lqt-mt
# 
# debug:TMAKE_CFLAGS += -DXX_DEBUG
# debug:TMAKE_CXXFLAGS += -DXX_DEBUG
# 
# #XX_VERSION=2.5-devel
# XX_VERSION=2.6
# 
# TMAKE_CFLAGS_DEBUG += -DXX_VERSION="\"$$XX_VERSION ($(COMPILE_DATE))\""
# TMAKE_CFLAGS_RELEASE += -DXX_VERSION="\"$$XX_VERSION\""
# 
# INCLUDEPATH += .
# 
# LEXYACC  = resParser
# LEXYACC_OBJ  = $$LEXYACC.l.c $$LEXYACC.y.c $$LEXYACC.y.h
# TMAKE_CLEAN += $$LEXYACC_OBJ doc.h
# 
# # Needed for Windows compile?
# #REQUIRES=full-config
# 
# #
# # win32-msvc
# #
# 
# win32-msvc:DEFINES += QT_DLL QT_THREAD_SUPPORT WINDOWS HAVE_STRING_H
# #win32-msvc:TMAKE_CFLAGS += -GX
# win32-msvc:TMAKE_CXXFLAGS += -GX
# win32-msvc:INCLUDEPATH += winfixes
# 
# #win32-msvc:TMAKE_LFLAGS += /NODEFAULTLIB:MSVCRT
# 
# #
# # irix-n32
# #
# 
# irix-n32:TMAKE_CXXFLAGS += -woff 1375,1424,3201,1209,1110 -LANG:std
# irix-n32:TMAKE_CXXFLAGS += -DCOMPILER_MIPSPRO
# 
# # always disable full warnings for C code.
# irix-n32:TMAKE_CFLAGS_WARN_ON =
# irix-n32:TMAKE_CC = cc
# irix-n32:TMAKE_CFLAGS = $$TMAKE_CXXFLAGS
# 
# irix-n32:TMAKE_MOC = ${QTDIR}/bin/moc
# 
# irix-n32:TMAKE_LIBS += -lC -lCio -lm
# irix-n32:TMAKE_LIBDIR_QT = $(QTDIR)/lib32
# irix-n32:TMAKE_LIBS += -Wl,-rpath -Wl,$(QTDIR)/lib32
# 
# irix-n32:TMAKE_CFLAGS_RELEASE += -OPT:Olimit=4000
# 
# 
# #
# # linux-g++
# #
# 
# linux-g++:TMAKE_CXXFLAGS += -DCOMPILER_GNU
# 
# # debugging memory problems
# #linux-g++:TMAKE_CXXFLAGS += -fcheck-memory-usage
# #linux-g++:TMAKE_LIBS += -lmpatrol -lbfd -liberty
# 
# #
# # solaris-cc
# #
# 
# solaris-cc:TMAKE_CXXFLAGS += -DCOMPILER_SUNWSPRO
# 
# #
# # aix-xlc
# #
# 
# aix-xlc:TMAKE_CXXFLAGS += -DCOMPILER_AIXXLC
# 
# #
# # osf1-g++
# #
# 
# osf1-g++:TMAKE_CXXFLAGS += -DCOMPILER_GNU
# 
# 
# # Add diff files to link against directly
# DIFFUTILS_DIR = ../diffutils-2.7
# 
# # TMAKE_LIBS +=  \
# # 	$$DIFFUTILS_DIR/analyze.o \
# # 	$$DIFFUTILS_DIR/cmpbuf.o \
# # 	$$DIFFUTILS_DIR/dir.o \
# # 	$$DIFFUTILS_DIR/io.o \
# # 	$$DIFFUTILS_DIR/util.o \
# # 	$$DIFFUTILS_DIR/context.o \
# # 	$$DIFFUTILS_DIR/ed.o \
# # 	$$DIFFUTILS_DIR/ifdef.o \
# # 	$$DIFFUTILS_DIR/normal.o \
# # 	$$DIFFUTILS_DIR/side.o \
# # 	$$DIFFUTILS_DIR/fnmatch.o \
# # 	$$DIFFUTILS_DIR/regex.o \
# # 	$$DIFFUTILS_DIR/version.o \
# # 	$$DIFFUTILS_DIR/diff.o \
# # 	$$DIFFUTILS_DIR/diff3.o
# 
# HEADERS = \
# 	optionsDialog.h \
# 	searchDialog.h \
# 	app.h \
# 	app.inline.h \
# 	cmdline.h \
# 	suicideMessageBox.h \
# 	defs.h \
# 	types.h \
# 	diffs.h \
# 	diffs.inline.h \
# 	builder.h \
# 	builder.inline.h \
# 	builderFiles2.h \
# 	builderFiles3.h \
# 	builderDirs2.h \
# 	builderUnmerge.h \
# 	exceptions.h \
# 	buffer.h \
# 	buffer.inline.h \
# 	help.h \
# 	hordiffImp.h \
# 	line.h \
# 	line.inline.h \
# 	main.h \
# 	overview.h \
# 	resParser.h \
# 	resources.h \
# 	resources.inline.h \
# 	accelUtil.h \
# 	copyLabel.h \
# 	text.h \
# 	scrollView.h \
# 	central.h \
# 	merged.h \
# 	lineNumbers.h \
# 	util.h \
# 	markers.h \
# 	getopt.h \
# 	diffutils.h \
# 	diffutils_hack.h \
# 	doc.qml \
# 	kdeSupport.h \
# 	version.h
# 
# SOURCES = \

C++ = gcc ;
UIC = $(QTDIR)/bin/uic ;
MOC = $(QTDIR)/bin/moc ;

# HDRS += /work/gcc3/usr/include/g++-v3 ;
HDRS += . $(QTDIR)/include ;

DEFINES += COMPILER_GNU ;


Main xxdiff :
 	optionsDialog.cpp
	searchDialog.cpp
	app.cpp
	cmdline.cpp
	suicideMessageBox.cpp
	main.cpp
	overview.cpp
	copyLabel.cpp
	text.cpp
	scrollView.cpp
	central.cpp
	merged.cpp
	lineNumbers.cpp
	util.cpp
	help.cpp
	exceptions.cpp
	builder.cpp
	builderFiles2.cpp
	builderFiles3.cpp
	builderDirs2.cpp
	builderUnmerge.cpp
	diffs.cpp
	hordiffImp.cpp
	line.cpp
	buffer.cpp
	resources.cpp
	accelUtil.cpp
	resParser.cpp
	markers.cpp
	getopt.c
	getopt1.c
	version.c
	.moc.cpp
	;

LINKLIBS += -L$QTDIR/lib -lqt ;



# 
# #	diffutils.cpp
# 
# INTERFACES =
# 	markersWidgetBase.ui
# 	optionsDialogBase.ui
# 	searchDialogBase.ui
# 
# TARGET = xxdiff
# 
# #DEPENDPATH=../../include
# 
# #REQUIRES=large-config
# 


#===============================================================================

rule Moc
{
    Temporary $(<) ;
    NoCare Moc ;
    NotFile Moc ;
    Clean $(<) ;
    RmTemps $(<:S=.o) : $(<) ;
    # are both of the following necessary?
    Depends $(<) : $(>) ;
    Depends $(<:S=.o) : $(<) ;
}

actions Moc
{
    $(RM) $(<)
    for i in $(>) ; do $(MOC) $i >> $(<) ; done
}

Moc .moc.cpp : 
 	optionsDialog.h
 	searchDialog.h
 	app.h
 	app.inline.h
 	cmdline.h
 	suicideMessageBox.h
 	defs.h
 	types.h
 	diffs.h
 	diffs.inline.h
 	builder.h
 	builder.inline.h
 	builderFiles2.h
 	builderFiles3.h
 	builderDirs2.h
 	builderUnmerge.h
 	exceptions.h
 	buffer.h
 	buffer.inline.h
 	help.h
 	hordiffImp.h
 	line.h
 	line.inline.h
 	main.h
 	overview.h
 	resParser.h
 	resources.h
 	resources.inline.h
 	accelUtil.h
 	copyLabel.h
 	text.h
 	scrollView.h
 	central.h
 	merged.h
 	lineNumbers.h
 	util.h
 	markers.h
 	getopt.h
 	diffutils.h
 	diffutils_hack.h
 	doc.qml
 	kdeSupport.h
 	version.h
	;

# And in Jamfile, I do something like this
# 
# Main myapp : ... .moc.cpp ;
# LINKLIBS on myapp += -L$QTDIR/lib -lqt ;
# 
# Moc .moc.cpp : header1.h header2.h ... headern.h ;
# 
# This causes jam to keep a single .o file around, .moc.o, and says that
# .moc.o depends on the temporary file .moc.cpp, which in turn depends on
# all the header files named by the Moc rule. Jam will figure out whether it
# needs to create .moc.cpp and update .moc.o, and if it does it will delete
# .moc.cpp again after compiling it.
# 
# I hope this is understandable. I'll use it to build an Uic rule that
# generates one .h and one .cpp file from one .ui file. Since Jam doesn't
# really like multi-target rules, I hack.
# 
# My goal is to have a rule that I can use like this:
# 
# Uic mumble.h : mumble.ui ;
# 
# And to achieve it, I'll crudely hack that rule so that it'll make a
# mumble.cpp file as well.

rule Uic
{
    Temporary $(<:S=.cpp) ; # the .cpp file is temporary
    Clean $(<:S=.h) ; # jam clean deletes the .h
    Clean $(<:S=.cpp) ; # jam clean deletes the .cpp
    RmTemps $(<:S=.o) : $(<:S=.cpp) ; # jam deletes .cpp after compiling .o
    Depends $(<:S=.h) : $(>) ; # the .h file depends on the .ui file
    Depends $(<:S=.cpp) : $(>) ; # the .cpp file depends on the .ui file
    Depends $(<:S=.o) : $(<:S=.cpp) ; # the .o file depends on the .cpp file
}

# I don't have time to dig into uic right now. The action for Uic has to be
# something like this:

actions Uic
{
    $(UIC) $(>) -o $(<:S=.h)
    $(UIC) $(>) -impl $(<:S=.h) -o $(<:S=.cpp)
}

Uic optionsDialogBase.h : optionsDialogBase.ui ;


# I can probably look into it more thoroughly tomorrow, but I'm pressed for
# time today.
# 
# --Arnt
#