[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
subdirs for multiple binaries
From: |
Philip Herron |
Subject: |
subdirs for multiple binaries |
Date: |
Wed, 15 Apr 2009 15:34:30 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey
Another topic, its another basic question. Dont worry its not yacc/lex
related ;). But say you have a project structure like
project->
include->*.h
src->*.c
-> subdir -> *.c
-> subdir2 -> *.c
tools ->bla
docs ->bla
So in my src folder i have some c files for one binary then 2 subdirs
that contain more c files for that single program.
At the top of the project i have a Makefile.am and it just includes:
SUBDIRS = include src
EXTRA_DIST = autorun.sh
AUTOMAKE_OPTIONS = foreign
Then in my src: i am unsure what to put in
What i would like to do is have sperate Makefile.am in each subdir that
just compile to object files that in the src/Makefile can link into the
main binary. Or is this the wrong way of thinking about the problem?
Just if in one of those subdirs it may be nice to have a seperate
program but i want to link in some of the code to the main program.
- -Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknl8G8ACgkQAhcOgIaQQ2H3RQCZAWzF9gluXeDw1w6Ezz8Qjb7Z
3bUAnj+lisTS8DstesxWz+wJ7RPouQ3s
=YJEp
-----END PGP SIGNATURE-----
- subdirs for multiple binaries,
Philip Herron <=