2007-07-12 18:35:42 +02:00
|
|
|
# $Id: Makefile,v 1.2 2005/12/16 22:45:49 dsp_llnl Exp $
|
|
|
|
|
|
|
|
PROJECT = lxbios
|
|
|
|
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 lxbios.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
|
|
|
|
|
|
|
|
all: lxbios man
|
|
|
|
|
|
|
|
lxbios: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $(OBJS)
|
|
|
|
|
|
|
|
man: lxbios.1.gz
|
|
|
|
|
|
|
|
$(OBJS): $(HEADERS)
|
|
|
|
|
|
|
|
lxbios.1.gz: lxbios.1
|
|
|
|
gzip -c --best lxbios.1 > lxbios.1.gz
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o lxbios lxbios.1.gz
|
|
|
|
|