help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"attributes" for source files?


From: Torsten Mohr
Subject: "attributes" for source files?
Date: Wed, 5 Oct 2005 00:04:01 +0200
User-agent: KMail/1.8

Hi,

in a large project there are several lists of source files that
are compiled differently, depending on the list they are in.

For example, some files are compiled with different command
line options, some with different other settings, some are
additionally checked with a static code analyser, for some
of the files some other commands should be executed.

Basically, a file can have several attributes.

Is it possible to have just one list of source files and
by the letters in the suffix have coded what attributes are
set for that file?

LIST := abc.c  # a plain C file
LIST += def.cl # will be checked with LINT
LIST += ghi.cm # file will be specially tested
LIST += jkl.cr # file needs to be reviewed
LIST += mno.clmr # all the above

LIST_C = $(filter_for_c $(LIST))
LIST_L = $(filter_for_l $(LIST))
...


Is something like that possible?  If not in that form, can
something similar be done?


Best regards,
Torsten.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]