Browse thread
Why does the order in the Makefile matter?
- Mattias Waldau
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Mattias Waldau <mattias.waldau@a...> |
| Subject: | Why does the order in the Makefile matter? |
Two runs 'make all', the only difference in the order in the OBJS-line in the Makefile. What is the needed order? Should I use the order of .depend? /mattias c:\data\ocaml\stocks\extract>make all ocamlc -g -c regexp.mli ocamlc -g -c source.ml ocamlc -g -c regexp.ml ocamlc -g -o all -custom str.cma unix.cma extract.cmo source.cmo column.cmo regexp.cmo Error while linking source.cmo: Reference to undefined global `Regexp' make: *** [all] Error 2 c:\data\ocaml\stocks\extract>make depend make depend make all ocamldep *.ml *.mli > .depend c:\data\ocaml\stocks\extract>make all ocamlc -g -o all -custom str.cma unix.cma column.cmo regexp.cmo extract.cmo source.cmo camlprim0.c The only difference made between these two compilations is that I moved source.cmo last in the OBJS-row in the Makefile OBJS=column.cmo regexp.cmo extract.cmo source.cmo ---- Mattias Waldau