- moved the display adapter emulation to the new subdirectory iodev/display
- TODO #1: update MSVC workspace files - TODO #2: add Voodoo Graphics emulation
This commit is contained in:
parent
2f3c7ff8e4
commit
c340da84dd
@ -172,12 +172,12 @@ all: @PRIMARY_TARGET@ @PLUGIN_TARGET@ bximage@EXE@ bxcommit@EXE@ @BUILD_DOCBOOK_
|
||||
|
||||
@EXTERNAL_DEPENDENCY@
|
||||
|
||||
bochs@EXE@: @IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
bochs@EXE@: @IODEV_LIB_VAR@ @DISPLAY_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
@DEBUGGER_VAR@ cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a \
|
||||
gui/libgui.a @DISASM_VAR@ @INSTRUMENT_VAR@ $(BX_OBJS) \
|
||||
$(SIMX86_OBJS) @FPU_VAR@ @GDBSTUB_VAR@ @PLUGIN_VAR@
|
||||
@LINK@ @EXPORT_DYNAMIC@ $(BX_OBJS) $(SIMX86_OBJS) \
|
||||
@IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
@IODEV_LIB_VAR@ @DISPLAY_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
@DEBUGGER_VAR@ cpu/libcpu.a cpu/cpudb/libcpudb.a \
|
||||
memory/libmemory.a gui/libgui.a \
|
||||
@DISASM_VAR@ @INSTRUMENT_VAR@ @PLUGIN_VAR@ \
|
||||
@ -192,13 +192,13 @@ bochs@EXE@: @IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @S
|
||||
# Special make target for cygwin/mingw using dlltool instead of
|
||||
# libtool. This creates a .DEF file, and exports file, an import library,
|
||||
# and then links bochs.exe with the exports file.
|
||||
.win32_dll_plugin_target: @IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ \
|
||||
.win32_dll_plugin_target: @IODEV_LIB_VAR@ @DISPLAY_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ \
|
||||
@SOUND_LIB_VAR@ @DEBUGGER_VAR@ cpu/libcpu.a cpu/cpudb/libcpudb.a \
|
||||
memory/libmemory.a gui/libgui.a @DISASM_VAR@ @INSTRUMENT_VAR@ \
|
||||
$(BX_OBJS) $(SIMX86_OBJS) @FPU_VAR@ @GDBSTUB_VAR@ @PLUGIN_VAR@
|
||||
$(DLLTOOL) --export-all-symbols --output-def bochs.def \
|
||||
$(BX_OBJS) $(SIMX86_OBJS) \
|
||||
@IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
@IODEV_LIB_VAR@ @DISPLAY_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a gui/libgui.a \
|
||||
@DEBUGGER_VAR@ @DISASM_VAR@ @INSTRUMENT_VAR@ @PLUGIN_VAR@ \
|
||||
@GDBSTUB_VAR@ @FPU_VAR@
|
||||
@ -206,7 +206,7 @@ bochs@EXE@: @IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @S
|
||||
$(DLLTOOL) --dllname bochs.exe --output-exp bochs.exp --def bochs.def
|
||||
$(CXX) -o bochs.exe $(CXXFLAGS) $(LDFLAGS) -export-dynamic \
|
||||
$(BX_OBJS) bochs.exp $(SIMX86_OBJS) \
|
||||
@IODEV_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
@IODEV_LIB_VAR@ @DISPLAY_LIB_VAR@ @HDIMAGE_LIB_VAR@ @USB_LIB_VAR@ @NETWORK_LIB_VAR@ @SOUND_LIB_VAR@ \
|
||||
cpu/libcpu.a cpu/cpudb/libcpudb.a memory/libmemory.a gui/libgui.a \
|
||||
@DEBUGGER_VAR@ @DISASM_VAR@ @INSTRUMENT_VAR@ @PLUGIN_VAR@ \
|
||||
@GDBSTUB_VAR@ @FPU_VAR@ \
|
||||
@ -225,6 +225,9 @@ bochs_plugins:
|
||||
cd iodev @COMMAND_SEPARATOR@
|
||||
$(MAKE) plugins
|
||||
@CD_UP_ONE@
|
||||
cd iodev/display @COMMAND_SEPARATOR@
|
||||
$(MAKE) plugins
|
||||
@CD_UP_TWO@
|
||||
cd iodev/hdimage @COMMAND_SEPARATOR@
|
||||
$(MAKE) plugins
|
||||
@CD_UP_TWO@
|
||||
@ -265,6 +268,11 @@ iodev/libiodev.a::
|
||||
$(MAKE) $(MDEFINES) libiodev.a
|
||||
@CD_UP_ONE@
|
||||
|
||||
iodev/hdimage/libdisplay.a::
|
||||
cd iodev/display @COMMAND_SEPARATOR@
|
||||
$(MAKE) $(MDEFINES) libdisplay.a
|
||||
@CD_UP_TWO@
|
||||
|
||||
iodev/hdimage/libhdimage.a::
|
||||
cd iodev/hdimage @COMMAND_SEPARATOR@
|
||||
$(MAKE) $(MDEFINES) libhdimage.a
|
||||
@ -391,6 +399,7 @@ install_libtool_plugins::
|
||||
for i in $(DESTDIR)$(plugdir); do mkdir -p $$i && test -d $$i && test -w $$i; done
|
||||
list=`cd gui && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install gui/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install iodev/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/display && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install iodev/display/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/hdimage && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install iodev/hdimage/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/usb && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install iodev/usb/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/network && echo *.la`; for i in $$list; do $(LIBTOOL) --mode=install install iodev/network/$$i $(DESTDIR)$(plugdir); done
|
||||
@ -401,6 +410,7 @@ install_dll_plugins::
|
||||
for i in $(DESTDIR)$(plugdir); do mkdir -p $$i && test -d $$i && test -w $$i; done
|
||||
list=`cd gui && echo *.dll`; for i in $$list; do cp gui/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev && echo *.dll`; for i in $$list; do cp iodev/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/display && echo *.dll`; for i in $$list; do cp iodev/display/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/hdimage && echo *.dll`; for i in $$list; do cp iodev/hdimage/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/usb && echo *.dll`; for i in $$list; do cp iodev/usb/$$i $(DESTDIR)$(plugdir); done
|
||||
list=`cd iodev/network && echo *.dll`; for i in $$list; do cp iodev/network/$$i $(DESTDIR)$(plugdir); done
|
||||
@ -529,6 +539,9 @@ all-clean: clean @CLEAN_DOCBOOK_VAR@ @CLEAN_PCIDEV_VAR@
|
||||
cd iodev @COMMAND_SEPARATOR@
|
||||
$(MAKE) clean
|
||||
@CD_UP_ONE@
|
||||
cd iodev/display @COMMAND_SEPARATOR@
|
||||
$(MAKE) clean
|
||||
@CD_UP_TWO@
|
||||
cd iodev/hdimage @COMMAND_SEPARATOR@
|
||||
$(MAKE) clean
|
||||
@CD_UP_TWO@
|
||||
@ -573,6 +586,9 @@ dist-clean: local-dist-clean
|
||||
cd iodev @COMMAND_SEPARATOR@
|
||||
$(MAKE) dist-clean
|
||||
@CD_UP_ONE@
|
||||
cd iodev/display @COMMAND_SEPARATOR@
|
||||
$(MAKE) dist-clean
|
||||
@CD_UP_TWO@
|
||||
cd iodev/hdimage @COMMAND_SEPARATOR@
|
||||
$(MAKE) dist-clean
|
||||
@CD_UP_TWO@
|
||||
|
@ -1435,12 +1435,14 @@ AC_ARG_ENABLE(raw-serial,
|
||||
]
|
||||
)
|
||||
|
||||
DISPLAY_OBJS=''
|
||||
AC_MSG_CHECKING(for CLGD54XX emulation)
|
||||
AC_ARG_ENABLE(clgd54xx,
|
||||
[ --enable-clgd54xx enable CLGD54XX emulation],
|
||||
[if test "$enableval" = yes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(BX_SUPPORT_CLGD54XX, 1)
|
||||
DISPLAY_OBJS="svga_cirrus.o"
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AC_DEFINE(BX_SUPPORT_CLGD54XX, 0)
|
||||
@ -1450,6 +1452,7 @@ AC_ARG_ENABLE(clgd54xx,
|
||||
AC_DEFINE(BX_SUPPORT_CLGD54XX, 0)
|
||||
]
|
||||
)
|
||||
AC_SUBST(DISPLAY_OBJS)
|
||||
|
||||
support_fpu=1
|
||||
AC_MSG_CHECKING(for FPU emulation)
|
||||
@ -1892,6 +1895,8 @@ PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
|
||||
if test "$bx_plugins" = 0; then
|
||||
HDIMAGE_LIB_VAR='iodev/hdimage/libhdimage.a'
|
||||
AC_SUBST(HDIMAGE_LIB_VAR)
|
||||
DISPLAY_LIB_VAR='iodev/display/libdisplay.a'
|
||||
AC_SUBST(DISPLAY_LIB_VAR)
|
||||
fi
|
||||
IODEV_LIB_VAR='iodev/libiodev.a'
|
||||
NONINLINE_VAR='$(NONINLINE_OBJS)'
|
||||
@ -2835,9 +2840,9 @@ AC_SUBST(INSTALL_PLUGINS_VAR)
|
||||
AC_PATH_PROG(GZIP, gzip)
|
||||
AC_PATH_PROG(TAR, tar)
|
||||
|
||||
AC_OUTPUT(Makefile iodev/Makefile iodev/hdimage/Makefile iodev/usb/Makefile \
|
||||
iodev/network/Makefile iodev/sound/Makefile bx_debug/Makefile \
|
||||
bios/Makefile cpu/Makefile cpu/cpudb/Makefile memory/Makefile \
|
||||
AC_OUTPUT(Makefile iodev/Makefile iodev/display/Makefile iodev/hdimage/Makefile \
|
||||
iodev/usb/Makefile iodev/network/Makefile iodev/sound/Makefile \
|
||||
bx_debug/Makefile bios/Makefile cpu/Makefile cpu/cpudb/Makefile memory/Makefile \
|
||||
gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile \
|
||||
fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx \
|
||||
bxversion.h bxversion.rc build/macosx/Info.plist \
|
||||
|
@ -67,8 +67,6 @@ OBJS_THAT_CAN_BE_PLUGINS = \
|
||||
parallel.o \
|
||||
floppy.o \
|
||||
keyboard.o \
|
||||
vga.o \
|
||||
svga_cirrus.o \
|
||||
biosdev.o \
|
||||
cmos.o \
|
||||
harddrv.o \
|
||||
@ -85,8 +83,7 @@ OBJS_THAT_CAN_BE_PLUGINS = \
|
||||
OBJS_THAT_SUPPORT_OTHER_PLUGINS = \
|
||||
pit82c54.o \
|
||||
scancodes.o \
|
||||
serial_raw.o \
|
||||
vgacore.o
|
||||
serial_raw.o
|
||||
|
||||
NONPLUGIN_OBJS = @IODEV_NON_PLUGIN_OBJS@
|
||||
PLUGIN_OBJS = @IODEV_PLUGIN_OBJS@
|
||||
@ -127,12 +124,6 @@ libbx_pit.la: pit82c54.lo pit.lo
|
||||
libbx_serial.la: serial.lo serial_raw.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module serial.lo serial_raw.lo -o libbx_serial.la -rpath $(PLUGIN_PATH)
|
||||
|
||||
libbx_vga.la: vga.lo vgacore.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module vga.lo vgacore.lo -o libbx_vga.la -rpath $(PLUGIN_PATH)
|
||||
|
||||
libbx_svga_cirrus.la: svga_cirrus.lo vgacore.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module svga_cirrus.lo vgacore.lo -o libbx_svga_cirrus.la -rpath $(PLUGIN_PATH)
|
||||
|
||||
#### building DLLs for win32 (tested on cygwin only)
|
||||
bx_%.dll: %.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o $@ $< $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
@ -150,12 +141,6 @@ bx_gameport.dll: gameport.o
|
||||
bx_serial.dll: serial.o serial_raw.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o bx_serial.dll serial.o serial_raw.o $(WIN32_DLL_IMPORT_LIBRARY) -lwsock32
|
||||
|
||||
bx_vga.dll: vga.o vgacore.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o bx_vga.dll vga.o vgacore.o $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
|
||||
bx_svga_cirrus.dll: svga_cirrus.o vgacore.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o bx_svga_cirrus.dll svga_cirrus.o vgacore.o $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
|
||||
##### end DLL section
|
||||
|
||||
clean:
|
||||
@ -304,26 +289,11 @@ speaker.o: speaker.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h speaker.h sound/soundmod.h
|
||||
svga_cirrus.o: svga_cirrus.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h svga_cirrus.h virt_timer.h
|
||||
unmapped.o: unmapped.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h unmapped.h
|
||||
vga.o: vga.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h vga.h virt_timer.h
|
||||
vgacore.o: vgacore.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h virt_timer.h
|
||||
virt_timer.o: virt_timer.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
@ -459,26 +429,11 @@ speaker.lo: speaker.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h speaker.h sound/soundmod.h
|
||||
svga_cirrus.lo: svga_cirrus.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h svga_cirrus.h virt_timer.h
|
||||
unmapped.lo: unmapped.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h unmapped.h
|
||||
vga.lo: vga.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h vga.h virt_timer.h
|
||||
vgacore.lo: vgacore.@CPP_SUFFIX@ iodev.h ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
../gui/gui.h ../instrument/stubs/instrument.h ../plugin.h ../extplugin.h \
|
||||
../ltdl.h ../param_names.h vgacore.h virt_timer.h
|
||||
virt_timer.lo: virt_timer.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
||||
../bx_debug/debug.h ../config.h ../osdep.h ../gui/siminterface.h \
|
||||
../cpudb.h ../gui/paramtree.h ../memory/memory.h ../pc_system.h \
|
||||
|
158
bochs/iodev/display/Makefile.in
Normal file
158
bochs/iodev/display/Makefile.in
Normal file
@ -0,0 +1,158 @@
|
||||
# Copyright (C) 2012 The Bochs Project
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Makefile for the iodev/display component of bochs
|
||||
|
||||
|
||||
@SUFFIX_LINE@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
bindir = @bindir@
|
||||
libdir = @libdir@
|
||||
datarootdir = @datarootdir@
|
||||
mandir = @mandir@
|
||||
man1dir = $(mandir)/man1
|
||||
man5dir = $(mandir)/man5
|
||||
docdir = $(datarootdir)/doc/bochs
|
||||
sharedir = $(datarootdir)/bochs
|
||||
top_builddir = ..
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
CXX = @CXX@
|
||||
CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@ @GUI_CXXFLAGS@
|
||||
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
RANLIB = @RANLIB@
|
||||
PLUGIN_PATH=@libdir@
|
||||
top_builddir = ../..
|
||||
LIBTOOL=@LIBTOOL@
|
||||
WIN32_DLL_IMPORT_LIBRARY=../../dllexports.a
|
||||
|
||||
DISPLAY_OBJS = @DISPLAY_OBJS@
|
||||
|
||||
BX_INCDIRS = -I.. -I../.. -I$(srcdir)/.. -I$(srcdir)/../.. -I../../@INSTRUMENT_DIR@ -I$(srcdir)/../../@INSTRUMENT_DIR@
|
||||
LOCAL_CXXFLAGS = $(MCH_CFLAGS)
|
||||
|
||||
OBJS_THAT_CAN_BE_PLUGINS = \
|
||||
vga.o \
|
||||
$(DISPLAY_OBJS)
|
||||
|
||||
OBJS_THAT_SUPPORT_OTHER_PLUGINS = \
|
||||
vgacore.o
|
||||
|
||||
NONPLUGIN_OBJS = @IODEV_EXT_NON_PLUGIN_OBJS@
|
||||
PLUGIN_OBJS = @IODEV_EXT_PLUGIN_OBJS@
|
||||
|
||||
all: libdisplay.a
|
||||
|
||||
plugins: $(PLUGIN_OBJS:@PLUGIN_LIBNAME_TRANSFORMATION@)
|
||||
|
||||
libdisplay.a: $(NONPLUGIN_OBJS)
|
||||
@RMCOMMAND@ libdisplay.a
|
||||
@MAKELIB@ $(NONPLUGIN_OBJS)
|
||||
@RANLIB@ libdisplay.a
|
||||
|
||||
# standard compile rule for C++ files
|
||||
.@CPP_SUFFIX@.o:
|
||||
$(CXX) @DASH@c $(CXXFLAGS) $(LOCAL_CXXFLAGS) @CXXFP@$< @OFP@$@
|
||||
|
||||
##### building plugins with libtool
|
||||
%.lo: %.@CPP_SUFFIX@
|
||||
$(LIBTOOL) --mode=compile --tag CXX $(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
|
||||
|
||||
libbx_%.la: %.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module $< -o $@ -rpath $(PLUGIN_PATH)
|
||||
|
||||
# special link rules for plugins that require more than one object file
|
||||
libbx_vga.la: vga.lo vgacore.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module vga.lo vgacore.lo -o libbx_vga.la -rpath $(PLUGIN_PATH)
|
||||
|
||||
libbx_svga_cirrus.la: svga_cirrus.lo vgacore.lo
|
||||
$(LIBTOOL) --mode=link --tag CXX $(CXX) -module svga_cirrus.lo vgacore.lo -o libbx_svga_cirrus.la -rpath $(PLUGIN_PATH)
|
||||
|
||||
#### building DLLs for win32 (tested on cygwin only)
|
||||
bx_%.dll: %.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o $@ $< $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
|
||||
# special link rules for plugins that require more than one object file
|
||||
bx_vga.dll: vga.o vgacore.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o bx_vga.dll vga.o vgacore.o $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
|
||||
bx_svga_cirrus.dll: svga_cirrus.o vgacore.o
|
||||
$(CXX) $(CXXFLAGS) -shared -o bx_svga_cirrus.dll svga_cirrus.o vgacore.o $(WIN32_DLL_IMPORT_LIBRARY)
|
||||
|
||||
##### end DLL section
|
||||
|
||||
clean:
|
||||
@RMCOMMAND@ -rf .libs *.lo *.o *.la *.a *.dll
|
||||
|
||||
dist-clean: clean
|
||||
@RMCOMMAND@ Makefile
|
||||
|
||||
###########################################
|
||||
# dependencies generated by
|
||||
# gcc -MM -I.. -I../.. -I../../instrument/stubs *.cc | sed -e 's/\.cc/.@CPP_SUFFIX@/g'
|
||||
# gcc -MM -I.. -I../.. -I../../instrument/stubs *.cc | \
|
||||
# sed -e 's/\.cc/.@CPP_SUFFIX@/g' -e 's/\.o:/.lo:/g'
|
||||
#
|
||||
# This means that every source file is listed twice, once with a .o rule
|
||||
# and then again with an identical .lo rule. The .lo rules are used when
|
||||
# building plugins.
|
||||
###########################################
|
||||
svga_cirrus.o: svga_cirrus.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h \
|
||||
../../osdep.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h svga_cirrus.h ../virt_timer.h
|
||||
vga.o: vga.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
|
||||
../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h vga.h ../virt_timer.h
|
||||
vgacore.o: vgacore.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h \
|
||||
../../osdep.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h ../virt_timer.h
|
||||
svga_cirrus.lo: svga_cirrus.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h \
|
||||
../../osdep.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h svga_cirrus.h ../virt_timer.h
|
||||
vga.lo: vga.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h ../../osdep.h \
|
||||
../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h vga.h ../virt_timer.h
|
||||
vgacore.lo: vgacore.@CPP_SUFFIX@ ../iodev.h ../../bochs.h ../../config.h \
|
||||
../../osdep.h ../../bx_debug/debug.h ../../config.h ../../osdep.h \
|
||||
../../gui/siminterface.h ../../cpudb.h ../../gui/paramtree.h \
|
||||
../../memory/memory.h ../../pc_system.h ../../gui/gui.h \
|
||||
../../instrument/stubs/instrument.h ../../plugin.h ../../extplugin.h \
|
||||
../../ltdl.h ../../param_names.h vgacore.h ../virt_timer.h
|
Loading…
x
Reference in New Issue
Block a user