2008-01-25 16:08:37 +01:00
|
|
|
# $Id$
|
2007-07-12 18:35:42 +02:00
|
|
|
|
2008-03-01 20:06:32 +01:00
|
|
|
PROJECT = nvramtool
|
2007-07-12 18:35:42 +02:00
|
|
|
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 \
|
2008-03-01 20:06:32 +01:00
|
|
|
opts.o nvramtool.o
|
2008-01-18 17:17:44 +01:00
|
|
|
HEADERS = common.h ip_checksum.h coreboot_tables.h hexdump.h \
|
2007-07-12 18:35:42 +02:00
|
|
|
cmos_lowlevel.h reg_expr.h layout.h layout_file.h lbtable.h \
|
|
|
|
cmos_ops.h input_file.h opts.h
|
|
|
|
|
2008-03-01 20:06:32 +01:00
|
|
|
all: nvramtool man
|
2007-07-12 18:35:42 +02:00
|
|
|
|
2008-03-01 20:06:32 +01:00
|
|
|
nvramtool: $(OBJS)
|
2007-07-12 18:35:42 +02:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $(OBJS)
|
|
|
|
|
2008-03-01 20:06:32 +01:00
|
|
|
man: nvramtool.1.gz
|
2007-07-12 18:35:42 +02:00
|
|
|
|
|
|
|
$(OBJS): $(HEADERS)
|
|
|
|
|
2008-03-01 20:06:32 +01:00
|
|
|
nvramtool.1.gz: nvramtool.1
|
|
|
|
gzip -c --best nvramtool.1 > nvramtool.1.gz
|
2007-07-12 18:35:42 +02:00
|
|
|
|
|
|
|
clean:
|
2008-03-01 20:06:32 +01:00
|
|
|
rm -f *.o nvramtool nvramtool.1.gz
|
2007-07-12 18:35:42 +02:00
|
|
|
|