coreboot/util/vgabios/Makefile
<<
>>
Prefs
   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
   9CC       =  gcc
  10CFLAGS   = -O2 -g -fomit-frame-pointer
  11CFLAGS  += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
  12CFLAGS  += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
  13CFLAGS  += -Wstrict-aliasing -Wshadow -Wextra
  14
  15INCLUDES = -Iinclude -I../../src/devices/oprom/include/
  16
  17INTOBJS  = int10.o int15.o int16.o int1a.o inte6.o
  18X86EMUOBJS  = sys.o decode.o ops.o ops2.o prim_ops.o fpu.o debug.o
  19OBJS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS) $(X86EMUOBJS)
  20
  21# user space pci is the only option right now.
  22OBJS += pci-userspace.o
  23
  24LIBS=-lpci
  25
  26all: testbios
  27
  28testbios: $(OBJS)
  29        $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
  30
  31helper_exec.o: helper_exec.c test.h
  32
  33clean:
  34        rm -f *.o *~ testbios
  35
  36%.o: ../../src/devices/oprom/x86emu/%.c
  37        $(CC) $(CFLAGS) $(INCLUDES) -include stdio.h -c -o $@ $^
  38
  39%.o: %.c
  40        $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
  41
  42
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.