-
Notifications
You must be signed in to change notification settings - Fork 2
/
OMakefile
88 lines (69 loc) · 1.73 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
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
#
# Include files from subdirectories
#
open build/C
open build/Common
include stdlib/Files
include system/Files
include util/Files
include unix/Files
STDLIB_FILES = $(file $(addprefix stdlib/, $(STDLIB_FILES)))
SYSTEM_FILES = $(file $(addprefix system/, $(SYSTEM_FILES)))
UTIL_FILES = $(file $(addprefix util/, $(UTIL_FILES)))
UNIX_FILES = $(file $(addprefix unix/, $(UNIX_FILES)))
FILES[] =
$(STDLIB_FILES)
$(UNIX_FILES)
$(SYSTEM_FILES)
$(UTIL_FILES)
USE_OCAMLFIND = false
if $(not $(defined LMINSTALL))
LMINSTALL = false
export
if $(not $(defined LIB))
LIB = /dev/null
export
section
ABORT_ON_DEPENDENCY_ERRORS = false
if $(LMINSTALL)
OCamlLibraryInstall($(LMINSTALL), $(LIB), lm, $(FILES))
else
OCamlLibrary(lm, $(FILES))
open build/svn_realclean
if $(not $(defined CLEAN))
.PHONY: clean realclean
if $(not $(defined FORCE_REALCLEAN))
FORCE_REALCLEAN = false
export
realclean: clean
svn_realclean $(if $(FORCE_REALCLEAN), -f) -i .omakedb -i .omakedb.lock
CLEAN = rm -rf *.cm* *~ .\#* *.o *.obj *.a *.lib *.exe *.omc *.tmp
export
clean:
$(CLEAN)
#
# Configuration
#
if $(not $(defined LM_STANDALONE))
LM_STANDALONE = false
export
if $(not $(defined CAMLLIB))
CAMLLIB = $(dir $(getenv CAMLLIB, $(getenv OCAMLLIB, $(shell $(OCAMLC) -where))))
INCLUDES += $(CAMLLIB)
export
LIBFILES =
if $(NATIVE_ENABLED)
LIBFILES += lm.cmxa lm$(EXT_LIB)
export
if $(BYTE_ENABLED)
LIBFILES += lm.cma
export
if $(LM_STANDALONE)
.DEFAULT: $(LIBFILES)
if $(not $(defined THREADS_ENABLED))
THREADS_ENABLED = false
export
#
# Subdirectories of this project
#
.SUBDIRS: cutil stdlib unix system util