Subject: |
3.12 Makefiles |
From: |
Andrew Johnson <[email protected]> |
Date: |
Thu, 23 Feb 1995 12:45:25 GMT |
I recently worked out a better way of doing lists within the Makefiles and the
CONFIG_EXTENSIONS (and CONFIG_BASE) inclusions. The problem with the existing
method is that you can't comment out a line in the middle of a make variable
definition, so to remove one of the extensions or drivers you have to reorganise
the list completely and move the commented out line to the end. Can we change
these files to use the += construct which gnumake 3.71 supports? My favourite
example is a reorganised base/src/drv/Makefile.Vx, which looks like this:
...
# module_types starts the driver list
SRCS.c := ../module_types.c
OBJS := module_types.o
SRCS.c += ../drvAb.c
OBJS += drvAb.o
#Don't include At5Vxi driver
#SRCS.c += ../drvAt5Vxi.c
#OBJS += drvAt5Vxi.o
SRCS.c += ../drvBB232.c
OBJS += drvBB232.o
...
If you really wanted to, you could have a macro (or whatever they call them in
gnumake) which does both of these at the same time, then you'd only have to have
a single line in the Makefile for each driver. Any comments?
- Andrew
,_}\_. Andrew Johnson, Technology Division
/ \ Royal Greenwich Observatory
~~~~~~~| ,--/;. )~~~~ Madingley Road, Cambridge, UK
., |/ (/ U Phone: +44 (0)1223 374823
.`., /_\ . . Email: [email protected]
wwWWWww' WWW: http://www.ast.cam.ac.uk/~anj/
- Navigate by Date:
- Prev:
[none given] greene%denali.UUCP
- Next:
RE: 3.12 Makefiles Matthew Needes
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
sf2db Nick Rees
- Next:
RE: 3.12 Makefiles Matthew Needes
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|