/usr/share/mk/ocaml.compile.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 89 90 91 92 93 94 95 96 97 98 99 100 101 | ### ocaml.compile.mk -- Prepare the COMPILE variable
# Author: Michael Grünewald
# Date: Tue Apr 5 12:31:04 CEST 2005
# 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
# COMPILE = byte_code|native_code|both|bc|nc|byte|native
# .include "ocaml.compile.mk"
### DESCRIPTION
# This module reads the COMPILE variable describing the kind of code
# that shall be produced and defines several variables that can be
# used as predicates in the sequel.
#
# A predicate is true if, and only if, the corresponding variable is
# defined.
#
# This module is intended to be included by other modules rather than
# to serve as is to the end user. (See ocaml.manual.mk for a
# module producing HTML documentation.)
# Variables:
#
# COMPILE
# List of targeted code generators
#
# If this variable contains one of the words byte_code, byte,
# or both, then the production of byte objects is required.
#
# If this variable contains one of the words native_code, native
# or both, then the production of native objects is required.
#
#
# _OCAML_COMPILE_BYTE
# Predicate telling if the production of byte objects is required
#
#
# _OCAML_COMPILE_NATIVE
# Predicate telling if the production of native objects is required
#
#
# _OCAML_COMPILE_NATIVE_ONLY
# Predicate telling if the production requirement narrows to native objects
#
#
# _OCAML_COMPILE_BOTH
# Predicate telling if the production requirement includes both types
.if !target(__<ocaml.compile.mk>__)
__<ocaml.compile.mk>__:
.SUFFIXES: .ml .mli .mll .mly .cmi .cmo .cma .cmx .cmxa .byte .native
.if !defined(COMPILE) || empty(COMPILE)
COMPILE = byte_code
.endif
.if !empty(COMPILE:Mbyte_code)||!empty(COMPILE:Mbyte) || !empty(COMPILE:Mboth)
_OCAML_COMPILE_BYTE= yes
.else
.undef _OCAML_COMPILE_BYTE
.endif
.if !empty(COMPILE:Mnative_code)||!empty(COMPILE:Mnative) || !empty(COMPILE:Mboth)
_OCAML_COMPILE_NATIVE= yes
.else
.undef _OCAML_COMPILE_NATIVE
.endif
.if defined(_OCAML_COMPILE_NATIVE)&&defined(_OCAML_COMPILE_BYTE)
_OCAML_COMPILE_BOTH=yes
.else
.undef _OCAML_COMPILE_BOTH
.endif
.if defined(_OCAML_COMPILE_NATIVE)&&!defined(_OCAML_COMPILE_BYTE)
_OCAML_COMPILE_NATIVE_ONLY=yes
.else
.undef _OCAML_COMPILE_NATIVE_ONLY
.endif
.endif #!target(__<ocaml.compile.mk>__)
### End of file `ocaml.compile.mk'
|