Skip to content

Instantly share code, notes, and snippets.

View agarwal's full-sized avatar

Ashish Agarwal agarwal

View GitHub Profile
@agarwal
agarwal / OMakeroot-OCamlLibrary-example
Last active October 2, 2015 21:29
OMake function to build an OCaml library.
# 2015-Oct-2: Update: You should disregard the below. A more up
# to date version of this file is maintained at
# https://github.com/biocaml/biocaml/blob/master/etc/OCaml.om. Note
# that file is still not very good (we're just hacking and hoping
# to avoid OMake at some point), so the caveats below do still
# hold.
# This is a very rough implementation of an OMake function to compile
# a library. It isn't good OMake code and definitely not usable
# out-of-the-box. It is only useful for you to read and learn a little
@agarwal
agarwal / Ocsigen-OMakeroot
Last active August 29, 2015 14:20
OMake based build system for Ocsigen apps.
# OMake based build system for an Ocsigen project. I don't claim this
# to be a good solution, but it is reasonably clear and complete. I
# hope you can benefit from it.
#
# It is assumed that all files are in a lib/ sub-directory. You can
# have a mix of ml and eliom files, and they can optionally have
# corresponding mli or eliomi files. About the only thing you should
# have to do is list your project's files in SERVER_LIB_FILES and
# CLIENT_LIB_FILES.
#