File: Makefile

package info (click to toggle)
hol88 2.02.19940316-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 63,120 kB
  • ctags: 19,367
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,074; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (133 lines) | stat: -rw-r--r-- 4,107 bytes parent folder | download | duplicates (11)
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
# =====================================================================
#
# 		 MAKEFILE FOR THE HOL LIBRARY: pair
#
# $Id: Makefile,v 3.1 1993/12/07 14:42:10 jg Exp $
# =====================================================================

# =====================================================================
# MAIN ENTRIES:
#
#    make all	    : check out the source code,
#                     create theories and compile code
#
#    make clean	    : remove only compiled code
#	
#    make clobber   : remove both theories and compiled code
#
#    make decimate  : remove theories, compiled code and source code
#                     that isn't different to that in REVISION.
#
#    make destroy   : remove theories, compiled code and source code.
#                     HANDLE WITH CARE
#
#    make source    : check out the source code (see REVISION)
#
# ---------------------------------------------------------------------
# MACROS:
#
#    HOL            : the pathname of the version of hol used
#    SOURCE         : all the source files
#    REVISION       : The rcs revision of the source code to get
# =====================================================================

HOL= ../../hol

SOURCE= all.ml basic.ml both1.ml both2.ml conv.ml exi.ml pair.ml syn.ml

REVISION=

# =====================================================================
# Basic functions.
# =====================================================================

all: pair_ml.o
	@echo "===> library pair built"

source: ${SOURCE}

clean:
	rm -f *.l *.c *.o *.h *.data *.i *.s *.ir
	@echo "===> library pair: all object code deleted"

clobber:
	rm -f *.l *.c *.o *.th *.h *.data *.i *.s *.ir
	@echo "===> library pair: all object code and theory files deleted"

# decimate:
# 	rm -f *.l *.c *.o *.th *.h *.data *.i *.s *.ir
# 	rcsclean -r${REVISION} ${SOURCE}
# 	@echo "===> library pair: all source, object code and theories deleted"
# 
# destroy:
# 	rm -f *.l *.c *.o *.th *.h *.data *.i *.s *.ir
# 	rm -f ${SOURCE}
# 	@echo "===> library pair: all source, object code and theories deleted"

.FAILED:
	@echo "===> library pair build failed"

.DEFAULT:
	co -r${REVISION} $@

# =====================================================================
# Entries for individual files.
# =====================================================================

syn_ml.o: syn.ml
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'compilet `syn`;;'				\
        'quit();;' | ${HOL}

basic_ml.o: basic.ml syn_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'compilet `basic`;;'				\
        'quit();;' | ${HOL}

both1_ml.o: both1.ml syn_ml.o basic_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'loadf `basic`;;'				\
        'compilet `both1`;;'				\
        'quit();;' | ${HOL}

all_ml.o: all.ml syn_ml.o basic_ml.o both1_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'loadf `basic`;;'				\
        'loadf `both1`;;'				\
        'compilet `all`;;'				\
        'quit();;' | ${HOL}

exi_ml.o: exi.ml syn_ml.o basic_ml.o both1_ml.o all_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'loadf `basic`;;'				\
        'loadf `both1`;;'				\
        'loadf `all`;;'					\
        'compilet `exi`;;'				\
        'quit();;' | ${HOL}

both2_ml.o: both2.ml syn_ml.o basic_ml.o both1_ml.o all_ml.o exi_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'loadf `basic`;;'				\
        'loadf `both1`;;'				\
        'loadf `all`;;'					\
        'loadf `exi`;;'					\
        'compilet `both2`;;'				\
        'quit();;' | ${HOL}

conv_ml.o: conv.ml syn_ml.o basic_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'loadf `syn`;;'					\
        'loadf `basic`;;'				\
        'compilet `conv`;;'				\
        'quit();;' | ${HOL}

pair_ml.o: pair.ml syn_ml.o basic_ml.o both1_ml.o all_ml.o exi_ml.o	\
		both2_ml.o conv_ml.o
	echo 'set_flag(`abort_when_fail`,true);;'	\
        'compilet `pair`;;'				\
        'quit();;' | ${HOL}