diff options
author | Ulf Jordan <jordan@chalmers.se> | 2007-10-13 18:06:12 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-10-13 18:06:12 +0000 |
commit | 39a5bf74efd9c18b55d6c9354982807e3da37e97 (patch) | |
tree | 90ab3000d3f98ce21795f2d8e69f7a8a1627951f /util/superiotool/Makefile | |
parent | 45c1556df90b78cf6ac117ca75631a64747843a1 (diff) |
Set the superiotool version number from svn at build time.
Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2852 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/Makefile')
-rw-r--r-- | util/superiotool/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile index e8ba258682..87faecb05b 100644 --- a/util/superiotool/Makefile +++ b/util/superiotool/Makefile @@ -24,14 +24,21 @@ CC = gcc INSTALL = /usr/bin/install PREFIX = /usr/local +# Set the superiotool version string from the highest revision number +# of the checked out superiotool files. +SVNDEF := -D'SUPERIOTOOL_VERSION="$(shell svnversion -cn . \ + | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"' + # TODO: -pedantic CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \ - -Werror-implicit-function-declaration -ansi + -Werror-implicit-function-declaration -ansi $(SVNDEF) OBJS = superiotool.o ali.o fintek.o ite.o nsc.o smsc.o winbond.o all: $(PROGRAM) +superiotool.o: *.c superiotool.h + $(PROGRAM): $(OBJS) superiotool.h $(CC) $(CFLAGS) -o $(PROGRAM) $(OBJS) |