Clean up and remove late initialization code that is no longer needed.
[coreboot.git] / util / vgabios / Makefile
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
9 CC       =  gcc
10 CFLAGS   =  -Wall -Ix86emu/include -O2 -g \
11                 -DLIBPCI_MAJOR_VERSION=2  \
12                 -DLIBPCI_MINOR_VERSION=1  \
13                 -DLIBPCI_MICRO_VERSION=11
14
15
16 INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o
17 OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)
18
19 LIBS     =  x86emu/src/x86emu/libx86emu.a
20
21 # user space pci is the only option right now.
22 OBJECTS += pci-userspace.o
23 LIBS    +=  /usr/lib/libpci.a
24
25 all: testbios
26
27 testbios: $(OBJECTS) $(LIBS)
28         $(CC) -o testbios $(OBJECTS) $(LIBS)
29  
30 helper_exec.o: helper_exec.c test.h
31
32 x86emu/src/x86emu/libx86emu.a:
33         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux
34
35 clean:
36         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean
37         rm -f *.o *~ testbios
38
39 distclean: clean
40         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean