package ocamlbuild

  1. Overview
  2. Docs
OCamlbuild is a build system with builtin rules to easily build most OCaml projects

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.16.1.tar.gz
sha512=e918b9a0081f271e507c7a4f4d5d5a7cdf818ca51c52acec1bac85ddad5f6cad078cb3c568252fbcf5401c2d75323ed8f50fdd881bda1c9632840320408393ae

Description

Added to opam-repository:

README

OCamlbuild

build

OCamlbuild is a generic build tool, that has built-in rules for building OCaml library and programs.

In recent years, the OCaml community has converged towards a more recent and faster build tool: Dune. If you are choosing a build system, you should probably use Dune instead. (Between January and June 2019, 77 new OCaml packages using ocamlbuild were publicly released, versus 544 packages using dune.)

Your should refer to the OCambuild manual for more informations on how to use ocamlbuild.

Automatic Installation

With opam:

opam install ocamlbuild

If you are testing a not yet released version of OCaml, you may need to use the development version of OCamlbuild. With opam:

opam pin add ocamlbuild --kind=git "https://github.com/ocaml/ocamlbuild.git#master"

Compilation from source

We assume GNU make, which may be named gmake on your system.

  1. Configure.
make configure

The installation location is determined by the installation location of the ocaml compiler. You can set the following configuration variables (make configure VAR=foo):

  • OCAMLBUILD_{PREFIX,BINDIR,LIBDIR} will use opam or ocaml/ocamlfind's settings by default; see configure.make for the precise initialization logic.
  • OCAML_NATIVE: should be true if native compilation is available on your machine, false otherwise
  1. Compile the sources.
make
  1. Install.
make install

You can also clean the compilation results with make clean, and uninstall a manually-installed OCamlbuild with make uninstall.

Dependencies (1)

  1. ocaml >= "4.08"

