2 # NOTE: You need to add your libpci.a version to CFLAGS below if
3 # pci-userspace.c does not build.
5 # If you are building on AMD64, you have to use /usr/lib64/libpci.a instead of
10 CFLAGS = -Wall -Ix86emu/include -O2 -g \
11 -DLIBPCI_MAJOR_VERSION=2 \
12 -DLIBPCI_MINOR_VERSION=1 \
13 -DLIBPCI_MICRO_VERSION=11
16 INTOBJS = int10.o int15.o int16.o int1a.o inte6.o
17 OBJECTS = testbios.o helper_exec.o helper_mem.o $(INTOBJS)
19 LIBS = x86emu/src/x86emu/libx86emu.a
21 # user space pci is the only option right now.
22 OBJECTS += pci-userspace.o
23 LIBS += /usr/lib/libpci.a
27 testbios: $(OBJECTS) $(LIBS)
28 $(CC) -o testbios $(OBJECTS) $(LIBS)
30 helper_exec.o: helper_exec.c test.h
32 x86emu/src/x86emu/libx86emu.a:
33 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux
36 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean
40 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean