summaryrefslogtreecommitdiff
path: root/board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux
diff options
context:
space:
mode:
authorKevin2014-11-15 11:48:36 +0800
committerKevin2014-11-15 11:48:36 +0800
commitd04075478d378d9e15f3e1abfd14b0bd124077d4 (patch)
tree733dd964582f388b9e3e367c249946cd32a2851f /board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux
downloadFOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.tar.gz
FOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.tar.bz2
FOSSEE-netbook-uboot-source-d04075478d378d9e15f3e1abfd14b0bd124077d4.zip
init commit via android 4.4 uboot
Diffstat (limited to 'board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux')
-rwxr-xr-xboard/MAI/bios_emulator/scitech/src/v86bios/makefile.linux59
1 files changed, 59 insertions, 0 deletions
diff --git a/board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux b/board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux
new file mode 100755
index 0000000..5dfe306
--- /dev/null
+++ b/board/MAI/bios_emulator/scitech/src/v86bios/makefile.linux
@@ -0,0 +1,59 @@
+CFLAGS=-g -I/usr/include -I../../include/ -O0 -Wall
+CC=gcc
+
+.y.c:
+ bison -d -o $@ $<
+.l.c:
+ flex -o$@ $<
+
+SRCS = main.c io.c x86emu.c int.c pci.c
+OBJS = main.o io.o x86emu.o int.o pci.o
+
+all : vbios.vm86 v86bios.vm86 cbios.vm86 cbios.x86emu vbios.x86emu v86bios.x86emu
+#all : cbios.x86emu vbios.x86emu v86bios.x86emu
+
+parser.c : parser.y
+lex.c : lex.l
+cbios.o : cbios.c v86bios.h debug.h
+main.o : main.c v86bios.h pci.h debug.h
+io.o : v86bios.h AsmMacros.h debug.h
+mem.o : mem.c debug.h v86bios.h
+int.o : int.c v86bios.h debug.h
+pci.o : pci.c pci.h debug.h
+console.o : console.c v86bios.h debug.h
+v86.o : v86.c debug.h
+parser.o : parser.c
+lex.o : lex.c
+v86bios.o: v86bios.c v86bios.h pci.h debug.h
+logging.o: logging.c v86bios.h
+x86emu.o : x86emu.c v86bios.h debug.h
+ $(CC) -c -DX86EMU $(CFLAGS) $*.c
+
+vbios.x86emu : main.o x86emu.o io.o int.o pci.o console.o mem.o logging.o
+ gcc -Wl,-defsym -Wl,printk=lprintf -o vbios.x86emu main.o \
+ x86emu.o io.o int.o pci.o console.o mem.o logging.o \
+ -L../x86emu -lx86emud -lc
+vbios.vm86 : main.o v86.o io.o int.o pci.o console.o logging.o
+ gcc -o vbios.vm86 main.o v86.o io.o int.o pci.o console.o \
+ logging.o -lc
+cbios.x86emu : cbios.o x86emu.o io.o int.o pci.o console.o mem.o logging.o
+ gcc -Wl,-defsym -Wl,printk=lprintf -o cbios.x86emu cbios.o \
+ x86emu.o io.o int.o pci.o console.o mem.o logging.o \
+ -L../x86emu -lx86emud -lc
+cbios.vm86 : cbios.o v86.o io.o int.o pci.o console.o logging.o
+ gcc -o cbios.vm86 cbios.o v86.o io.o int.o pci.o console.o \
+ logging.o -lc
+v86bios.vm86: command.o parser.o lex.o v86bios.o v86.o io.o int.o pci.o console.o logging.o
+ gcc -o v86bios.vm86 command.o parser.o lex.o v86bios.o v86.o io.o \
+ int.o pci.o console.o logging.o -L/usr/lib/curses -lfl \
+ -lreadline -lc -lncurses /usr/lib/libc.a
+v86bios.x86emu: command.o parser.o lex.o v86bios.o x86emu.o io.o int.o pci.o console.o logging.o
+ gcc -Wl,-defsym -Wl,printk=lprintf -o v86bios.x86emu \
+ command.o parser.o lex.o v86bios.o x86emu.o io.o \
+ int.o pci.o console.o logging.o -L/usr/lib/curses -lfl \
+ -lreadline -lc -lncurses /usr/lib/libc.a -L../x86emu -lx86emud
+
+clean:
+ rm -f *.o vbios.x86emu vbios.vm86 cbios.x86emu cbios.vm86 parser.c \
+ lex.c parser.h v86bios.x86emu v86bios.vm86
+