This file is indexed.

/usr/share/mk/ocaml.toplevel.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
### ocaml.toplevel.mk -- Building custom toplevels

# Author: Michael Grünewald
# Date: Sun Jun 16 13:54:55 CEST 2013

# 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

# TOPLEVEL = toplevel
# SRCS = initialize_toplevel.ml
# LIBS = unix
# LIBS+= str
#
# .include "ocaml.toplevel.mk"


### DESCRIPTION

# This simple interface to `ocamlmktop` drives the production of
# toplevels.

# Targets:
#
# do-build-toplevel
# do-install-toplevel
# do-clean-toplevel

# Variables:
#
#
#  TOPLEVEL
#    UNIX file name of the generated toplevel
#
#
#  DIRS
#    Lookup path for object files
#
#    Relative paths are interpreted from ${.OBJDIR}.
#
#
#  SRCS
#    OCaml implementation files
#
#
#  LIBS
#    OCaml library files
#
#
#  PKGS
#    OCaml findlib packages
#
#
#  TOPLEVEL_CUSTOM
#    Flag governing generation of a custom toplevel
#
#
#  TOPLEVEL_COPT
#    Pass the given options to the C compiler and linker
#
#    This forces TOPLEVEL_CUSTOM to yes.
#
#
#  TOPLEVEL_CLIB
#    Pass the given library names to the C linker
#
#    This forces TOPLEVEL_CUSTOM to yes.


### IMPLEMENTATION

.if !target(__<ocaml.toplevel.mk>__)
__<ocaml.toplevel.mk>__:

.include "bps.init.mk"
.include "ocaml.init.mk"


.if !defined(TOPLEVEL)||empty(TOPLEVEL)
.error The ocaml.toplevel.mk module expects you to set the TOPLEVEL variable to a sensible value.
.endif

TOPLEVEL_CUSTOM?= no
TOPLEVEL_COPT?=
TOPLEVEL_CLIB?=

OCAMLMKTOP?= ocamlmktop

_TOPLEVEL_FLAGS=-custom -linkall

#
# Determining toplevel flags
#

.if defined(TOPLEVEL_COPT)&&!empty(TOPLEVEL_COPT)
TOPLEVEL_CUSTOM=yes
.endif

.if defined(TOPLEVEL_CLIB)&&!empty(TOPLEVEL_CLIB)
TOPLEVEL_CUSTOM=yes
.endif

.if ${TOPLEVEL_CUSTOM} == yes
_TOPLEVEL_FLAGS+=-custom
.endif

.if defined(TOPLEVEL_COPT)&&!empty(TOPLEVEL_COPT)
.for item in ${TOPLEVEL_COPT}
_TOPLEVEL_FLAGS+=-ccopt ${item}
.endfor
.endif

.if defined(TOPLEVEL_CLIB)&&!empty(TOPLEVEL_CLIB)
.for item in ${TOPLEVEL_CLIB}
_TOPLEVEL_FLAGS+=-cclib -l${item}
.endfor
.endif

.if defined(DIRS)&&!empty(DIRS)
.for item in ${DIRS}
_TOPLEVEL_FLAGS+=-I ${item}
.endfor
.endif


.if !defined(_OCAML_COMPILE_NATIVE_ONLY)

.for file in ${SRCS}
_OCAML_CMO+= ${file:.ml=.cmo}
${TOPLEVEL}: ${file:.ml=.cmo}
.endfor

.for file in ${LIBS}
${TOPLEVEL}: ${file:=.cma}
.endfor

${TOPLEVEL}:
	${OCAMLMKTOP} ${_TOPLEVEL_FLAGS} ${.ALLSRC} -o ${.TARGET}

CLEANFILES+=    ${TOPLEVEL}
BIN+=           ${TOPLEVEL}

.else
${TOPLEVEL}:
	${INFO} Not building toplevel ${.TARGET} in native-only mode
.endif

.include "ocaml.main.mk"
.include "bps.clean.mk"
.include "bps.files.mk"
.include "bps.usertarget.mk"

.endif # !target(__<ocaml.toplevel.mk>__)

### End of file `ocaml.odoc.mk'