~ubuntu-branches/ubuntu/trusty/ocamlnet/trusty

« back to all changes in this revision

Viewing changes to examples/cgi/netcgi2/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-09-02 14:12:33 UTC
  • mfrom: (18.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110902141233-zbj0ygxb92u6gy4z
Tags: 3.4-1
* New upstream release
  - add a new NetcgiRequire directive to ease dependency management
    (Closes: #637147)
  - remove patches that were applied upstream:
    + Added-missing-shebang-lines-in-example-shell-scripts
    + Try-also-ocamlc-for-POSIX-threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
INCLUDES += -I $(CRYPTOKIT_PATH)
16
16
endif
17
17
 
18
 
LIBS_CMA        = str.cma pcre.cma unix.cma netsys.cma netstring.cma \
 
18
PCRE_PATH= $(shell $(OCAMLFIND) query pcre)
 
19
ifneq "$(PCRE_PATH)" ""
 
20
PCRE_LIBS= pcre.cma
 
21
INCLUDES += -I $(PCRE_PATH)
 
22
endif
 
23
 
 
24
LIBS_CMA        = str.cma $(PCRE_LIBS) unix.cma bigarray.cma netsys_oothr.cmo netsys.cma netstring.cma \
19
25
  $(CRYPTOKIT_LIBS)
20
 
LIBS_CMXA       = $(LIBS_CMA:.cma=.cmxa)
 
26
LIBS_CMXA1      = $(LIBS_CMA:.cma=.cmxa)
 
27
LIBS_CMXA       = $(LIBS_CMXA1:.cmo=.cmx)
21
28
OCAMLC_FLAGS    = -dtypes $(INCLUDES)
22
29
OCAMLOPT_FLAGS  = -dtypes $(INCLUDES)
23
30
 
36
43
endif
37
44
endif
38
45
 
 
46
counter_apache.cma: counter.cmo counter_apache.cmo
 
47
        $(OCAMLC) -a -o counter_apache.cma \
 
48
                $(OCAMLC_FLAGS) counter.cmo counter_apache.cmo
 
49
 
39
50
######################################################################
40
51
 
41
52
.PHONY: all opt byte