This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
78 lines (63 loc) · 1.88 KB
/
Makefile.in
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
#######################
# Frama-C Environment #
#######################
ifndef FRAMAC_SHARE
FRAMAC_SHARE := $(shell frama-c -print-share-path)
endif
ifndef FRAMAC_LIBDIR
FRAMAC_LIBDIR := $(shell frama-c -print-libpath)
endif
#########################
# Plug-in configuration #
#########################
PLUGIN_DIR ?=.
PLUGIN_NAME := Inline
PLUGIN_CMO := local_config inline_options inline_register
PLUGIN_GUI_CMO :=
PLUGIN_HAS_MLI:= yes
PLUGIN_DISTRIBUTED:=no
#PLUGIN_DISTRIB_EXTERNAL:=Makefile.in configure.ac README.md
PLUGIN_DEPENDENCIES:=
PLUGIN_TESTS_DIRS:=
PLUGIN_PTESTS_OPTS :=
PLUGIN_GENERATED:= $(PLUGIN_DIR)/local_config.ml
################
# Generic part #
################
include $(FRAMAC_SHARE)/Makefile.dynamic
distclean: clean
$(PRINT_RM) "any generated files"
$(RM) -rf autom4te.cache
$(RM) configure config.status config.log
$(RM) -rf .frama-c
$(RM) .depend
#######################
# Local configuration #
#######################
INLINE_VERSION:=$(shell $(SED) -e 's/\\(.*\\)/\\1/' $(PLUGIN_DIR)/VERSION)
$(PLUGIN_DIR)/local_config.ml: $(PLUGIN_DIR)/Makefile.in $(PLUGIN_DIR)/VERSION
$(PRINT_MAKING) $@
$(RM) $@
$(ECHO) "(* This file was automatically generated from $<. Don't edit it. *)" >> $@
$(ECHO) "let version = \""$(INLINE_VERSION)"\"" >> $@
$(CHMOD_RO) $@
##########
# Header #
##########
headers::
@echo "Applying Headers..."
headache -c licence/headache_config.txt -h licence/CEA_PROPRIETARY \
*.ml *.mli \
Makefile.in configure.ac
#####################################
# Regenerating the Makefile on need #
#####################################
ifeq ("$(FRAMAC_INTERNAL)","yes")
CONFIG_STATUS_DIR:=$(FRAMAC_SRC)
CONFIG_STATUS_DIR_DEP:=
else
CONFIG_STATUS_DIR:=$(Inline_DIR)
CONFIG_STATUS_DIR_DEP:=$(CONFIG_STATUS_DIR)/config.status
endif
$(Inline_DIR)/Makefile: $(Inline_DIR)/Makefile.in $(CONFIG_STATUS_DIR_DEP)
cd $(CONFIG_STATUS_DIR) && ./config.status --file $@