This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automake and subdirectories


>>> "Nicholas" == Nicholas Kidd <kidd@cs.wisc.edu> writes:

[...]

 Nicholas> there might be some way to tell automake something
 Nicholas> like this:

 Nicholas> "Every .cpp file in subdirs x,y,z should be compiled
 Nicholas> and linked into this application"

It's ok to list files from subdirectories in a _SOURCE variable.

bin_PROGRAMS = prog
prog_SOURCES = \
  prog.c \
  x/x1.c \
  x/x2.c \
  x/x2.c \
  y/y1.c \
  y/y2.c \
  y/y2.c \
  ...

AUTOMAKE_OPTIONS = subdir-objects       # If you want.

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]