~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to stubdom/caml/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XEN_ROOT = ../..
 
2
 
 
3
include $(XEN_ROOT)/Config.mk
 
4
 
 
5
CAMLLIB = $(shell $(OCAMLC_CROSS_PREFIX)ocamlc -where)
 
6
DEF_CPPFLAGS += -I$(CAMLLIB)
 
7
 
 
8
OCAMLOPT=$(OCAMLC_CROSS_PREFIX)ocamlopt
 
9
 
 
10
OBJS := hello.cmx
 
11
LIBS := 
 
12
 
 
13
all: main-caml.o caml.o
 
14
 
 
15
%.cmx: %.ml
 
16
        $(OCAMLOPT) -c $< -o $@
 
17
 
 
18
caml.o: $(OBJS)
 
19
        $(OCAMLOPT) $(LIBS) $^ -output-obj -o $@
 
20
 
 
21
clean:
 
22
        rm -f *.a *.o *.cmx *.cmi