Skip to content
Snippets Groups Projects
Commit bd1af991 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[Server] use template for Makefile.in

parent c11ea763
No related branches found
No related tags found
No related merge requests found
...@@ -29,17 +29,13 @@ ifndef FRAMAC_LIBDIR ...@@ -29,17 +29,13 @@ ifndef FRAMAC_LIBDIR
FRAMAC_LIBDIR :=$(shell frama-c-config -print-libpath) FRAMAC_LIBDIR :=$(shell frama-c-config -print-libpath)
endif endif
include $(FRAMAC_SHARE)/Makefile.config ###################
# -------------------------------------------------------------------------- # Plug-in Setting #
# --- Plugin Setting ###################
# --------------------------------------------------------------------------
PLUGIN_DIR ?=.
PLUGIN_ENABLE:=@ENABLE_SERVER@ PLUGIN_ENABLE:=@ENABLE_SERVER@
PLUGIN_NAME:=Server PLUGIN_NAME:=Server
PLUGIN_DISTRIBUTED:=$(PLUGIN_ENABLE)
PLUGIN_DISTRIB_EXTERNAL:= Makefile.in configure.ac configure
PLUGIN_REQUIRES:= yojson
PLUGIN_CMO:= \ PLUGIN_CMO:= \
server_parameters \ server_parameters \
jbuffer \ jbuffer \
...@@ -48,30 +44,34 @@ PLUGIN_CMO:= \ ...@@ -48,30 +44,34 @@ PLUGIN_CMO:= \
kernel_main \ kernel_main \
kernel_project \ kernel_project \
kernel_ast kernel_ast
PLUGIN_DISTRIBUTED:=$(PLUGIN_ENABLE)
PLUGIN_DISTRIB_EXTERNAL:= Makefile.in configure.ac configure
PLUGIN_TESTS_DIRS := batch
PLUGIN_REQUIRES:= yojson
PLUGIN_UNDOC:= server_batch.ml server_zmq.ml PLUGIN_UNDOC:= server_batch.ml server_zmq.ml
PLUGIN_GENERATED:= $(PLUGIN_DIR)/Server.mli PLUGIN_GENERATED:= $(PLUGIN_DIR)/Server.mli
PLUGIN_TESTS_DIRS := batch
# -------------------------------------------------------------------------- ##################
# --- ZeroMQ Support # ZeroMQ Support #
# -------------------------------------------------------------------------- ##################
ifeq (@SERVER_ZMQ@,yes) ifeq (@SERVER_ZMQ@,yes)
PLUGIN_REQUIRES+= zmq PLUGIN_REQUIRES+= zmq
PLUGIN_CMO+= server_zmq PLUGIN_CMO+= server_zmq
endif endif
# -------------------------------------------------------------------------- ################
# --- Frama-C Dynamic Plug-in # Generic part #
# -------------------------------------------------------------------------- ################
include $(FRAMAC_SHARE)/Makefile.dynamic include $(FRAMAC_SHARE)/Makefile.dynamic
# -------------------------------------------------------------------------- ##############
# --- Server API # Server API #
# -------------------------------------------------------------------------- ##############
SERVER_API= \ SERVER_API= \
doc.mli syntax.mli data.mli request.mli doc.mli syntax.mli data.mli request.mli
...@@ -100,9 +100,9 @@ $(Server_DIR)/Server.mli: $(Server_DIR)/Makefile $(SERVER_MLI) ...@@ -100,9 +100,9 @@ $(Server_DIR)/Server.mli: $(Server_DIR)/Makefile $(SERVER_MLI)
$(CHMOD_RO) $@.tmp $(CHMOD_RO) $@.tmp
$(MV) $@.tmp $@ $(MV) $@.tmp $@
# -------------------------------------------------------------------------- #####################################
# --- Configure # Regenerating the Makefile on need #
# -------------------------------------------------------------------------- #####################################
ifeq ("$(FRAMAC_INTERNAL)","yes") ifeq ("$(FRAMAC_INTERNAL)","yes")
CONFIG_STATUS_DIR=$(FRAMAC_SRC) CONFIG_STATUS_DIR=$(FRAMAC_SRC)
...@@ -113,5 +113,3 @@ endif ...@@ -113,5 +113,3 @@ endif
$(Server_DIR)/Makefile: $(Server_DIR)/Makefile.in \ $(Server_DIR)/Makefile: $(Server_DIR)/Makefile.in \
$(CONFIG_STATUS_DIR)/config.status $(CONFIG_STATUS_DIR)/config.status
cd $(CONFIG_STATUS_DIR) && ./config.status --file $@ cd $(CONFIG_STATUS_DIR) && ./config.status --file $@
# --------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment