Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (36 sloc) 1.431 kb
8634b74 initial import into fresh git repo.
pad authored
1 TOP=..
2 ##############################################################################
3 # Variables
4 ##############################################################################
5 TARGET=lib
6
7 SRC= patch.ml lib_vcs.ml \
8 version_control.ml \
ab31d4f @aryx * h_version-control/git.ml: make parent_git_dot obsolete for now.
aryx authored
9 git.ml cvs.ml mercurial.ml \
272cd41 @aryx pfff: [git api] supports the 'R099 src target' diff status format
aryx authored
10 test_version_control.ml unit_version_control.ml
8634b74 initial import into fresh git repo.
pad authored
11
ea99ce2 moving a few files so that 'make dotall' can now work
pad authored
12 #todo: empty for now
13 SRC+=subversion.ml
14
8634b74 initial import into fresh git repo.
pad authored
15
16 LIBS=../commons/commons.cma
272cd41 @aryx pfff: [git api] supports the 'R099 src target' diff status format
aryx authored
17 INCLUDEDIRS= ../commons ../commons/lib-sexp ../commons/ocamlextra
8634b74 initial import into fresh git repo.
pad authored
18
19 TARGET1=vcs
20
21 PROGS=$(TARGET1)
22
23 SYSLIBS1=nums.cma bigarray.cma str.cma unix.cma
24 SYSLIBS= $(SYSLIBS1)
25
26 ##############################################################################
27 # Generic variables
28 ##############################################################################
29 -include $(TOP)/Makefile.common
30
31 ##############################################################################
32 # Top rules
33 ##############################################################################
34 all:: $(TARGET).cma $(PROGS)
35 all.opt:: $(TARGET).cmxa $(PROGS:=.opt)
36
37 $(TARGET).cma: $(OBJS) $(LIBS)
38 $(OCAMLC) -a -o $@ $(OBJS)
39
40 $(TARGET).cmxa: $(OPTOBJS) $(LIBS:.cma=.cmxa)
41 $(OCAMLOPT) -a -o $@ $(OPTOBJS)
42
43
44 $(TARGET1): $(LIBS) $(EXTRALIBS) $(OBJS) main_vcs.cmo
45 $(OCAMLC) -custom -o $@ $(SYSLIBS) $^
46
47 $(TARGET1).opt: $(LIBS:.cma=.cmxa) $(EXTRALIBS:.cma=.cmxa) $(OBJS:.cmo=.cmx) main_vcs.cmx
48 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
49
50 clean::
51 rm -f $(PROGS)
Something went wrong with that request. Please try again.