2 # Makefile for nvram utility
4 # (C) 2005-2008 coresystems GmbH
5 # written by Stefan Reinauer <stepan@coresystems.de>
12 INSTALL = /usr/bin/install
14 CFLAGS = -O2 -g -Wall -W
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
24 $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
25 $(STRIP) $(STRIP_ARGS) $(PROGRAM)
34 @$(CC) -MM *.c > .dependencies
37 $(INSTALL) $(PROGRAM) $(PREFIX)/sbin
38 mkdir -p $(PREFIX)/share/man/man1
39 $(INSTALL) $(PROGRAM).8 $(PREFIX)/share/man/man8
41 .PHONY: all clean distclean dep
43 -include .dependencies