forked from ChrisJohnsen/gibak
-
Notifications
You must be signed in to change notification settings - Fork 3
/
OMakefile
59 lines (44 loc) · 1.8 KB
/
OMakefile
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
# If your build aborts with an error saying that find-git-files
# and/or find-git-repos are invalid modules names, uncomment the
# following line. Some versions of omake(?) use -warn-error A to
# convert all warnings into errors. If we turn off that
# warning-to-error promotion for the "x" warnings, the build can
# continue.
#OCAMLFLAGS += -warn-error x
# If ocaml-fileutils is not installed in the same place as the OCaml
# compiler, then ocamlfind will need to be told where it can find
# fileutils.
#setenv(OCAMLPATH, /path/to/ocaml-fileutils/install/lib)
# Include path for the caml headers <caml/mlvalues.h> and friends.
# You might need something this if you have installed OCaml manually or via
# something like macports:
#INCLUDES += /opt/local/lib/ocaml
# Uncomment one of the following if you want support for extended attributes,
# depending on your OS:
#CFLAGS = -DHAVE_OSX_XATTR
#CFLAGS = -DHAVE_LINUX_XATTR
# This might be needed if you are using -DHAVE_LINUX_XATTR and are using an
# older version of glibc, to link against libattr1.
#OCAMLFLAGS += -cclib -lattr
# Use the fileutils library for a recursive mkdir
USE_OCAMLFIND = TRUE
OCAMLPACKS[] =
fileutils
unix
str
# === No change should be needed after this line. ===
OCAMLFLAGS += -dtypes -warn-error Aelzx -w Aelzx
OCAMLOPTFLAGS += -inline 10 -S
%.o: %.c
$(OCAMLC) $(mapprefix -ccopt, $(CFLAGS)) -c $^
StaticCLibrary(ometastore_stub, ometastore_stub)
OCAML_CLIBS += ometastore_stub
INCLUDES += /usr/lib/ocaml/fileutils
OCAMLFLAGS += -warn-error x
OCamlProgram(ometastore, folddir util ometastore)
OCamlProgram(find-git-repos, folddir util find-git-repos)
OCamlProgram(find-git-files, folddir util find-git-files)
.DEFAULT: ometastore find-git-files find-git-repos
.PHONY: clean
clean:
rm -f $(filter-proper-targets $(ls R, .)) *.s *.annot