Makefile and directory layout
Jonathon McKitrick
jcm at FreeBSD-uk.eu.org
Wed Feb 16 17:00:46 GMT 2005
Hi all,
I'm about to port several libraries to *nix because a new customer needs it
to run on an open source OS. I need some ideas for how to set this up.
It's going to be a binary-only distribution, AFAIK, but I don't know if that
should affect the directory layout.
What I have are a lot of libraries (components, really), and many, but not
all, have nested dependencies.
Am I better off with a flat directory with subdirs for each library and one
big subdir for all include files? Or, does it make more sense to place
library source directories and header files *within* the directories of
libraries that need them?
So, if libfoo requires libbar and no other library does:
proj/
Makefile
include/
foo.h
bar.h
libfoo/
Makefile
src/
foo.c
libbar/
Makefile
src/
bar.c
**OR**
proj/
Makefile
include/
foo.h
libfoo/
Makefile
include/
bar.h
src/
foo.c
libbar/
Makefile
src/
bar.c
Is there a better way? Especially for header files just needed internally
for the library itself versus headers shared between modules?
Jonathon McKitrick
--
My other computer is your Windows box.
More information about the freebsd-questions
mailing list