Dev Dependencies (2)

  1. menhirLib with-test
  2. ocamlfind with-test

  1. ANSITerminal < "0.8"
  2. abella < "2.0.8"
  3. affect
  4. afl-persistent < "1.1"
  5. ago < "0.4"
  6. alba < "0.4.1"
  7. aliases
  8. anycache < "0.7.4"
  9. apron >= "20160108"
  10. archimedes
  11. ascii85 < "0.4"
  12. asetmap
  13. asl < "0.11"
  14. asli < "0.2.0"
  15. asn1-combinators < "0.2.5"
  16. assertions
  17. astring
  18. atd2cconv
  19. BetterErrors
  20. b0
  21. bap-build
  22. base58
  23. base64 < "2.2.0"
  24. batteries < "3.7.1"
  25. bear
  26. beluga < "1.0"
  27. benchmark < "1.5"
  28. bencode < "2.0"
  29. bindlib >= "4.0.4" & < "6.0.0"
  30. bisect
  31. bisect_ppx < "1.3.3"
  32. bisect_ppx-ocamlbuild >= "1.0.1"
  33. bitcoin < "3.0"
  34. bolt
  35. bookaml
  36. bos
  37. bpf
  38. bracetax
  39. brr
  40. bytesrw
  41. cairo2 < "0.6"
  42. callipyge < "0.2"
  43. camllib
  44. camlp4 != "4.11+system" & != "4.12+system" & != "4.13+system"
  45. camltc < "0.9.8"
  46. caper
  47. captureio
  48. cbor < "0.3"
  49. cconv < "0.5"
  50. certify < "0.3.0"
  51. cgroups
  52. choice < "0.4"
  53. clangml < "4.0.1"
  54. cmark
  55. cmarkit
  56. cmdliner < "1.0.4"
  57. cmdtui < "0.4.3"
  58. combine
  59. conex < "0.10.0"
  60. corecount
  61. cow < "2.3.0"
  62. cppo_ocamlbuild
  63. cpuid < "0.1.2"
  64. crc < "2.0.0"
  65. crdt-ml
  66. crypt < "1.3"
  67. cryptokit < "1.16.1"
  68. csv < "2.0"
  69. ctypes-build
  70. cudf < "0.10"
  71. DAGaml
  72. datalog < "0.6"
  73. debian-formats < "0.1.2"
  74. dedukti < "2.7"
  75. devkit < "1.0"
  76. diffast-misc = "0.3.5.1"
  77. digestif < "0.6.1"
  78. dispatch < "0.4.0"
  79. diy
  80. docker-api < "0.2"
  81. dolmen < "0.4"
  82. dolog < "4.0.0"
  83. dose3 < "6.1"
  84. down
  85. dtoa < "0.3.0"
  86. dyntype
  87. earley < "3.0.0"
  88. efl
  89. eigen < "0.1.0"
  90. elasticsearch-cli < "0.5"
  91. emoji < "2.0.0"
  92. enumerators
  93. exenum < "0.82.0"
  94. expect < "0.1.0"
  95. extunix < "0.3.1"
  96. ezsqlite < "0.4"
  97. faraday < "0.3.0"
  98. farfadet
  99. fieldslib < "v0.13.0"
  100. fileutils < "0.6.1"
  101. fix < "20181206"
  102. flock
  103. flow_parser < "0.229.1"
  104. fmt
  105. fpath
  106. fstar < "2025.02.17"
  107. fstreams
  108. GuaCaml
  109. gadelac
  110. gammu < "0.9.4"
  111. gdal < "0.10.0"
  112. gedcom
  113. gen < "0.5.3"
  114. gen-bs
  115. genspir < "1.0.0"
  116. geoip
  117. getopt < "20230213"
  118. gg
  119. goblint-cil < "1.8.0"
  120. grain_wasm_spec
  121. grib
  122. gsl < "1.22.0"
  123. hamt
  124. hdfs
  125. heptagon
  126. herdtools7 < "7.54"
  127. hevea
  128. higher >= "0.3.0"
  129. hiredis < "0.8"
  130. hlarp
  131. hmap
  132. htmlit
  133. humane-re
  134. ISO8601 < "0.2.6"
  135. i2c
  136. inferno < "20190924"
  137. inotify < "2.4"
  138. integers < "0.3.0"
  139. inuit < "0.4.1"
  140. io
  141. irc-client < "0.6.0"
  142. itv-tree < "2.2"
  143. jasmin < "2023.06.0"
  144. javascriptcore
  145. jekyll-format < "0.2.0"
  146. jemalloc < "0.2"
  147. joolog
  148. js-build-tools
  149. js_of_ocaml-ocamlbuild
  150. json-rpc
  151. jsonm
  152. jsont
  153. junit < "1.0"
  154. kaputt
  155. karamel
  156. kinetic-client < "0.0.11"
  157. kremlin < "transition"
  158. lacaml < "10.0.1"
  159. lambdasoup < "0.6.2"
  160. launchd < "1.3"
  161. lem
  162. lens < "1.2.4"
  163. libssh
  164. libsvm < "0.9.4"
  165. libudev
  166. linkage
  167. linksem
  168. lipsum
  169. llvm < "3.9"
  170. llvmgraph
  171. logs
  172. lru < "0.3.0"
  173. lua-ml < "0.9.3"
  174. lustre-v6 < "6.103.3"
  175. lutils < "1.51.2"
  176. lutin < "2.71.10"
  177. lwt-binio
  178. lwt-zmq
  179. lwt_glib < "1.1.0"
  180. lymp
  181. lz4 < "1.2.0"
  182. lzo < "0.0.3"
  183. macaque < "0.7.4"
  184. macaroons
  185. magic-mime < "1.0.1"
  186. maildir
  187. mariadb < "1.2.0"
  188. markup < "0.7.6"
  189. maxminddb < "0.4"
  190. memcpy
  191. menhir < "20200123"
  192. mergeable-vector
  193. mesh < "0.8.9"
  194. mindstorm < "0.8"
  195. minima-theme
  196. minisat < "0.2"
  197. mirage < "4.0.0"
  198. mirage-btrees
  199. mirage-channel < "3.1.0"
  200. mirage-kv < "1.1.1"
  201. mirage-kv-lwt < "1.1.0"
  202. mirage-net-macosx < "1.2.0"
  203. mirage-seal
  204. mirage-tc
  205. mirage-types < "3.6.0"
  206. mkaudio < "1.1.0"
  207. mlbdd < "0.6"
  208. mlcuddidl
  209. monadlib
  210. monomorphic < "1.3"
  211. morbig < "0.10.3"
  212. mosquitto
  213. mparser < "1.3"
  214. mpp < "0.3.4"
  215. msat < "0.8"
  216. msgpack
  217. msgpck < "1.3"
  218. mtime
  219. murmur3 < "0.3"
  220. mustache < "3.1.0"
  221. mybuild < "7"
  222. named-pipe
  223. namespaces
  224. netlink < "0.3.4"
  225. nlopt-ocaml < "transition"
  226. nlp
  227. nocrypto
  228. nosetup
  229. note
  230. notty < "0.2.3"
  231. oasis
  232. oasis2debian
  233. oasis2opam
  234. obandit
  235. obelisk < "0.5.0"
  236. objsize
  237. obus < "1.2.1"
  238. obytelib
  239. ocaml-buddy
  240. ocaml-migrate-parsetree-ocamlbuild
  241. ocaml-monadic < "0.4.0"
  242. ocaml-protoc < "2.0.1"
  243. ocaml-protoc-yojson
  244. ocaml-sat-solvers < "0.8"
  245. ocaml-systemd < "1.3"
  246. ocaml-xdg-basedir < "transition"
  247. ocamlbuild-atdgen
  248. ocamlbuild-pkg
  249. ocamlbuild-protoc
  250. ocamlclean
  251. ocamldap < "transition"
  252. ocamlify < "0.1.0"
  253. ocamlmod < "0.1.1"
  254. ocamlnet
  255. ocamlpp
  256. ocapic
  257. ocb-stubblr
  258. ocephes
  259. ocplib-endian < "1.1"
  260. ocsfml
  261. octavius < "1.1.0"
  262. odds < "1.1"
  263. odepack < "0.6.9"
  264. odig
  265. olinq < "0.3"
  266. olmi
  267. omd < "1.3.2"
  268. oml
  269. omod
  270. omonad
  271. oolc
  272. opal < "0.1.1"
  273. ordma < "0.0.5"
  274. orm >= "0.7.1"
  275. orocksdb
  276. osc < "0.2.0"
  277. osdp < "1.1.1"
  278. ostap < "0.6"
  279. osx-acl
  280. osx-attr
  281. osx-membership
  282. osx-mount
  283. osx-plutil
  284. osx-xattr
  285. otfm
  286. ott >= "0.32"
  287. ounit < "2.1.2"
  288. pa_comprehension
  289. pa_qualified < "0.6"
  290. pa_solution != "0.6"
  291. pa_where
  292. papi < "0.1.1"
  293. parany < "9.0.0"
  294. pareto
  295. parmap < "1.1.1"
  296. pcap-format < "0.5.2"
  297. pci
  298. pci-db
  299. pcre < "7.3.0"
  300. pds-reachability < "0.2.3"
  301. pgocaml < "4.0"
  302. pgsolver < "4.4"
  303. pkcs11 < "0.18.0"
  304. plplot < "5.11.0-1"
  305. podge
  306. polyglot
  307. posix-clock
  308. posix-getopt < "2.0.0"
  309. posix-math
  310. posix-mqueue
  311. posix-semaphore
  312. posix-time
  313. posix-types < "2.0.0"
  314. postgresql < "4.1.0"
  315. pprint < "20200226"
  316. ppx_defer < "0.3.0"
  317. ppx_deriving_argparse
  318. ppx_distr_guards < "0.2"
  319. ppx_monoid < "0.3.2"
  320. printbox < "0.2"
  321. process
  322. proj4
  323. proverif < "2.01"
  324. psq < "0.1.1"
  325. ptime
  326. pure-splitmix < "0.3"
  327. py < "1.1"
  328. qbf < "0.3"
  329. qcheck < "0.13"
  330. qcstm
  331. qfs
  332. qrc
  333. qtest < "2.9"
  334. radare2 < "0.0.3"
  335. ranger
  336. raygun4ocaml
  337. rdbg < "1.196.12"
  338. rdr
  339. re < "1.7.2"
  340. react
  341. reactiveData < "0.2"
  342. records < "0.7.0"
  343. res < "5.0.0"
  344. resource-pooling < "1.1"
  345. rfc6287 < "1.0.4"
  346. rfsm < "1.6-alpha-3"
  347. rlp
  348. rml < "1.09.06"
  349. root1d < "0.5"
  350. rresult
  351. Snowflake
  352. safa
  353. safepass < "3.0"
  354. sail < "0.15"
  355. salsa20 < "1.0.0"
  356. salsa20-core < "1.0.0"
  357. sattools
  358. scid
  359. secp256k1 < "0.2.5"
  360. semver < "0.2.1"
  361. sendmsg
  362. sequence
  363. session < "0.4.0"
  364. sessions
  365. setr
  366. shcaml
  367. sid
  368. simple-diff
  369. simple_pam
  370. smart-print < "0.3.0"
  371. smtp
  372. socketcan
  373. sodium
  374. sosa
  375. spelll < "0.3"
  376. spreadsheet
  377. sqlgg < "20200521"
  378. sqlite3 < "4.2.0"
  379. starterkit
  380. statverif
  381. stdint < "0.5.1"
  382. stemming
  383. stringext < "1.5.0"
  384. sturgeon < "0.4.2"
  385. symkat
  386. syndic != "1.5" & < "1.6.0"
  387. syslog-message = "0.0.2"
  388. systemverilog < "0.0.2"
  389. TCSLib
  390. tallgeese
  391. tdk
  392. terminal_size < "0.1.4"
  393. text
  394. textwrap < "0.2.1"
  395. tgls
  396. tip-parser < "0.4"
  397. tls < "0.12.8"
  398. topkg
  399. topkg-care
  400. touist < "3.5.0"
  401. tplib
  402. tptp
  403. tree_layout < "0.2"
  404. tsdl
  405. ttweetnacl
  406. type_conv
  407. typerep < "v0.13.0"
  408. tyre < "0.4"
  409. tyxml = "4.2.0"
  410. uchar
  411. uint < "2.0.1"
  412. ulex
  413. ulex-camlp5
  414. unix-dirent
  415. unix-errno < "0.6.0"
  416. unix-sys-resource
  417. unix-sys-stat
  418. unix-time
  419. unix-type-representations < "0.1.3"
  420. unix-unistd
  421. usb
  422. user-setup
  423. uucd
  424. uucp
  425. uuidm
  426. uunf
  427. uuseg
  428. uutf
  429. variantslib < "v0.13.0"
  430. vector3 < "1.0.0"
  431. vg
  432. vhdlib
  433. visitors < "20200207"
  434. volt
  435. wamp < "1.2"
  436. wasm < "2.0.2"
  437. webbrowser
  438. webidl
  439. webmachine < "0.5.0"
  440. win-error < "0.3"
  441. win-eventlog < "0.2"
  442. wiringpi
  443. xmlm
  444. xxhash
  445. yajl
  446. yices2_bindings
  447. yurt < "0.6"
  448. zbar
  449. zipc
  450. zlist < "0.4.0"
  451. zmq < "5.0.0"
  452. zstd < "0.3"
  453. zxcvbn < "2.3+2"