blob: c1359bbdc14795487de2853aecac4f3fa69e9770 [file] [log] [blame]
Stefan Reinauer18588442005-01-17 11:08:08 +00001#
2# NOTE: You need to add your libpci.a version to CFLAGS below if
3# pci-userspace.c does not build.
4#
5# If you are building on AMD64, you have to use /usr/lib64/libpci.a instead of
6# /usr/lib/...
7#
8
Li-Ta Lo81521262004-07-08 17:18:27 +00009CC = gcc
Luc Verhaegene6e899d2009-05-27 11:39:16 +000010CFLAGS = -Wall -Ix86emu/include -O2 -g
Li-Ta Lo81521262004-07-08 17:18:27 +000011
12INTOBJS = int10.o int15.o int16.o int1a.o inte6.o
13OBJECTS = testbios.o helper_exec.o helper_mem.o $(INTOBJS)
14
15LIBS = x86emu/src/x86emu/libx86emu.a
16
17# user space pci is the only option right now.
18OBJECTS += pci-userspace.o
Li-Ta Lo81521262004-07-08 17:18:27 +000019
20all: testbios
21
22testbios: $(OBJECTS) $(LIBS)
Luc Verhaegene6e899d2009-05-27 11:39:16 +000023 $(CC) -o testbios $(OBJECTS) $(LIBS) -lpci
Li-Ta Lo81521262004-07-08 17:18:27 +000024
25helper_exec.o: helper_exec.c test.h
26
27x86emu/src/x86emu/libx86emu.a:
28 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux
29
30clean:
31 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean
32 rm -f *.o *~ testbios
33
34distclean: clean
35 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean