Version française
Home     About     Download     Resources     Contact us    
Browse thread
How to compile project with sub directories (using OcamlMakefile)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Conglun Yao <yaoconglun@g...>
Subject: How to compile project with sub directories (using OcamlMakefile)
Dear camlers,

I've been stuck by this problem for few days, and can't find the
answer.  I built a project with several sub directories, like lib01,
lib02 and lib03, and create a Makefile in each directory.

In the top level, I have a Makefile like :

all:
	@cd lib01 && make all
	@cd lib02&& make all
	@cd lib03 && make all

Makefile in lib01 .. lib03:

OCAMLMAKEFILE = ../OCamlMakefile

SOURCES  = ..... library files

RESULT = lib01

.PHONY: all
all:     bcl ncl

include $(OCAMLMAKEFILE)

Using these Makefiles, lib01.cma, lib02.cma, lib03.cma are created.

Now I face the problem, how to install these *.cma using
OcamlMakefile, and is it possible to create a single package including
all these cmas.

Any suggestion will be appreciated!

Conglun