Move the nvramtool manpage to section 8 (as it's only really usable as root),
[coreboot.git] / util / nvramtool / Makefile
1 #
2 # Makefile for nvram utility
3
4 # (C) 2005-2008 coresystems GmbH
5 # written by Stefan Reinauer <stepan@coresystems.de>
6 #
7
8 PROGRAM = nvramtool
9
10 CC      = gcc
11 STRIP   = strip
12 INSTALL = /usr/bin/install
13 PREFIX  = /usr/local
14 CFLAGS  = -O2 -g -Wall -W
15 #CFLAGS  = -Os -Wall
16
17 OBJS =  cmos_lowlevel.o cmos_ops.o common.o compute_ip_checksum.o \
18         hexdump.o input_file.o layout.o layout_file.o lbtable.o   \
19         nvramtool.o opts.o reg_expr.o
20
21 all: dep $(PROGRAM)
22
23 $(PROGRAM): $(OBJS)
24         $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
25         $(STRIP) $(STRIP_ARGS) $(PROGRAM)
26
27 clean:
28         rm -f $(PROGRAM) *.o
29
30 distclean: clean
31         rm -f .dependencies
32
33 dep:
34         @$(CC) -MM *.c > .dependencies
35
36 install: $(PROGRAM)
37         $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
38         mkdir -p $(PREFIX)/share/man/man1
39         $(INSTALL) $(PROGRAM).8 $(PREFIX)/share/man/man8
40
41 .PHONY: all clean distclean dep
42
43 -include .dependencies