aboutsummaryrefslogtreecommitdiff
path: root/util/vgabios/Makefile
blob: 5fadba6ab8ec55b427105982b563de787ffc9295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# 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   =  -Wall -Ix86emu/include -O2 -g \
		-DLIBPCI_MAJOR_VERSION=2  \
		-DLIBPCI_MINOR_VERSION=1  \
		-DLIBPCI_MICRO_VERSION=11


INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o
OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)

LIBS     =  x86emu/src/x86emu/libx86emu.a

# user space pci is the only option right now.
OBJECTS += pci-userspace.o
LIBS    +=  /usr/lib/libpci.a

all: testbios

testbios: $(OBJECTS) $(LIBS)
	$(CC) -o testbios $(OBJECTS) $(LIBS)
 
helper_exec.o: helper_exec.c test.h

x86emu/src/x86emu/libx86emu.a:
	$(MAKE) -C x86emu/src/x86emu/ -f makefile.linux

clean:
	$(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean
	rm -f *.o *~ testbios

distclean: clean
	$(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean