1G pages support for CPU
[bochs-mirror.git] / bx_debug / Makefile.in
blob8cd1274aeafded1ffc2c13f8e6604a9a977b7894
1 # Copyright (C) 2001 MandrakeSoft S.A.
3 # MandrakeSoft S.A.
4 # 43, rue d'Aboukir
5 # 75002 Paris - France
6 # http://www.linux-mandrake.com/
7 # http://www.mandrakesoft.com/
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with this library; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 @SUFFIX_LINE@
27 srcdir = @srcdir@
28 VPATH = @srcdir@
29 top_builddir = ..
30 top_srcdir = @top_srcdir@
32 SHELL = /bin/sh
34 @SET_MAKE@
36 CC = @CC@
37 CFLAGS = @CFLAGS@ @GUI_CFLAGS@
38 CXX = @CXX@
39 CXXFLAGS = @CXXFLAGS@ @GUI_CXXFLAGS@
41 LDFLAGS = @LDFLAGS@
42 LIBS = @LIBS@
43 RANLIB = @RANLIB@
45 # Definitely use flex. Use flex version >= 2.5.4
46 # Flex version 2.5.2 was reported not to work
47 LEX = flex
48 YACC = yacc
51 # ===========================================================
52 # end of configurable options
53 # ===========================================================
56 BX_OBJS = \
57 dbg_main.o \
58 symbols.o \
59 linux.o \
61 BX_PARSER_OBJS = \
62 parser.o \
63 lexer.o
65 BX_INCLUDES = debug.h
67 BX_INCDIRS = -I.. -I$(srcdir)/.. -I../@INSTRUMENT_DIR@ -I$(srcdir)/../@INSTRUMENT_DIR@ -I. -I$(srcdir)/.
69 all: libdebug.a
71 .@CPP_SUFFIX@.o:
72 $(CXX) @DASH@c $(BX_INCDIRS) $(CXXFLAGS) @CXXFP@$< @OFP@$@
75 .c.o:
76 $(CC) @DASH@c $(BX_INCDIRS) $(CFLAGS) @CFP@$< @OFP@$@
80 libdebug.a: $(BX_OBJS) $(BX_PARSER_OBJS)
81 @RMCOMMAND@ libdebug.a
82 @MAKELIB@ $(BX_OBJS) $(BX_PARSER_OBJS)
83 $(RANLIB) libdebug.a
85 $(BX_OBJS): $(BX_INCLUDES)
88 clean:
89 @RMCOMMAND@ *.o
90 @RMCOMMAND@ libdebug.a
92 dist-clean: clean
93 @RMCOMMAND@ Makefile
95 parse-clean:
96 @RMCOMMAND@ -f lexer.c
97 @RMCOMMAND@ -f parser.c
98 @RMCOMMAND@ -f parser.h
100 dbg_main.o: debug.h
101 sim2.o: debug.h
103 parser.c: parser.y
104 @/bin/rm -f y.tab.c parser.c
105 @/bin/rm -f y.tab.h parser.h
106 $(YACC) -p bx -d $<
107 @/bin/mv -f y.tab.c parser.c
108 @/bin/mv -f y.tab.h parser.h
109 @echo '#endif /* if BX_DEBUGGER */' >> parser.c
110 @echo '/* The #endif is appended by the makefile after running yacc. */' >> parser.c
112 lexer.c: lexer.l
113 $(LEX) -Pbx -t $< > lexer.c
115 ###########################################
116 # dependencies generated by
117 # gcc -MM -I. -I.. -I../instrument/stubs *.c *.cc | sed 's/\.cc/.@CPP_SUFFIX@/g'
118 ###########################################
119 lexer.o: lexer.c debug.h ../config.h ../osdep.h
120 parser.o: parser.c debug.h ../config.h ../osdep.h
121 dbg_main.o: dbg_main.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
122 ../bx_debug/debug.h ../bxversion.h ../gui/siminterface.h ../cpu/cpu.h \
123 ../cpu/instr.h ../cpu/crregs.h ../cpu/lazy_flags.h ../cpu/icache.h \
124 ../cpu/apic.h ../cpu/i387.h ../fpu/softfloat.h ../fpu/tag_w.h \
125 ../fpu/status_w.h ../fpu/control_w.h ../cpu/xmm.h ../memory/memory.h \
126 ../pc_system.h ../plugin.h ../extplugin.h ../ltdl.h ../gui/gui.h \
127 ../gui/textconfig.h ../gui/keymap.h ../instrument/stubs/instrument.h \
128 ../iodev/iodev.h ../iodev/pci.h ../iodev/pci2isa.h ../iodev/pci_ide.h \
129 ../iodev/pcivga.h ../iodev/pcidev.h ../iodev/pciusb.h ../iodev/vga.h \
130 ../iodev/ioapic.h ../iodev/biosdev.h ../iodev/cmos.h ../iodev/dma.h \
131 ../iodev/floppy.h ../iodev/harddrv.h ../iodev/keyboard.h \
132 ../iodev/parallel.h ../iodev/pic.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
133 ../iodev/virt_timer.h ../iodev/serial.h ../iodev/sb16.h \
134 ../iodev/unmapped.h ../iodev/ne2k.h ../iodev/guest2host.h \
135 ../iodev/slowdown_timer.h ../iodev/extfpuirq.h ../iodev/gameport.h
136 linux.o: linux.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../bx_debug/debug.h \
137 ../bxversion.h ../gui/siminterface.h ../cpu/cpu.h ../cpu/instr.h \
138 ../cpu/lazy_flags.h ../cpu/icache.h ../cpu/apic.h ../cpu/i387.h ../cpu/crregs.h \
139 ../fpu/softfloat.h ../fpu/tag_w.h ../fpu/status_w.h ../fpu/control_w.h \
140 ../cpu/xmm.h ../memory/memory.h ../pc_system.h ../plugin.h \
141 ../extplugin.h ../ltdl.h ../gui/gui.h ../gui/textconfig.h \
142 ../gui/keymap.h ../instrument/stubs/instrument.h
143 symbols.o: symbols.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../bx_debug/debug.h \
144 ../bxversion.h ../gui/siminterface.h ../cpu/cpu.h ../cpu/instr.h \
145 ../cpu/lazy_flags.h ../cpu/icache.h ../cpu/apic.h ../cpu/i387.h ../cpu/crregs.h \
146 ../fpu/softfloat.h ../fpu/tag_w.h ../fpu/status_w.h ../fpu/control_w.h \
147 ../cpu/xmm.h ../memory/memory.h ../pc_system.h ../plugin.h \
148 ../extplugin.h ../ltdl.h ../gui/gui.h ../gui/textconfig.h \
149 ../gui/keymap.h ../instrument/stubs/instrument.h