/usr/share/mk/ocaml.dirs.mk is in bsdowl 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 79 80 81 82 83 84 85 86 87 88 | ### ocaml.dirs.mk -- Handling lookup paths
# Author: Michael Grünewald
# Date: Sat Jul 7 20:26:31 CEST 2007
# BSD Owl Scripts (https://bitbucket.org/michipili/bsdowl)
# This file is part of BSD Owl Scripts
#
# Copyright © 2005–2014 Michael Grünewald
#
# This file must be used under the terms of the CeCILL-B.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
### SYNOPSIS
# DIRS+= ../library
#
# .include "ocaml.init.mk"
# .include "ocaml.dirs.mk"
### DESCRIPTION
# This module takes care of initialising the _OCAML_DIRS variable,
# holding a private version of DIRS that can be pasten on the command
# line. It also knows where the standard library is installed.
#
# This module is intended to be included by other modules rather than
# to serve as is to the end user.
### DESCRIPTION
# Variables:
#
# DIRS
# Lookup path for OCaml object files
#
# This list of paths is appended to OCaml suite's tools options and
# to Make's internal lookup paths.
#
#
# OCAMLROOTDIR
# Path to the standard library
.if !target(__<ocaml.dirs.mk>__)
__<ocaml.dirs.mk>__:
.if defined(DIRS)&&!empty(DIRS)
_OCAML_DIRS=${DIRS:C/^/-I /}
# Compiled interfaces files probably never appear on the command line
# and also probably do not need to be looked up by make, so the .cmi
# suffix is omitted from the next list.
#.PATH.cmi: ${DIRS}
.PATH.cmo: ${DIRS}
.PATH.cmx: ${DIRS}
.PATH.cmxa: ${DIRS}
.PATH.cma: ${DIRS}
.PATH.a: ${DIRS}
.PATH.o: ${DIRS}
.endif
.if !defined(OCAMLROOTDIR)
OCAMLROOTDIR!= ${OCAMLCI} -where
.endif
.PATH.cmo: ${OCAMLROOTDIR}
.PATH.cmx: ${OCAMLROOTDIR}
.PATH.cmxa: ${OCAMLROOTDIR}
.PATH.cma: ${OCAMLROOTDIR}
.PATH.a: ${OCAMLROOTDIR}
.PATH.o: ${OCAMLROOTDIR}
.if defined(_OCAML_DIRS) && !empty(_OCAML_DIRS)
.for tool in OCAMLCI OCAMLCB OCAMLCN OCAMLLB OCAMLLN OCAMLDEP
${tool}FLAGS+=${_OCAML_DIRS}
.endfor
.endif
.endif # !target(__<ocaml.dirs.mk>__)
### End of file `ocaml.dirs.mk'
|