Stefan Reinauer | 1858844 | 2005-01-17 11:08:08 +0000 | [diff] [blame] | 1 | # |
| 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 Lo | 8152126 | 2004-07-08 17:18:27 +0000 | [diff] [blame] | 9 | CC = gcc |
Luc Verhaegen | e6e899d | 2009-05-27 11:39:16 +0000 | [diff] [blame] | 10 | CFLAGS = -Wall -Ix86emu/include -O2 -g |
Li-Ta Lo | 8152126 | 2004-07-08 17:18:27 +0000 | [diff] [blame] | 11 | |
| 12 | INTOBJS = int10.o int15.o int16.o int1a.o inte6.o |
| 13 | OBJECTS = testbios.o helper_exec.o helper_mem.o $(INTOBJS) |
| 14 | |
| 15 | LIBS = x86emu/src/x86emu/libx86emu.a |
| 16 | |
| 17 | # user space pci is the only option right now. |
| 18 | OBJECTS += pci-userspace.o |
Li-Ta Lo | 8152126 | 2004-07-08 17:18:27 +0000 | [diff] [blame] | 19 | |
| 20 | all: testbios |
| 21 | |
| 22 | testbios: $(OBJECTS) $(LIBS) |
Luc Verhaegen | e6e899d | 2009-05-27 11:39:16 +0000 | [diff] [blame] | 23 | $(CC) -o testbios $(OBJECTS) $(LIBS) -lpci |
Li-Ta Lo | 8152126 | 2004-07-08 17:18:27 +0000 | [diff] [blame] | 24 | |
| 25 | helper_exec.o: helper_exec.c test.h |
| 26 | |
| 27 | x86emu/src/x86emu/libx86emu.a: |
| 28 | $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux |
| 29 | |
| 30 | clean: |
| 31 | $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean |
| 32 | rm -f *.o *~ testbios |
| 33 | |
| 34 | distclean: clean |
| 35 | $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean |