File: Makefile.am

package info (click to toggle)
spass 3.7-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,500 kB
  • ctags: 5,981
  • sloc: ansic: 50,634; yacc: 3,038; sh: 1,072; lex: 430; perl: 407; makefile: 394
file content (500 lines) | stat: -rw-r--r-- 13,465 bytes parent folder | download | duplicates (3)
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
## Process this file with automake to produce Makefile.in

## Options we pass to automake
##
## * foreign means we are not a GNU package, so Automake is less
## strict about checking some GNU automake packaging issues.
##
## * subdir-objects means put object files in respective
## subdirectories in build directory.
AUTOMAKE_OPTIONS = foreign subdir-objects

## Tell ac local to pick up the m4 macros from autoconf-macros directory
ACLOCAL_FLAGS=-I m4

AM_CPPFLAGS= \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/SPASS 

BUILT_SOURCES = \
	SPASS/dfgparser.c \
	SPASS/dfgparser.h \
	SPASS/tptpparser.h \
	SPASS/tptpparser.c \
	SPASS/iaparser.c \
	SPASS/iaparser.h

BISON_FLAGS = -d

SPASS/dfgparser.c: SPASS/dfgparser.y
	$(BISON) $(BISON_FLAGS) -p dfg_ -o SPASS/dfgparser.c $(srcdir)/SPASS/dfgparser.y

SPASS/dfgparser.h: SPASS/dfgparser.c

SPASS/tptpparser.c: SPASS/tptpparser.y
	$(BISON) $(BISON_FLAGS) -p tptp_ -o SPASS/tptpparser.c $(srcdir)/SPASS/tptpparser.y

SPASS/tptpparser.h: SPASS/tptpparser.c

SPASS/iaparser.c: SPASS/iaparser.y
	$(BISON) $(BISON_FLAGS) -p ia_ -o SPASS/iaparser.c $(srcdir)/SPASS/iaparser.y

SPASS/iaparser.h: SPASS/iaparser.c

FLEX_FLAGS = -Ce

SPASS/dfgscanner.c: SPASS/dfgscanner.l
	$(FLEX) $(FLEX_FLAGS) -Pdfg_ -oSPASS/dfgscanner.c $(srcdir)/SPASS/dfgscanner.l

SPASS/tptpscanner.c: SPASS/tptpscanner.l
	$(FLEX) $(FLEX_FLAGS) -Ptptp_ -oSPASS/tptpscanner.c $(srcdir)/SPASS/tptpscanner.l

SPASS/iascanner.c: SPASS/iascanner.l
	$(FLEX) $(FLEX_FLAGS) -Pia_ -oSPASS/iascanner.c $(srcdir)/SPASS/iascanner.l


## List of all scripts created by SPASS
## To add a new script, append its name to this variable.
bin_SCRIPTS  = \
        scripts/dfg2otter.pl \
	scripts/FLOTTER


## List of all programs in SPASS
## To add a new program, append its name to this variable.
bin_PROGRAMS = \
        SPASS/SPASS \
        SPASS/dfg2otter \
        SPASS/dfg2tptp \
	SPASS/tptp2dfg \
        SPASS/dfg2ascii \
        SPASS/dfg2dfg 

## Placeholder variable for the large codebase
## that is shared between the different programs.
BASE = \
        SPASS/clause.c \
        SPASS/clause.h \
        SPASS/cmdline.c \
        SPASS/cmdline.h \
        SPASS/context.c \
        SPASS/context.h \
	SPASS/description.c \
        SPASS/description.h \
        SPASS/dfg.h \
        SPASS/dfgparser.c \
        SPASS/dfgparser.h \
        SPASS/dfgscanner.c \
        SPASS/tptp.h \
        SPASS/tptpparser.c \
        SPASS/tptpparser.h \
        SPASS/tptpscanner.c \
	SPASS/eml.c \
	SPASS/eml.h \
        SPASS/flags.c \
        SPASS/flags.h \
        SPASS/foldfg.c \
        SPASS/foldfg.h \
	SPASS/hashmap.c \
	SPASS/hashmap.h \
        SPASS/kbo.c \
        SPASS/kbo.h \
        SPASS/list.c \
        SPASS/list.h \
        SPASS/memory.c \
        SPASS/memory.h \
        SPASS/misc.c \
        SPASS/misc.h \
        SPASS/order.c \
        SPASS/order.h \
        SPASS/rpos.c \
        SPASS/rpos.h \
        SPASS/sharing.c \
        SPASS/sharing.h \
        SPASS/st.c \
        SPASS/st.h \
        SPASS/stack.c \
        SPASS/stack.h \
        SPASS/strings.c \
        SPASS/strings.h \
        SPASS/subst.c \
        SPASS/subst.h \
        SPASS/symbol.c \
        SPASS/symbol.h \
        SPASS/term.c \
        SPASS/term.h \
        SPASS/unify.c \
        SPASS/unify.h \
	SPASS/version.h

## Sources for dfg2otter
SPASS_dfg2otter_SOURCES = \
        $(BASE) \
        SPASS/dfg2otter.c

## Sources for dfg2tptp
SPASS_dfg2tptp_SOURCES = \
        $(BASE) \
        SPASS/dfg2tptp.c

## Sources for tptp2dfg
SPASS_tptp2dfg_SOURCES = \
        $(BASE) \
        SPASS/tptp2dfg.c

## Sources for dfg2ascii
SPASS_dfg2ascii_SOURCES = \
        $(BASE) \
        SPASS/dfg2ascii.c

## Sources for dfg2dfg
SPASS_dfg2dfg_SOURCES = \
        $(BASE) \
        SPASS/approx.c \
        SPASS/approx.h \
        SPASS/dfg2dfg.c

if COND_WINDOWS
ALARM_C = lib/alarm.c
GETTIMEOFDAY = lib/gettimeofday.c lib/gettimeofday.h
else
ALARM_C = ## SPASS/alarm.c
endif

## Sources for SPASS
SPASS_SPASS_SOURCES = \
        $(BASE) \
        $(ALARM_C) \
	$(GETTIMEOFDAY) \
        SPASS/analyze.c \
        SPASS/analyze.h \
        SPASS/clock.c \
        SPASS/clock.h \
        SPASS/closure.c \
        SPASS/closure.h \
        SPASS/cnf.c \
        SPASS/cnf.h \
        SPASS/component.c \
        SPASS/component.h \
        SPASS/condensing.c \
        SPASS/condensing.h \
        SPASS/defs.c \
        SPASS/defs.h \
        SPASS/doc-proof.c \
        SPASS/doc-proof.h \
        SPASS/graph.c \
        SPASS/graph.h \
        SPASS/hash.c \
        SPASS/hash.h \
        SPASS/hasharray.c \
        SPASS/hasharray.h \
        SPASS/ia.h \
        SPASS/iaparser.c \
        SPASS/iaparser.h \
        SPASS/iascanner.c \
        SPASS/partition.c \
        SPASS/partition.h \
        SPASS/proofcheck.c \
        SPASS/proofcheck.h \
        SPASS/ras.c \
        SPASS/ras.h \
        SPASS/renaming.c \
        SPASS/renaming.h \
        SPASS/resolution.c \
        SPASS/resolution.h \
        SPASS/rules-inf.c \
        SPASS/rules-inf.h \
        SPASS/rules-red.c \
        SPASS/rules-red.h \
        SPASS/rules-sort.c \
        SPASS/rules-sort.h \
        SPASS/rules-split.c \
        SPASS/rules-split.h \
        SPASS/rules-ur.c \
        SPASS/rules-ur.h \
        SPASS/search.c \
        SPASS/search.h \
        SPASS/sort.c \
        SPASS/sort.h \
        SPASS/subsumption.c \
        SPASS/subsumption.h \
        SPASS/table.c \
        SPASS/table.h \
        SPASS/tableau.c \
        SPASS/tableau.h \
        SPASS/terminator.c \
        SPASS/terminator.h \
        SPASS/top.c \
        SPASS/vector.c \
        SPASS/vector.h

if COND_WINDOWS
SPASS_SPASS_LDADD = \
        -L$(top_builddir)/lib/ \
        -lgnu \
	-lwinmm
endif

scripts/FLOTTER: SPASS/SPASS
	$(RM) scripts/FLOTTER
	$(LN_S) SPASS/SPASS scripts/FLOTTER

if COND_WINDOWS
# We don't set the values for the prefix on Windows, since we use a 
# flat file hierarchy there.
else
QMAKE_DOC_PARAMETERS="DEFINES += HELP_PREFIX=\\\"\\\\\\\"$(datadir)/spass/\\\\\\\"\\\""
QMAKE_BIN_PARAMETERS="DEFINES += SPASS_BIN_PREFIX=\\\"\\\\\\\"$(bindir)/\\\\\\\"\\\"" 
endif

if COND_GUI
QT_GENERATED=gui/Makefile.qmake
BUILT_SOURCES += $(QT_GENERATED)

QMAKE_BUILT_PROGRAM=SPASSDesktop
QMAKE_PROJECT=$(QMAKE_BUILT_PROGRAM).pro

gui/Makefile.qmake: gui/$(QMAKE_PROJECT)
	(mkdir -p gui && cd gui && $(QMAKE) $(QMAKE_DOC_PARAMETERS) $(QMAKE_BIN_PARAMETERS) ../$(srcdir)/gui/$(QMAKE_PROJECT) -o Makefile.qmake)

all-local: 
	$(MAKE) -C gui -f Makefile.qmake $(AM_MAKEFLAGS) all

gui-clean-local: 
	$(MAKE) -C gui -f Makefile.qmake $(AM_MAKEFLAGS) clean

distclean-local: 
	$(RM) $(QT_GENERATED)
	$(RM) gui/$(QMAKE_BUILT_PROGRAM)$(EXEEXT)

# Assuming the package knows how to install itself
install-data-local: 
	$(MAKE) -C gui -f Makefile.qmake $(AM_MAKEFLAGS) install

install-exec-local: 
	$(INSTALL_PROGRAM) gui/$(QMAKE_BUILT_PROGRAM)$(EXEEXT) $(DESTDIR)$(bindir)/$(QMAKE_BUILT_PROGRAM)$(EXEEXT) 

uninstall-local: 
	$(MAKE) -C gui -f Makefile.qmake $(AM_MAKEFLAGS) uninstall
else
gui-clean-local:

endif

# Distribute desktop source files from here.
##SPASSDESKTOP_FILES = \
##        gui/AboutListener.cpp \
##        gui/AboutListener.h \
##        gui/CopyOutputListener.cpp \
##        gui/CopyOutputListener.h \
##        gui/ExitListener.cpp \
##        gui/ExitListener.h \
##        gui/FileListener.cpp \
##        gui/FileListener.h \
##        gui/FontChangedListener.cpp \
##        gui/FontChangedListener.h \
##        gui/HelpListener.cpp \
##        gui/HelpListener.h \
##        gui/KillApplicationListener.cpp \
##        gui/KillApplicationListener.h \
##        gui/Listener.cpp \
##        gui/Listener.h \
##        gui/NewFileListener.cpp \
##        gui/NewFileListener.h \
##        gui/OpenFileListener.cpp \
##        gui/OpenFileListener.h \
##        gui/PDFHelpListener.cpp \
##        gui/PDFHelpListener.h \
##        gui/RunApplicationListener.cpp \
##        gui/RunApplicationListener.h \
##        gui/SPASSAboutBox.cpp \
##        gui/SPASSAboutBox.h \
##        gui/SPASSActions.cpp \
##        gui/SPASSActions.h \
##        gui/SPASSApplications.cpp \
##        gui/SPASSApplications.h \
##        gui/SPASSDesktop.cpp \
##        gui/SPASSDesktop.pro \
##        gui/SPASSDesktopIcon.ico \
##        gui/SPASSDesktopIcon.rc \
##        gui/SPASSDesktopMainWidget.cpp \
##        gui/SPASSDesktopMainWidget.h \
##        gui/SPASSDesktopWidget.cpp \
##        gui/SPASSDesktopWidget.h \
##        gui/SPASSDialogs.cpp \
##        gui/SPASSDialogs.h \
##        gui/SPASSFiles.cpp \
##        gui/SPASSFiles.h \
##	gui/SPASSIcons.qrc \
##        gui/SPASSPreferences.cpp \
##        gui/SPASSPreferences.h \
##        gui/SPASSSplitter.cpp \
##        gui/SPASSSplitter.h \
##        gui/SPASSStatusBar.cpp \
##        gui/SPASSStatusBar.h \
##        gui/SPASSTextEdit.cpp \
##        gui/SPASSTextEdit.h \
##        gui/SPASSToolOptions.cpp \
##        gui/SPASSToolOptions.h \
##        gui/SPASSdefines.h \
##        gui/SaveAsFileListener.cpp \
##        gui/SaveAsFileListener.h \
##        gui/SaveFileListener.cpp \
##        gui/SaveFileListener.h \
##	gui/copy.svg \
##	gui/cut.svg \
##	gui/folder.svg \
##	gui/font.svg \
##	gui/new.svg \
##	gui/off.svg \
##	gui/paste.svg \
##	gui/run.svg \
##	gui/run_asci.svg \
##	gui/run_dfg.svg \
##	gui/save.svg \
##	gui/stop.svg \
##	gui/to_edit.svg \
##	gui/spasslogo.gif
##
## I've split TEXINFOS into two variables,
## as otherwise makeinfo complains about
## being run on single *.texi files where
## the node-tree structure isn't right.

info_TEXINFOS = \
	doc/texinfo/script.texi

info_SPASS_TEXINFOS = \
	doc/texinfo/SPASS.texi \
	doc/texinfo/dfg2otter.pl.texi \
	doc/texinfo/dfg2dfg.texi \
	doc/texinfo/dfg2ascii.texi \
	doc/texinfo/dfg2tptp.texi \
	doc/texinfo/tptp2dfg.texi \
	doc/texinfo/dfg2otter.texi \
	doc/texinfo/spassfaq.texi

htmldir = $(datadir)/spass/html/

html_DATA = \
	doc/html/script.html \
	doc/html/script_1.html \
	doc/html/script_2.html \
	doc/html/script_3.html \
	doc/html/script_4.html \
	doc/html/script_5.html \
	doc/html/script_6.html \
	doc/html/script_7.html \
	doc/html/script_abt.html \
	doc/html/script_ovr.html \
	doc/html/LICENCE.html 

BUILT_SOURCES += $(html_DATA)

pdfdir = $(datadir)/spass/pdf/

pdf_DATA = \
	doc/handbook/handbook-spass.pdf \
	doc/syntax/spass-input-syntax.pdf \
	doc/tutorial/tutorial.pdf

man_MANS = \
	doc/man/SPASS.1 \
	doc/man/dfg2otter.pl.1 \
	doc/man/dfg2dfg.1 \
	doc/man/dfg2ascii.1 \
	doc/man/dfg2otter.1 \
	doc/man/dfg2tptp.1 \
	doc/man/tptp2dfg.1

TEXI2POD = scripts/texi2pod.pl
POD2MAN_FLAGS =  -c SPASS

doc/man/SPASS.1:  doc/texinfo/SPASS.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/SPASS.texi > doc/man/SPASS.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/SPASS.pod doc/man/SPASS.1 )

doc/man/dfg2ascii.1:  doc/texinfo/dfg2ascii.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/dfg2ascii.texi > doc/man/dfg2ascii.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/dfg2ascii.pod doc/man/dfg2ascii.1 )

doc/man/dfg2dfg.1:  doc/texinfo/dfg2dfg.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/dfg2dfg.texi > doc/man/dfg2dfg.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/dfg2dfg.pod doc/man/dfg2dfg.1 )

doc/man/dfg2otter.1:  doc/texinfo/dfg2otter.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/dfg2otter.texi > doc/man/dfg2otter.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/dfg2otter.pod doc/man/dfg2otter.1 )

doc/man/dfg2otter.pl.1:  doc/texinfo/dfg2otter.pl.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/dfg2otter.pl.texi > doc/man/dfg2otter.pl.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/dfg2otter.pl.pod doc/man/dfg2otter.pl.1 )

doc/man/dfg2tptp.1:  doc/texinfo/dfg2tptp.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/dfg2tptp.texi > doc/man/dfg2tptp.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/dfg2tptp.pod doc/man/dfg2tptp.1 )

doc/man/tptp2dfg.1:  doc/texinfo/tptp2dfg.texi
	(mkdir -p doc && \
	mkdir -p doc/man && \
	$(TEXI2POD) $(srcdir)/doc/texinfo/tptp2dfg.texi > doc/man/tptp2dfg.pod && \
	$(POD2MAN) $(POD2MAN_FLAGS) doc/man/tptp2dfg.pod doc/man/tptp2dfg.1 )

man-clean-local:
	$(RM) doc/man/SPASS.pod
	$(RM) doc/man/dfg2ascii.pod 
	$(RM) doc/man/dfg2dfg.pod 
	$(RM) doc/man/dfg2tptp.pod 
	$(RM) doc/man/tptp2dfg.pod 
	$(RM) doc/man/dfg2otter.pod 
	$(RM) doc/man/dfg2otter.pl.pod 
	if test $(top_builddir) != $(srcdir); then \
		$(RM) $(man_MANS); \
	fi

TEXI2HTML_FLAGS=--split=chapter --no-sec-nav --output doc/html/

## Convert texi files to HTML
html-local: $(info_TEXINFOS) $(info_SPASS_TEXINFOS)
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) $(srcdir)/doc/texinfo/script.texi

clean-local: gui-clean-local man-clean-local
	if test $(top_builddir) != $(srcdir); then \
		$(RM) $(html_DATA); \
	fi

EXAMPLES = \
	examples/problem54.dfg 

EXTRA_DIST = \
	$(EXAMPLES) \
	$(info_SPASS_TEXINFOS) \
	$(man_MANS) \
	$(html_DATA) \
	$(pdf_DATA) \
##	$(SPASSDESKTOP_FILES)
        SPASS/dfgparser.y \
        SPASS/dfgscanner.l \
        SPASS/tptpparser.y \
        SPASS/tptpscanner.l \
        SPASS/iaparser.y \
        SPASS/iascanner.l \
	README \
	LICENCE \
	INSTALL \
	VERSIONHISTORY \
	m4/ac_prog_perl_version.m4 \
	scripts/dfg2otter.pl.in \
	scripts/texi2pod.pl.in