summaryrefslogtreecommitdiff
path: root/util/nvramtool/Makefile
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-03-01 19:09:01 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-03-01 19:09:01 +0000
commitcbb5ba8633c2ad143366c3bc367f8c4f6434c084 (patch)
tree5cd9812c1ca9ab13e3791221bdd8217627df860f /util/nvramtool/Makefile
parent66d83cfa84f75ad3fba38d3b926da531d800b8a5 (diff)
Rename lxbios to nvramtool, step 3 (rename directory).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3124 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/Makefile')
-rw-r--r--util/nvramtool/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/util/nvramtool/Makefile b/util/nvramtool/Makefile
new file mode 100644
index 0000000000..5d9ddc0619
--- /dev/null
+++ b/util/nvramtool/Makefile
@@ -0,0 +1,28 @@
+# $Id$
+
+PROJECT = nvramtool
+CC = gcc
+CFLAGS = -O2 -W -Wall
+LDFLAGS =
+OBJS = common.o compute_ip_checksum.o hexdump.o cmos_lowlevel.o \
+ reg_expr.o layout.o layout_file.o lbtable.o cmos_ops.o input_file.o \
+ opts.o nvramtool.o
+HEADERS = common.h ip_checksum.h coreboot_tables.h hexdump.h \
+ cmos_lowlevel.h reg_expr.h layout.h layout_file.h lbtable.h \
+ cmos_ops.h input_file.h opts.h
+
+all: nvramtool man
+
+nvramtool: $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS)
+
+man: nvramtool.1.gz
+
+$(OBJS): $(HEADERS)
+
+nvramtool.1.gz: nvramtool.1
+ gzip -c --best nvramtool.1 > nvramtool.1.gz
+
+clean:
+ rm -f *.o nvramtool nvramtool.1.gz
+