-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathMakefile
135 lines (126 loc) · 3.27 KB
/
Makefile
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
SRC = allocate_objects.cpp \
arith_tools.cpp \
array_name.cpp \
base_type.cpp \
bv_arithmetic.cpp \
byte_operators.cpp \
c_types.cpp \
cmdline.cpp \
cmdline_definition.cpp \
config.cpp \
cout_message.cpp \
decision_procedure.cpp \
dstring.cpp \
endianness_map.cpp \
expr.cpp \
expr_initializer.cpp \
expr_util.cpp \
exception_utils.cpp \
file_util.cpp \
find_macros.cpp \
find_symbols.cpp \
fixedbv.cpp \
format_constant.cpp \
format_expr.cpp \
format_number_range.cpp \
format_type.cpp \
fresh_symbol.cpp \
get_base_name.cpp \
get_module.cpp \
identifier.cpp \
ieee_float.cpp \
invariant.cpp \
irep.cpp \
irep_hash.cpp \
irep_hash_container.cpp \
irep_ids.cpp \
irep_serialization.cpp \
invariant_utils.cpp \
json.cpp \
json_irep.cpp \
json_stream.cpp \
lispexpr.cpp \
lispirep.cpp \
mathematical_expr.cpp \
mathematical_types.cpp \
memory_info.cpp \
merge_irep.cpp \
message.cpp \
mp_arith.cpp \
namespace.cpp \
nondet.cpp \
object_factory_parameters.cpp \
options.cpp \
parse_options.cpp \
parser.cpp \
pointer_offset_size.cpp \
pointer_predicates.cpp \
rational.cpp \
rational_tools.cpp \
ref_expr_set.cpp \
refined_string_type.cpp \
rename.cpp \
rename_symbol.cpp \
replace_expr.cpp \
replace_symbol.cpp \
run.cpp \
signal_catcher.cpp \
simplify_expr.cpp \
simplify_expr_array.cpp \
simplify_expr_boolean.cpp \
simplify_expr_floatbv.cpp \
simplify_expr_int.cpp \
simplify_expr_pointer.cpp \
simplify_expr_struct.cpp \
simplify_utils.cpp \
source_location.cpp \
ssa_expr.cpp \
std_code.cpp \
std_expr.cpp \
std_types.cpp \
string2int.cpp \
string_constant.cpp \
string_container.cpp \
string_hash.cpp \
string_utils.cpp \
symbol.cpp \
symbol_table_base.cpp \
symbol_table.cpp \
tempdir.cpp \
tempfile.cpp \
threeval.cpp \
timestamper.cpp \
type.cpp \
typecheck.cpp \
ui_message.cpp \
unicode.cpp \
union_find.cpp \
union_find_replace.cpp \
unwrap_nested_exception.cpp \
validate_code.cpp \
validate_expressions.cpp \
validate_types.cpp \
version.cpp \
xml.cpp \
xml_irep.cpp \
# Empty last line
INCLUDES= -I ..
include ../config.inc
include ../common
# get version from git
GIT_INFO = $(shell git describe --tags --always --dirty || echo "n/a")
RELEASE_INFO = const char *CBMC_VERSION="$(CBMC_VERSION) ($(GIT_INFO))";
GIT_INFO_FILE = version.cpp
$(GIT_INFO_FILE):
echo '$(RELEASE_INFO)' > $@
generated_files: $(GIT_INFO_FILE)
# mark the actually generated file as a phony target to enforce a rebuild - but
# only if the version information has changed!
KNOWN_RELEASE_INFO = $(shell cat $(GIT_INFO_FILE) 2>/dev/null)
ifneq ($(RELEASE_INFO), $(KNOWN_RELEASE_INFO))
.PHONY: $(GIT_INFO_FILE)
endif
CLEANFILES = $(GIT_INFO_FILE) util$(LIBEXT)
all: util$(LIBEXT) $(GIT_INFO_FILE)
util$(LIBEXT): $(OBJ)
$(LINKLIB)