This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
/
Makefile
52 lines (39 loc) · 1.49 KB
/
Makefile
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
TOP=..
##############################################################################
# Variables
##############################################################################
TARGET=lib
SRC=cairo_helpers3.ml \
model3.ml controller3.ml \
view_matrix.ml view_overlays3.ml \
view3.ml
SYSLIBS=str.cma unix.cma dbm.cma threads.cma lablgtk.cma
LIBS=$(TOP)/commons/commons.cma $(TOP)/commons/commons_gui.cma \
$(TOP)/commons/commons_features.cma \
$(TOP)/globals/globals.cma \
INCLUDEDIRS=$(TOP)/commons $(TOP)/globals \
$(TOP)/h_program-lang \
$(TOP)/h_visualization \
$(TOP)/h_program-visual \
SYSINCLUDES=\
-I $(TOP)/external/ocamlgtk/src \
-I $(TOP)/external/ocamlcairo/src \
##############################################################################
# Generic variables
##############################################################################
-include $(TOP)/Makefile.common
##############################################################################
# Top rules
##############################################################################
all:: $(TARGET).cma
all.opt:: $(TARGET).cmxa
opt: all.opt
$(TARGET).cma: $(OBJS) $(LIBS)
$(OCAMLC) -a -o $(TARGET).cma $(OBJS)
$(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
$(OCAMLOPT) -a -o $(TARGET).cmxa $(OPTOBJS)
clean::
rm -f $(TARGET).top
##############################################################################
# Generic rules
##############################################################################