2005-01-17 12:08:08 +01:00
|
|
|
#
|
|
|
|
# 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/...
|
|
|
|
#
|
|
|
|
|
2004-07-08 19:18:27 +02:00
|
|
|
CC = gcc
|
2010-04-16 13:45:16 +02:00
|
|
|
CFLAGS = -O2 -g -fomit-frame-pointer
|
|
|
|
CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
|
2010-04-27 08:56:47 +02:00
|
|
|
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
2010-04-16 13:45:16 +02:00
|
|
|
CFLAGS += -Wstrict-aliasing -Wshadow -Wextra
|
|
|
|
|
2015-05-05 22:35:18 +02:00
|
|
|
INCLUDES = -Iinclude -I../../src/device/oprom/include/ -I../../src --include include/stdtypes.h
|
2004-07-08 19:18:27 +02:00
|
|
|
|
2010-03-23 16:53:38 +01:00
|
|
|
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)
|
2004-07-08 19:18:27 +02:00
|
|
|
|
|
|
|
# user space pci is the only option right now.
|
2010-03-23 16:53:38 +01:00
|
|
|
OBJS += pci-userspace.o
|
|
|
|
|
|
|
|
LIBS=-lpci
|
2004-07-08 19:18:27 +02:00
|
|
|
|
|
|
|
all: testbios
|
|
|
|
|
2010-03-23 16:53:38 +01:00
|
|
|
testbios: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
2010-04-27 08:56:47 +02:00
|
|
|
|
2004-07-08 19:18:27 +02:00
|
|
|
helper_exec.o: helper_exec.c test.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ testbios
|
|
|
|
|
2015-05-05 22:35:18 +02:00
|
|
|
%.o: ../../src/device/oprom/x86emu/%.c
|
2010-04-16 13:45:16 +02:00
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
|