1 # Copyright (C) 2001 MandrakeSoft S.A.
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
30 top_srcdir
= @top_srcdir@
37 CFLAGS
= @CFLAGS@ @GUI_CFLAGS@
39 CXXFLAGS
= @CXXFLAGS@ @GUI_CXXFLAGS@
45 # Definitely use flex. Use flex version >= 2.5.4
46 # Flex version 2.5.2 was reported not to work
51 # ===========================================================
52 # end of configurable options
53 # ===========================================================
67 BX_INCDIRS
= -I..
-I
$(srcdir)/..
-I..
/@INSTRUMENT_DIR@
-I
$(srcdir)/..
/@INSTRUMENT_DIR@
-I.
-I
$(srcdir)/.
72 $(CXX
) @DASH@c
$(BX_INCDIRS
) $(CXXFLAGS
) @CXXFP@
$< @OFP@
$@
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
)
85 $(BX_OBJS
): $(BX_INCLUDES
)
90 @RMCOMMAND@ libdebug.a
96 @RMCOMMAND@
-f lexer.c
97 @RMCOMMAND@
-f parser.c
98 @RMCOMMAND@
-f parser.h
104 @
/bin
/rm -f y.tab.c parser.c
105 @
/bin
/rm -f y.tab.h parser.h
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
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