Standardise setting and use of OCAML_FLEXLINK
Some Makefiles were using export to set OCAML_FLEXLINK "globally" while others set a variable FLEXLINK_ENV and set the environment explicitly. All Makefiles now use FLEXLINK_ENV and also only invoke it on linking commands (rather than, for example, all invocations of ocamlopt).master
parent
f359bf527d
commit
c13c200f87
17
Makefile
17
Makefile
|
@ -283,15 +283,18 @@ BOOT_FLEXLINK_CMD=
|
||||||
ifeq "$(UNIX_OR_WIN32)" "win32"
|
ifeq "$(UNIX_OR_WIN32)" "win32"
|
||||||
FLEXDLL_SUBMODULE_PRESENT := $(wildcard flexdll/Makefile)
|
FLEXDLL_SUBMODULE_PRESENT := $(wildcard flexdll/Makefile)
|
||||||
ifeq "$(FLEXDLL_SUBMODULE_PRESENT)" ""
|
ifeq "$(FLEXDLL_SUBMODULE_PRESENT)" ""
|
||||||
BOOT_FLEXLINK_CMD=
|
BOOT_FLEXLINK_CMD =
|
||||||
FLEXDLL_DIR=
|
FLEXDLL_DIR =
|
||||||
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
BOOT_FLEXLINK_CMD = FLEXLINK_CMD="../boot/ocamlrun ../flexdll/flexlink.exe"
|
BOOT_FLEXLINK_CMD = FLEXLINK_CMD="../boot/ocamlrun ../flexdll/flexlink.exe"
|
||||||
CAMLOPT := OCAML_FLEXLINK="boot/ocamlrun flexdll/flexlink.exe" $(CAMLOPT)
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = OCAML_FLEXLINK="boot/ocamlrun flexdll/flexlink.exe" #
|
||||||
FLEXDLL_DIR=$(if $(wildcard flexdll/flexdll_*.$(O)),+flexdll)
|
FLEXDLL_DIR=$(if $(wildcard flexdll/flexdll_*.$(O)),+flexdll)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
FLEXDLL_DIR=
|
FLEXDLL_DIR =
|
||||||
|
FLEXLINK_ENV =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The configuration file
|
# The configuration file
|
||||||
|
@ -879,7 +882,7 @@ partialclean::
|
||||||
|
|
||||||
ocamlc.opt: compilerlibs/ocamlcommon.cmxa compilerlibs/ocamlbytecomp.cmxa \
|
ocamlc.opt: compilerlibs/ocamlcommon.cmxa compilerlibs/ocamlbytecomp.cmxa \
|
||||||
$(BYTESTART:.cmo=.cmx)
|
$(BYTESTART:.cmo=.cmx)
|
||||||
$(CAMLOPT) $(LINKFLAGS) -o $@ $^ -cclib "$(BYTECCLIBS)"
|
$(FLEXLINK_ENV)$(CAMLOPT) $(LINKFLAGS) -o $@ $^ -cclib "$(BYTECCLIBS)"
|
||||||
|
|
||||||
partialclean::
|
partialclean::
|
||||||
rm -f ocamlc.opt
|
rm -f ocamlc.opt
|
||||||
|
@ -893,7 +896,7 @@ partialclean::
|
||||||
|
|
||||||
ocamlopt.opt: compilerlibs/ocamlcommon.cmxa compilerlibs/ocamloptcomp.cmxa \
|
ocamlopt.opt: compilerlibs/ocamlcommon.cmxa compilerlibs/ocamloptcomp.cmxa \
|
||||||
$(OPTSTART:.cmo=.cmx)
|
$(OPTSTART:.cmo=.cmx)
|
||||||
$(CAMLOPT) $(LINKFLAGS) -o $@ $^
|
$(FLEXLINK_ENV)$(CAMLOPT) $(LINKFLAGS) -o $@ $^
|
||||||
|
|
||||||
partialclean::
|
partialclean::
|
||||||
rm -f ocamlopt.opt
|
rm -f ocamlopt.opt
|
||||||
|
@ -1286,7 +1289,7 @@ ocamlnat$(EXE): compilerlibs/ocamlcommon.cmxa compilerlibs/ocamloptcomp.cmxa \
|
||||||
compilerlibs/ocamlbytecomp.cmxa \
|
compilerlibs/ocamlbytecomp.cmxa \
|
||||||
compilerlibs/ocamlopttoplevel.cmxa \
|
compilerlibs/ocamlopttoplevel.cmxa \
|
||||||
$(OPTTOPLEVELSTART:.cmo=.cmx)
|
$(OPTTOPLEVELSTART:.cmo=.cmx)
|
||||||
$(CAMLOPT) $(LINKFLAGS) -linkall -o $@ $^
|
$(FLEXLINK_ENV)$(CAMLOPT) $(LINKFLAGS) -linkall -o $@ $^
|
||||||
|
|
||||||
partialclean::
|
partialclean::
|
||||||
rm -f ocamlnat$(EXE)
|
rm -f ocamlnat$(EXE)
|
||||||
|
|
|
@ -21,9 +21,11 @@ CAMLYACC ?= ../yacc/ocamlyacc
|
||||||
ROOTDIR=..
|
ROOTDIR=..
|
||||||
|
|
||||||
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
||||||
export OCAML_FLEXLINK:=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
export OCAML_FLEXLINK:=$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = \
|
||||||
|
OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CAMLC=$(CAMLRUN) ../boot/ocamlc -strict-sequence -nostdlib -I ../boot \
|
CAMLC=$(CAMLRUN) ../boot/ocamlc -strict-sequence -nostdlib -I ../boot \
|
||||||
|
@ -49,7 +51,7 @@ ocamllex: $(OBJS)
|
||||||
$(CAMLC) $(LINKFLAGS) -compat-32 -o ocamllex $(OBJS)
|
$(CAMLC) $(LINKFLAGS) -compat-32 -o ocamllex $(OBJS)
|
||||||
|
|
||||||
ocamllex.opt: $(OBJS:.cmo=.cmx)
|
ocamllex.opt: $(OBJS:.cmo=.cmx)
|
||||||
$(CAMLOPT) -o ocamllex.opt $(OBJS:.cmo=.cmx)
|
$(FLEXLINK_ENV)$(CAMLOPT) -o ocamllex.opt $(OBJS:.cmo=.cmx)
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
rm -f ocamllex ocamllex.opt
|
rm -f ocamllex ocamllex.opt
|
||||||
|
|
|
@ -23,15 +23,17 @@ OCAMLYACC ?= $(ROOTDIR)/yacc/ocamlyacc
|
||||||
|
|
||||||
STDLIBFLAGS = -nostdlib -I $(ROOTDIR)/stdlib
|
STDLIBFLAGS = -nostdlib -I $(ROOTDIR)/stdlib
|
||||||
OCAMLC = $(OCAMLRUN) $(ROOTDIR)/ocamlc $(STDLIBFLAGS)
|
OCAMLC = $(OCAMLRUN) $(ROOTDIR)/ocamlc $(STDLIBFLAGS)
|
||||||
ifeq "$(UNIX_OR_WIN32)" "unix"
|
|
||||||
OCAMLOPT = $(OCAMLRUN) $(ROOTDIR)/ocamlopt $(STDLIBFLAGS)
|
OCAMLOPT = $(OCAMLRUN) $(ROOTDIR)/ocamlopt $(STDLIBFLAGS)
|
||||||
|
ifeq "$(UNIX_OR_WIN32)" "unix"
|
||||||
|
FLEXLINK_ENV =
|
||||||
else # Windows
|
else # Windows
|
||||||
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
||||||
FLEXLINK_ENV=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
FLEXLINK_ENV=OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe"
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = \
|
||||||
|
OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
OCAMLOPT = $(FLEXLINK_ENV) $(OCAMLRUN) $(ROOTDIR)/ocamlopt $(STDLIBFLAGS)
|
|
||||||
endif
|
endif
|
||||||
OCAMLDEP = $(OCAMLRUN) $(ROOTDIR)/tools/ocamldep -slash
|
OCAMLDEP = $(OCAMLRUN) $(ROOTDIR)/tools/ocamldep -slash
|
||||||
OCAMLLEX = $(OCAMLRUN) $(ROOTDIR)/boot/ocamllex
|
OCAMLLEX = $(OCAMLRUN) $(ROOTDIR)/boot/ocamllex
|
||||||
|
@ -216,7 +218,7 @@ $(OCAMLDOC): $(EXECMOFILES)
|
||||||
$(OCAMLC) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_BCLIBRARIES) $^
|
$(OCAMLC) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_BCLIBRARIES) $^
|
||||||
|
|
||||||
$(OCAMLDOC_OPT): $(EXECMXFILES)
|
$(OCAMLDOC_OPT): $(EXECMXFILES)
|
||||||
$(OCAMLOPT) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_NCLIBRARIES) $^
|
$(FLEXLINK_ENV)$(OCAMLOPT) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_NCLIBRARIES) $^
|
||||||
|
|
||||||
$(OCAMLDOC_LIBCMA): $(LIBCMOFILES)
|
$(OCAMLDOC_LIBCMA): $(LIBCMOFILES)
|
||||||
$(OCAMLC) -a -o $@ $(LINKFLAGS) $^
|
$(OCAMLC) -a -o $@ $(LINKFLAGS) $^
|
||||||
|
@ -268,7 +270,7 @@ odoc_see_lexer.ml: odoc_see_lexer.mll
|
||||||
$(OCAMLOPT) $(OCAMLPP) $(COMPFLAGS) -c $<
|
$(OCAMLOPT) $(OCAMLPP) $(COMPFLAGS) -c $<
|
||||||
|
|
||||||
.ml.cmxs:
|
.ml.cmxs:
|
||||||
$(OCAMLOPT) -shared -o $@ $(OCAMLPP) $(COMPFLAGS) $<
|
$(FLEXLINK_ENV)$(OCAMLOPT) -shared -o $@ $(OCAMLPP) $(COMPFLAGS) $<
|
||||||
|
|
||||||
.mll.ml:
|
.mll.ml:
|
||||||
$(OCAMLLEX) $<
|
$(OCAMLLEX) $<
|
||||||
|
|
|
@ -22,15 +22,16 @@ ifeq "$(UNIX_OR_WIN32)" "win32"
|
||||||
ocamlsrcdir := $(shell echo "$(abspath $(shell pwd)/..)"|cygpath -w -f - \
|
ocamlsrcdir := $(shell echo "$(abspath $(shell pwd)/..)"|cygpath -w -f - \
|
||||||
| sed 's/\\/\\\\\\\\/g')
|
| sed 's/\\/\\\\\\\\/g')
|
||||||
ifeq "$(wildcard ../flexdll/Makefile)" ""
|
ifeq "$(wildcard ../flexdll/Makefile)" ""
|
||||||
FLEXLINK_ENV=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
FLEXLINK_ENV=OCAML_FLEXLINK="../boot/ocamlrun ../flexdll/flexlink.exe"
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = OCAML_FLEXLINK="../boot/ocamlrun ../flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
mkexe := $(MKEXE_ANSI) -link $(OC_LDFLAGS)
|
mkexe := $(MKEXE_ANSI) -link $(OC_LDFLAGS)
|
||||||
else
|
else
|
||||||
unix := true
|
unix := true
|
||||||
ocamlsrcdir := $(abspath $(shell pwd)/..)
|
ocamlsrcdir := $(abspath $(shell pwd)/..)
|
||||||
FLEXLINK_ENV=
|
FLEXLINK_ENV =
|
||||||
mkexe := $(MKEXE)
|
mkexe := $(MKEXE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -158,9 +159,9 @@ flags := -g -nostdlib $(include_directories) \
|
||||||
-strict-sequence -safe-string -strict-formats \
|
-strict-sequence -safe-string -strict-formats \
|
||||||
-w +a-4-9-41-42-44-45-48 -warn-error A
|
-w +a-4-9-41-42-44-45-48 -warn-error A
|
||||||
|
|
||||||
ocamlc := $(FLEXLINK_ENV) ../runtime/ocamlrun ../ocamlc $(flags)
|
ocamlc := ../runtime/ocamlrun ../ocamlc $(flags)
|
||||||
|
|
||||||
ocamlopt := $(FLEXLINK_ENV) ../runtime/ocamlrun ../ocamlopt $(flags)
|
ocamlopt := ../runtime/ocamlrun ../ocamlopt $(flags)
|
||||||
|
|
||||||
ocamldep := ../runtime/ocamlrun ../tools/ocamldep -slash
|
ocamldep := ../runtime/ocamlrun ../tools/ocamldep -slash
|
||||||
|
|
||||||
|
@ -178,13 +179,13 @@ allopt: ocamltest.opt$(EXE)
|
||||||
opt.opt: allopt
|
opt.opt: allopt
|
||||||
|
|
||||||
ocamltest$(EXE): $(bytecode_modules)
|
ocamltest$(EXE): $(bytecode_modules)
|
||||||
$(ocamlc) -custom ocamlcommon.cma -o $@ $^
|
$(FLEXLINK_ENV)$(ocamlc) -custom ocamlcommon.cma -o $@ $^
|
||||||
|
|
||||||
%.cmo: %.ml
|
%.cmo: %.ml
|
||||||
$(ocamlc) -c $<
|
$(ocamlc) -c $<
|
||||||
|
|
||||||
ocamltest.opt$(EXE): $(native_modules)
|
ocamltest.opt$(EXE): $(native_modules)
|
||||||
$(ocamlopt) ocamlcommon.cmxa -o $@ $^
|
$(FLEXLINK_ENV)$(ocamlopt) ocamlcommon.cmxa -o $@ $^
|
||||||
|
|
||||||
%.cmx: %.ml
|
%.cmx: %.ml
|
||||||
$(ocamlopt) -c $<
|
$(ocamlopt) -c $<
|
||||||
|
|
|
@ -22,9 +22,11 @@ include $(ROOTDIR)/Makefile.common
|
||||||
CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
|
CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
|
||||||
|
|
||||||
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
||||||
export OCAML_FLEXLINK:=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
export OCAML_FLEXLINK:=$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = \
|
||||||
|
OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CAMLC=$(CAMLRUN) $(ROOTDIR)/ocamlc -nostdlib -I $(ROOTDIR)/stdlib
|
CAMLC=$(CAMLRUN) $(ROOTDIR)/ocamlc -nostdlib -I $(ROOTDIR)/stdlib
|
||||||
|
@ -74,10 +76,11 @@ $(LIBNAME).cmxa: $(CAMLOBJS_NAT)
|
||||||
$(CAMLOBJS_NAT) $(LINKOPTS)
|
$(CAMLOBJS_NAT) $(LINKOPTS)
|
||||||
|
|
||||||
$(LIBNAME).cmxs: $(LIBNAME).cmxa lib$(CLIBNAME).$(A)
|
$(LIBNAME).cmxs: $(LIBNAME).cmxa lib$(CLIBNAME).$(A)
|
||||||
$(CAMLOPT) -shared -o $(LIBNAME).cmxs -I . $(LIBNAME).cmxa
|
$(FLEXLINK_ENV)$(CAMLOPT) -shared -o $(LIBNAME).cmxs -I . \
|
||||||
|
$(LIBNAME).cmxa
|
||||||
|
|
||||||
lib$(CLIBNAME).$(A): $(COBJS)
|
lib$(CLIBNAME).$(A): $(COBJS)
|
||||||
$(MKLIB) -oc $(CLIBNAME) $(COBJS) $(LDOPTS)
|
$(FLEXLINK_ENV)$(MKLIB) -oc $(CLIBNAME) $(COBJS) $(LDOPTS)
|
||||||
|
|
||||||
install::
|
install::
|
||||||
if test -f dll$(CLIBNAME)$(EXT_DLL); then \
|
if test -f dll$(CLIBNAME)$(EXT_DLL); then \
|
||||||
|
|
|
@ -21,9 +21,11 @@ include $(ROOTDIR)/Makefile.common
|
||||||
CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
|
CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
|
||||||
|
|
||||||
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
||||||
export OCAML_FLEXLINK:=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
export OCAML_FLEXLINK:=$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = \
|
||||||
|
OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS = -nostdlib -I $(ROOTDIR)/stdlib -I $(ROOTDIR)/otherlibs/$(UNIXLIB)
|
LIBS = -nostdlib -I $(ROOTDIR)/stdlib -I $(ROOTDIR)/otherlibs/$(UNIXLIB)
|
||||||
|
@ -67,10 +69,10 @@ all: lib$(LIBNAME).$(A) $(LIBNAME).cma $(CMIFILES)
|
||||||
allopt: lib$(LIBNAME)nat.$(A) $(LIBNAME).cmxa $(CMIFILES)
|
allopt: lib$(LIBNAME)nat.$(A) $(LIBNAME).cmxa $(CMIFILES)
|
||||||
|
|
||||||
lib$(LIBNAME).$(A): $(BYTECODE_C_OBJS)
|
lib$(LIBNAME).$(A): $(BYTECODE_C_OBJS)
|
||||||
$(MKLIB) -o $(LIBNAME) $(BYTECODE_C_OBJS) $(PTHREAD_LINK)
|
$(FLEXLINK_ENV)$(MKLIB) -o $(LIBNAME) $(BYTECODE_C_OBJS) $(PTHREAD_LINK)
|
||||||
|
|
||||||
lib$(LIBNAME)nat.$(A): $(NATIVECODE_C_OBJS)
|
lib$(LIBNAME)nat.$(A): $(NATIVECODE_C_OBJS)
|
||||||
$(MKLIB) -o $(LIBNAME)nat $^
|
$(FLEXLINK_ENV)$(MKLIB) -o $(LIBNAME)nat $^
|
||||||
|
|
||||||
$(LIBNAME).cma: $(THREADS_BCOBJS)
|
$(LIBNAME).cma: $(THREADS_BCOBJS)
|
||||||
ifeq "$(UNIX_OR_WIN32)" "unix"
|
ifeq "$(UNIX_OR_WIN32)" "unix"
|
||||||
|
|
|
@ -50,7 +50,8 @@ $1: $3 $2
|
||||||
$$(CAMLC) $$(LINKFLAGS) -I .. -o $$@ $2
|
$$(CAMLC) $$(LINKFLAGS) -I .. -o $$@ $2
|
||||||
|
|
||||||
$1.opt: $3 $$(call byte2native,$2)
|
$1.opt: $3 $$(call byte2native,$2)
|
||||||
$$(CAMLOPT) $$(LINKFLAGS) -I .. -o $$@ $$(call byte2native,$2)
|
$$(FLEXLINK_ENV)$$(CAMLOPT) $$(LINKFLAGS) -I .. -o $$@ \
|
||||||
|
$$(call byte2native,$2)
|
||||||
|
|
||||||
all: $1
|
all: $1
|
||||||
|
|
||||||
|
@ -73,20 +74,16 @@ endef
|
||||||
ROOTDIR=..
|
ROOTDIR=..
|
||||||
|
|
||||||
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
ifeq "$(wildcard $(ROOTDIR)/flexdll/Makefile)" ""
|
||||||
export OCAML_FLEXLINK:=
|
FLEXLINK_ENV =
|
||||||
else
|
else
|
||||||
export OCAML_FLEXLINK:=$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe
|
# FLEXLINK_ENV must have a space at the end
|
||||||
|
FLEXLINK_ENV = \
|
||||||
|
OCAML_FLEXLINK="$(ROOTDIR)/boot/ocamlrun $(ROOTDIR)/flexdll/flexlink.exe" #
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CAMLC=$(CAMLRUN) ../boot/ocamlc -g -nostdlib -I ../boot \
|
CAMLC=$(CAMLRUN) ../boot/ocamlc -g -nostdlib -I ../boot \
|
||||||
-use-prims ../runtime/primitives -I ..
|
-use-prims ../runtime/primitives -I ..
|
||||||
CAMLOPT=$(CAMLRUN) ../ocamlopt -g -nostdlib -I ../stdlib
|
CAMLOPT=$(CAMLRUN) ../ocamlopt -g -nostdlib -I ../stdlib
|
||||||
ifeq "$(UNIX_OR_WIN32)" "win32"
|
|
||||||
ifneq "$(wildcard ../flexdll/Makefile)" ""
|
|
||||||
CAMLOPT := OCAML_FLEXLINK="../boot/ocamlrun ../flexdll/flexlink.exe" \
|
|
||||||
$(CAMLOPT)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
CAMLLEX=$(CAMLRUN) ../boot/ocamllex
|
CAMLLEX=$(CAMLRUN) ../boot/ocamllex
|
||||||
INCLUDES=-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp \
|
INCLUDES=-I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp \
|
||||||
-I ../middle_end -I ../middle_end/base_types -I ../driver \
|
-I ../middle_end -I ../middle_end/base_types -I ../driver \
|
||||||
|
@ -366,7 +363,7 @@ LINTAPIDIFF=../compilerlibs/ocamlcommon.cmxa \
|
||||||
|
|
||||||
lintapidiff.opt: INCLUDES+= -I ../otherlibs/str
|
lintapidiff.opt: INCLUDES+= -I ../otherlibs/str
|
||||||
lintapidiff.opt: $(LINTAPIDIFF)
|
lintapidiff.opt: $(LINTAPIDIFF)
|
||||||
$(CAMLOPT) $(LINKFLAGS) -I .. -o $@ $(LINTAPIDIFF)
|
$(FLEXLINK_ENV)$(CAMLOPT) $(LINKFLAGS) -I .. -o $@ $(LINTAPIDIFF)
|
||||||
clean::
|
clean::
|
||||||
rm -f -- lintapidiff.opt lintapidiff.cm? lintapidiff.o
|
rm -f -- lintapidiff.opt lintapidiff.cm? lintapidiff.o
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue