From 958c59b6c14ba182630df2b69adeca2b60b7aae9 Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Mon, 23 Mar 2015 17:49:23 -0400 Subject: vbetool: vbe tracing tool initial commit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tool to trace video bios extension (vbe) execution. Signed-off-by: Jérôme Glisse --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4a6ea42 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +OBJECTS = x86-common.o +CFLAGS ?= -O2 -Wall -DDEBUG -g +LIBDIR ?= /usr/lib + +ifeq ($(BACKEND),lrmi) + OBJECTS += lrmi.o +else + OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \ + x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o +endif + +ifeq ($(LIBRARY),shared) + CFLAGS += -fPIC +endif + +default: + $(MAKE) LIBRARY=static static + $(MAKE) vbetool + +static: $(OBJECTS) + $(AR) cru libx86.a $(OBJECTS) + +objclean: + $(MAKE) -C x86emu clean + rm -f *.o *~ + +vbetool: vbetool.c vbetool.h libx86.a + $(CC) -o vbetool vbetool.c libx86.a -lpciaccess + +clean: objclean + rm -f *.a vbetool -- cgit v1.2.3