summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2000-02-01 06:50:59 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2000-02-01 06:50:59 +0000
commitaf07b519959fe8ceb982d037ec0d6d934e6d512f (patch)
treef1245d65d6d947f154ea468af5ce0cb19a276ca8
parentdd1eae5c347ee498195135a0f21ec0afb08ba0c5 (diff)
native compilation before installing
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2774 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/labltk/example/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/otherlibs/labltk/example/Makefile b/otherlibs/labltk/example/Makefile
index 0f5f72ae0..c485b407e 100644
--- a/otherlibs/labltk/example/Makefile
+++ b/otherlibs/labltk/example/Makefile
@@ -4,7 +4,7 @@ COMPFLAGS=-I ../lib -I ../support
all: hello demo eyes calc clock tetris
-opt: hello.opt demo.opt eyes.opt calc.opt tetris.opt
+opt: hello.opt demo.opt eyes.opt calc.opt clock.opt tetris.opt
hello: hello.cmo
$(LABLC) -custom $(COMPFLAGS) -o hello tk41.cma hello.cmo $(TKLINKOPT)
@@ -23,8 +23,9 @@ clock: clock.cmo
$(TKLINKOPT) -cclib -lunix
clock.opt: clock.cmx
- $(CAMLOPT) $(COMPFLAGS) -o clock.opt tk41.cmxa unix.cmxa clock.cmx \
- $(TKLINKOPT) -cclib -lunix
+ $(CAMLOPT) $(COMPFLAGS) -o clock.opt \
+ tk41.cmxa -I $(OTHERS)/unix unix.cmxa clock.cmx \
+ $(TKLINKOPT) -cclib "-L$(OTHERS)/unix -lunix"
tetris: tetris.cmo
$(LABLC) -custom $(COMPFLAGS) -o tetris tk41.cma tetris.cmo $(TKLINKOPT)
@@ -45,4 +46,4 @@ clean:
$(CAMLOPT) -c $(COMPFLAGS) $<
.cmx.opt:
- labltkopt $(COMPFLAGS) -o $@ $<
+ $(CAMLOPT) $(COMPFLAGS) -o $@ tk41.cmxa $< $(TKLINKOPT)