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. lmdb >= "1.1.3"
  172. logs
  173. lru < "0.3.0"
  174. lua-ml < "0.9.3"
  175. lustre-v6 < "6.103.3"
  176. lutils < "1.51.2"
  177. lutin < "2.71.10"
  178. lwt-binio
  179. lwt-zmq
  180. lwt_glib < "1.1.0"
  181. lymp
  182. lz4 < "1.2.0"
  183. lzo < "0.0.3"
  184. macaque < "0.7.4"
  185. macaroons
  186. magic-mime < "1.0.1"
  187. maildir
  188. mariadb < "1.2.0"
  189. markup < "0.7.6"
  190. maxminddb < "0.4"
  191. memcpy
  192. menhir < "20200123"
  193. mergeable-vector
  194. mesh < "0.8.9"
  195. mindstorm < "0.8"
  196. minima-theme
  197. minisat < "0.2"
  198. mirage < "4.0.0"
  199. mirage-btrees
  200. mirage-channel < "3.1.0"
  201. mirage-kv < "1.1.1"
  202. mirage-kv-lwt < "1.1.0"
  203. mirage-net-macosx < "1.2.0"
  204. mirage-seal
  205. mirage-tc
  206. mirage-types < "3.6.0"
  207. mkaudio < "1.1.0"
  208. mlbdd < "0.6"
  209. mlcuddidl
  210. monadlib
  211. monomorphic < "1.3"
  212. morbig < "0.10.3"
  213. mosquitto
  214. mparser < "1.3"
  215. mpp < "0.3.4"
  216. msat < "0.8"
  217. msgpack
  218. msgpck < "1.3"
  219. mtime
  220. murmur3 < "0.3"
  221. mustache < "3.1.0"
  222. mybuild < "7"
  223. named-pipe
  224. namespaces
  225. netlink < "0.3.4"
  226. nlopt-ocaml < "transition"
  227. nlp
  228. nocrypto
  229. nosetup
  230. note
  231. notty < "0.2.3"
  232. oasis
  233. oasis2debian
  234. oasis2opam
  235. obandit
  236. obelisk < "0.5.0"
  237. objsize
  238. obus < "1.2.1"
  239. obytelib
  240. ocaml-buddy
  241. ocaml-migrate-parsetree-ocamlbuild
  242. ocaml-monadic < "0.4.0"
  243. ocaml-protoc < "2.0.1"
  244. ocaml-protoc-yojson
  245. ocaml-sat-solvers < "0.8"
  246. ocaml-systemd < "1.3"
  247. ocaml-xdg-basedir < "transition"
  248. ocamlbuild-atdgen
  249. ocamlbuild-pkg
  250. ocamlbuild-protoc
  251. ocamlclean
  252. ocamldap < "transition"
  253. ocamlify < "0.1.0"
  254. ocamlmod < "0.1.1"
  255. ocamlnet
  256. ocamlpp
  257. ocapic
  258. ocb-stubblr
  259. ocephes
  260. ocplib-endian < "1.1"
  261. ocsfml
  262. octavius < "1.1.0"
  263. odds < "1.1"
  264. odepack < "0.6.9"
  265. odig
  266. olinq < "0.3"
  267. olmi
  268. omd < "1.3.2"
  269. oml
  270. omod
  271. omonad
  272. oolc
  273. opal < "0.1.1"
  274. ordma < "0.0.5"
  275. orm >= "0.7.1"
  276. orocksdb
  277. osc < "0.2.0"
  278. osdp < "1.1.1"
  279. ostap < "0.6"
  280. osx-acl
  281. osx-attr
  282. osx-membership
  283. osx-mount
  284. osx-plutil
  285. osx-xattr
  286. otfm
  287. ott >= "0.32"
  288. ounit < "2.1.2"
  289. pa_comprehension
  290. pa_qualified < "0.6"
  291. pa_solution != "0.6"
  292. pa_where
  293. papi < "0.1.1"
  294. parany < "9.0.0"
  295. pareto
  296. parmap < "1.1.1"
  297. pcap-format < "0.5.2"
  298. pci
  299. pci-db
  300. pcre < "7.3.0"
  301. pds-reachability < "0.2.3"
  302. pgocaml < "4.0"
  303. pgsolver < "4.4"
  304. pkcs11 < "0.18.0"
  305. plplot < "5.11.0-1"
  306. podge
  307. polyglot
  308. posix-clock
  309. posix-getopt < "2.0.0"
  310. posix-math
  311. posix-mqueue
  312. posix-semaphore
  313. posix-time
  314. posix-types < "2.0.0"
  315. postgresql < "4.1.0"
  316. pprint < "20200226"
  317. ppx_defer < "0.3.0"
  318. ppx_deriving_argparse
  319. ppx_distr_guards < "0.2"
  320. ppx_monoid < "0.3.2"
  321. printbox < "0.2"
  322. process
  323. proj4
  324. proverif < "2.01"
  325. psq < "0.1.1"
  326. ptime
  327. pure-splitmix < "0.3"
  328. py < "1.1"
  329. qbf < "0.3"
  330. qcheck < "0.13"
  331. qcstm
  332. qfs
  333. qrc
  334. qtest < "2.9"
  335. radare2 < "0.0.3"
  336. ranger
  337. raygun4ocaml
  338. rdbg < "1.196.12"
  339. rdr
  340. re < "1.7.2"
  341. react
  342. reactiveData < "0.2"
  343. records < "0.7.0"
  344. res < "5.0.0"
  345. resource-pooling < "1.1"
  346. rfc6287 < "1.0.4"
  347. rfsm < "1.6-alpha-3"
  348. rlp
  349. rml < "1.09.06"
  350. root1d < "0.5"
  351. rresult
  352. Snowflake
  353. safa
  354. safepass < "3.0"
  355. sail < "0.15"
  356. salsa20 < "1.0.0"
  357. salsa20-core < "1.0.0"
  358. sattools
  359. scid
  360. secp256k1 < "0.2.5"
  361. semver < "0.2.1"
  362. sendmsg
  363. sequence
  364. session < "0.4.0"
  365. sessions
  366. setr
  367. shcaml
  368. sid
  369. simple-diff
  370. simple_pam
  371. smart-print < "0.3.0"
  372. smtp
  373. socketcan
  374. sodium
  375. sosa
  376. spelll < "0.3"
  377. spreadsheet
  378. sqlgg < "20200521"
  379. sqlite3 < "4.2.0"
  380. starterkit
  381. statverif
  382. stdint < "0.5.1"
  383. stemming
  384. stringext < "1.5.0"
  385. sturgeon < "0.4.2"
  386. symkat
  387. syndic != "1.5" & < "1.6.0"
  388. syslog-message = "0.0.2"
  389. systemverilog < "0.0.2"
  390. TCSLib
  391. tallgeese
  392. tdk
  393. terminal_size < "0.1.4"
  394. text
  395. textwrap < "0.2.1"
  396. tgls
  397. tip-parser < "0.4"
  398. tls < "0.12.8"
  399. topkg
  400. topkg-care
  401. touist < "3.5.0"
  402. tplib
  403. tptp
  404. tree_layout < "0.2"
  405. tsdl
  406. ttweetnacl
  407. type_conv
  408. typegist
  409. typerep < "v0.13.0"
  410. tyre < "0.4"
  411. tyxml = "4.2.0"
  412. uchar
  413. uint < "2.0.1"
  414. ulex
  415. ulex-camlp5
  416. unix-dirent
  417. unix-errno < "0.6.0"
  418. unix-sys-resource
  419. unix-sys-stat
  420. unix-time
  421. unix-type-representations < "0.1.3"
  422. unix-unistd
  423. usb
  424. user-setup
  425. uucd
  426. uucp
  427. uuidm
  428. uunf
  429. uuseg
  430. uutf
  431. variantslib < "v0.13.0"
  432. vector3 < "1.0.0"
  433. vg
  434. vhdlib
  435. visitors < "20200207"
  436. volt
  437. wamp < "1.2"
  438. wasm < "2.0.2"
  439. webbrowser
  440. webidl
  441. webmachine < "0.5.0"
  442. win-error < "0.3"
  443. win-eventlog < "0.2"
  444. wiringpi
  445. xmlm
  446. xxhash
  447. yajl
  448. yices2_bindings
  449. yurt < "0.6"
  450. zbar
  451. zipc
  452. zlist < "0.4.0"
  453. zmq < "5.0.0"
  454. zstd < "0.3"
  455. zxcvbn < "2.3+2"