coreboot-kgpe-d16/util/vgabios/Makefile
Stefan Reinauer 14e2277962 Since some people disapprove of white space cleanups mixed in regular commits
while others dislike them being extra commits, let's clean them up once and
for all for the existing code. If it's ugly, let it only be ugly once :-)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2010-04-27 06:56:47 +00:00

41 lines
1 KiB
Makefile

#
# NOTE: You need to add your libpci.a version to CFLAGS below if
# pci-userspace.c does not build.
#
# If you are building on AMD64, you have to use /usr/lib64/libpci.a instead of
# /usr/lib/...
#
CC = gcc
CFLAGS = -O2 -g -fomit-frame-pointer
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
CFLAGS += -Wstrict-aliasing -Wshadow -Wextra
INCLUDES = -Iinclude -I../../src/devices/oprom/include/
INTOBJS = int10.o int15.o int16.o int1a.o inte6.o
X86EMUOBJS = sys.o decode.o ops.o ops2.o prim_ops.o fpu.o debug.o
OBJS = testbios.o helper_exec.o helper_mem.o $(INTOBJS) $(X86EMUOBJS)
# user space pci is the only option right now.
OBJS += pci-userspace.o
LIBS=-lpci
all: testbios
testbios: $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
helper_exec.o: helper_exec.c test.h
clean:
rm -f *.o *~ testbios
%.o: ../../src/devices/oprom/x86emu/%.c
$(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<