-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.mk.in
45 lines (43 loc) · 1.36 KB
/
Config.mk.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
CAMLBYT=@OCAMLC@
CAMLBIN=@OCAMLOPT@
CAMLLEX=@OCAMLLEX@
CAMLLEXOPTS?=
CAMLYAC=@MENHIR@
CAMLYACOPTS?=
RM=rm -f
MKDIR=mkdir -p
CAMLDEP=@OCAMLDEP@
CAMLFLAGS?=-w +a-4 -g -annot
CAMLDOC=@OCAMLDOC@
HEADACHE=@HEADACHE@
BEST=@OCAMLBEST@
VERBOSEMAKE?=no
ifneq ($(VERBOSEMAKE),no) # Do not change to ifeq ($(VERBOSEMAKE),yes), as this
# version makes it easier for the user to set the
# option on the command-line to investigate
# Makefile-related problems
# ignore the PRINT_* materials but print all the other commands
PP = @true
# prevent the warning "jobserver unavailable: using -j1".
# see GNU make manual (section 5.7.1 and appendix B)
QUIET_MAKE:= + $(MAKE)
# prevent the warning: "-jN forced in submake: disabling jobserver mode".
# see GNU make manual (appendix B)
MAKE := MAKEFLAGS="$(patsubst j,,$(MAKEFLAGS))" $(MAKE)
else
# print the PP_* materials
PP = @echo
# but silently execute all the other commands
# fixed bug #637: do not write spaces between flags
OLDFLAGS:=r$(MAKEFLAGS)
MAKEFLAGS:=rs$(MAKEFLAGS)
# do not silently execute other makefiles (e.g the one of why):
# the redefinition of MAKE below is for this purpose
# but use QUIET_MAKE in order to call silently the initial Makefile
QUIET_MAKE:= $(MAKE)
MAKE := MAKEFLAGS="$(OLDFLAGS)" $(MAKE)
endif
PP_BYT = $(PP) 'BYT '
PP_OPT = $(PP) 'BIN '
PP_YACC = $(PP) 'YACC '
PP_LEX = $(PP) 'LEX '