~ubuntu-branches/ubuntu/trusty/coccinelle/trusty

« back to all changes in this revision

Viewing changes to commons/Makefile

  • Committer: Package Import Robot
  • Author(s): Євгеній Мещеряков
  • Date: 2012-08-19 20:40:52 UTC
  • mfrom: (7.2.8 experimental)
  • Revision ID: package-import@ubuntu.com-20120819204052-8cujknwy6cn8a6h6
Tags: 1.0.0~rc15.deb-1
* New upstream RC 
  - Do not build-depend on libsexplib-camlp4-dev and libextlib-ocaml-dev
    anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        oarray.ml                                \
29
29
        ocollection/ograph2way.ml                \
30
30
        ograph_simple.ml ograph_extended.ml      \
31
 
        ofullcommon.ml                           \
32
31
        glimpse.ml parser_combinators.ml
33
32
 
34
33
# src from other authors, got from the web or caml hump
76
75
MPIINCLUDES=-I ../ocamlmpi -I ../../ocamlmpi -I +ocamlmpi
77
76
MPISYSLIBS=mpi.cma
78
77
 
79
 
#sexplib
80
 
MYSEXPSRC=sexp_common.ml
81
 
SEXPINCLUDES=-I $(SEXPDIR)
82
 
 
83
78
#binprot
84
79
MYBINSRC=bin_common.ml
85
80
BININCLUDES=-I ../ocamltarzan/lib-binprot -I ../../ocamltarzan/lib-binprot
90
85
 
91
86
#backtrace
92
87
MYBACKTRACESRC=backtrace.ml
93
 
BACKTRACEINCLUDES=-I $(shell ocamlc -where)
 
88
BACKTRACEINCLUDES=-I $(shell $(OCAMLC) -where)
94
89
 
95
90
 
96
91
##############################################################################
105
100
 
106
101
# This flag can also be used in subdirectories so don't change its name here.
107
102
# For profiling use:  -p -inline 0
108
 
OPTFLAGS=
109
 
#-thread
 
103
OCAMLCFLAGS ?= -g
 
104
OPTFLAGS ?= -g
110
105
 
111
106
# The OPTBIN variable is here to allow to use ocamlc.opt instead of
112
107
# ocaml, when it is available, which speeds up compilation. So
114
109
# or setenv it to ".opt" in your startup script.
115
110
OPTBIN ?= #.opt
116
111
 
117
 
OCAMLCFLAGS ?= -g -dtypes
118
 
 
119
112
# The OCaml tools.
120
113
OCAMLC_CMD=$(OCAMLC) $(OCAMLCFLAGS) $(INCLUDES)
121
114
OCAMLOPT_CMD=$(OCAMLOPT) $(OPTFLAGS) $(INCLUDES)
133
126
 
134
127
 
135
128
all: $(LIB)
136
 
all.opt: $(OPTLIB)
 
129
all.opt:
 
130
        @$(MAKE) $(OPTLIB) BUILD_OPT=yes
137
131
opt: all.opt
138
132
top: $(TARGET).top
139
133
 
244
238
 
245
239
 
246
240
#-----------------------------------------------------------------------------
247
 
.PHONEY: sexp.all sexp.opt
248
 
sexp.all:
249
 
        $(MAKE) INCLUDESEXTRA="$(SEXPINCLUDES)" commons_sexp.cma
250
 
sexp.opt:
251
 
        $(MAKE) INCLUDESEXTRA="$(SEXPINCLUDES)" commons_sexp.cmxa
252
 
 
253
 
commons_sexp.cma: $(MYSEXPSRC:.ml=.cmo)
254
 
        $(OCAMLC_CMD) -a -o $@ $^
255
 
 
256
 
commons_sexp.cmxa: $(MYSEXPSRC:.ml=.cmx)
257
 
        $(OCAMLOPT_CMD) -a -o $@ $^
258
 
 
259
241
binprot:
260
242
        $(MAKE) INCLUDESEXTRA="$(BININCLUDES)" commons_bin.cma
261
243
binprot.opt:
342
324
-include .depend
343
325
endif
344
326
endif
 
327
 
 
328
include ../Makefile.common