[Omake] A question about the OCamlPackage function and its use...
Jason Hickey
jyh at cs.caltech.edu
Thu Feb 1 15:36:52 PST 2007
I think the quick solution to your problem is to make sure you don't
use -for-pack in OCamlPackage. You should place the definition
"OCAMLFLAGS = -for-pack $(PACK)" *after* the call the OCamlPackage.
Here is a modification to your code, can you check and see if it works?
Jason
RESULT=algebra
### THis project is going to pack some files into a module with the
same name of the lib.
PACK = $(RESULT)
USE_OCAMLFIND = true
OCAMLPACKS[] +=
prelude
ocamlgraph
PACKED_FILES[] =
compare
orders
lattices
andsoonandsoforth
################################################
### Build a particular pack
### List here all the PACKS and their PACKED FILES
pack: $(OCamlPackage $(PACK), $(PACKED_FILES))
### Do not use -for-pack for OCamlPackage.
#get rid of -warn-errors A
OCAMLFLAGS = -for-pack $(PACK)
################################################
# Build an OCaml library
# In this instance, the library just contains one package.
FILES[] =
$(PACK)
LIB = $(RESULT)
#.DEFAULT: pack $(OCamlLibrary $(LIB), $(FILES))
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list