Makefile.master.in 2.32 KB
Newer Older
1 2 3 4 5 6
##########################################################################
#                                                                        #
#                 ACG development toolkit                                #
#                                                                        #
#                  Copyright 2008 INRIA                                  #
#                                                                        #
7
#  More information on "http://acg.gforge.inria.fr/"                     #
8 9 10 11 12 13 14 15 16 17 18 19
#  License: CeCILL, see the LICENSE file or "http://www.cecill.info"     #
#  Authors: see the AUTHORS file                                         #
#                                                                        #
#                                                                        #
#                                                                        #
#                                                                        #
#  $Rev::                              $:  Revision of last commit       #
#  $Author::                           $:  Author of last commit         #
#  $Date::                             $:  Date of last commit           #
#                                                                        #
##########################################################################

POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
20 21 22
DEBUGFLAG   = -g
OCAMLCPOPT = -p fm

23 24 25 26 27 28
# Remove warnings:
#	58: Missing cmx file
DISABLE_WARNINGS=-58



POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
29
# All warnings are treated as errors
30
WARNINGS = @OCAML09WARNINGS@ -w $(DISABLE_WARNINGS) -warn-error A
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
31 32 33 34 35 36 37 38 39 40
COMMONFLAGS= $(WARNINGS) @TYPES@
BYTEFLAGS = $(COMMONFLAGS) $(DEBUGFLAG)
OPTFLAGS = $(COMMONFLAGS)
LFLAGS= -a


TITLE="The ACG Development Toolkit Documentation"
OCAMLDOC_FLAGS = -sort -keep-code -html -t $(TITLE)
#CAMLDOC_FLAGS = -html -t $(TITLE)

41
BOLT_DEPENDENCIES=unix.cma
42
BOLT_LEVEL=@BOLT_LEVEL@
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
43

44 45 46
CAMLP4_DEPENDENCIES=dynlink.cma

LIBS = $(CAMLP4_DEPENDENCIES) @CAMLP4_LIB@ $(BOLT_DEPENDENCIES) @BOLT_LIB@ 
47 48 49 50 51 52 53 54 55 56 57
LIBDIR = -I +camlp4 @BOLT_INCLUDE@

MACRO_PP_ARGS=-DDEBUG

OCAMLPP_ARG= pa_extend.cmo pa_macro.cmo $(MACRO_PP_ARGS) @OCAMLP4_LOC@ @BOLT_PP@
OCAMLPP = -pp "@OCAMLP4@ $(OCAMLPP_ARG)"
ifeq ($(strip @KAPUTT_PP@),)
KAPUTT_OCAMLPP = $(OCAMLPP)
else
KAPUTT_OCAMLPP = -pp "@KAPUTT_PP@ off @OCAMLP4@ $(OCAMLPP_ARG)"
endif
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
58 59 60 61 62 63 64 65

@SET_MAKE@

# Make byte the very first target
byte: 

config:
	pushd ../.. && ./configure && popd