~ubuntu-branches/ubuntu/quantal/xen/quantal

« back to all changes in this revision

Viewing changes to tools/ocaml/libs/log/Makefile

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-22 04:53:35 UTC
  • mfrom: (0.4.1) (1.3.2) (15.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20111222045335-k2jy47lo9124o7e3
Tags: 4.1.2-2ubuntu1
* Merge from Debian testing.  Remaining changes:
    - libxenstore3.0: Conflict and replaces libxen3.
    - libxen-dev: Conflict and replaces libxen3-dev.
    - xenstore-utils: Conflict and replaces libxen3.
    - xen-utils-4.1: Conflict and replaces libxen3, python-xen-3.3,
      and xen-utils-4.1.
    - Make sure the LDFLAGS value passed is suitable for use by ld
      rather than gcc.
    - Dropped:
      - debian/patches/upstream-23044:d4ca456c0c25
      - debian/patches/upstream-23104:1976adbf2b80
      - debian/patches/upstream-changeset-23146.patch
      - debian/patches/upstream-changeset-23147.patch
      - debian/patches/xen-pirq-resubmit-irq.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
TOPLEVEL=../..
2
 
XEN_ROOT=$(TOPLEVEL)/../..
3
 
include $(TOPLEVEL)/common.make
4
 
 
5
 
OBJS = syslog log logs
6
 
INTF = log.cmi logs.cmi syslog.cmi
7
 
LIBS = log.cma log.cmxa
8
 
 
9
 
all: $(INTF) $(LIBS) $(PROGRAMS)
10
 
 
11
 
bins: $(PROGRAMS)
12
 
 
13
 
libs: $(LIBS)
14
 
 
15
 
log.cmxa: libsyslog_stubs.a $(foreach obj,$(OBJS),$(obj).cmx)
16
 
        $(call mk-caml-lib-native, $@, -cclib -lsyslog_stubs, $(foreach obj,$(OBJS),$(obj).cmx))
17
 
 
18
 
log.cma: $(foreach obj,$(OBJS),$(obj).cmo)
19
 
        $(call mk-caml-lib-bytecode, $@, -dllib dllsyslog_stubs.so -cclib -lsyslog_stubs, $(foreach obj,$(OBJS),$(obj).cmo))
20
 
 
21
 
syslog_stubs.a: syslog_stubs.o
22
 
        $(call mk-caml-stubs, $@, $+)
23
 
 
24
 
libsyslog_stubs.a: syslog_stubs.o
25
 
        $(call mk-caml-lib-stubs, $@, $+)
26
 
 
27
 
logs.mli : logs.ml
28
 
        $(OCAMLC) -i $(OCAMLCFLAGS) $< > $@
29
 
 
30
 
syslog.mli : syslog.ml
31
 
        $(OCAMLC) -i $< > $@
32
 
 
33
 
.PHONY: install
34
 
install: $(LIBS) META
35
 
        mkdir -p $(OCAMLDESTDIR)
36
 
        ocamlfind remove -destdir $(OCAMLDESTDIR) log
37
 
        ocamlfind install -destdir $(OCAMLDESTDIR) -ldconf ignore log META $(INTF) $(LIBS) *.a *.so *.cmx
38
 
 
39
 
.PHONY: uninstall
40
 
uninstall:
41
 
        ocamlfind remove -destdir $(OCAMLDESTDIR) log
42
 
 
43
 
include $(TOPLEVEL)/Makefile.rules
44