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

« back to all changes in this revision

Viewing changes to ocaml/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:
15
15
#LIBS=../commons/commons.cma ../parsing_c/parsing_c.cma
16
16
#INCLUDES= -I ../commons -I ../parsing_c
17
17
INCLUDES = -I ../commons -I ../commons/ocamlextra -I ../globals \
18
 
               -I ../parsing_cocci -I ../parsing_c
 
18
               -I ../parsing_cocci -I ../parsing_c -I ../engine
19
19
LIBS=../commons/commons.cma ../globals/globals.cma \
20
20
     ../parsing_c/parsing_c.cma ../parsing_cocci/cocci_parser.cma
21
21
 
27
27
 
28
28
#for warning:  -w A
29
29
#for profiling:  -p -inline 0   with OCAMLOPT
30
 
OCAMLCFLAGS ?= -g -dtypes
31
 
OPTFLAGS?=$(OCAMLCFLAGS)
 
30
OCAMLCFLAGS ?= -g
 
31
OPTFLAGS ?= -g
32
32
 
33
33
OCAMLC_CMD=$(OCAMLC) $(OCAMLCFLAGS) $(INCLUDES)
34
34
OCAMLOPT_CMD=$(OCAMLOPT) $(OPTFLAGS) $(INCLUDES)
43
43
# Top rules
44
44
##############################################################################
45
45
all: $(TARGET).cma
46
 
all.opt: $(TARGET).cmxa
 
46
all.opt:
 
47
        @$(MAKE) $(TARGET).cmxa BUILD_OPT=yes
47
48
 
48
49
$(TARGET).cma: $(OBJS)
49
50
        $(OCAMLC_CMD) -a -o $(TARGET).cma $(OBJS)
96
97
endif
97
98
endif
98
99
endif
 
100
 
 
101
include ../Makefile.common