1bd9a44a9e
- plugins are installed into ${plugdir} which is defined to be ${libdir}/bochs-${VERSION}/plugins. Modified Files: Makefile.in plugin.cc configure.in configure gui/Makefile.in iodev/Makefile.in
283 lines
14 KiB
Makefile
283 lines
14 KiB
Makefile
# Copyright (C) 2002 MandrakeSoft S.A.
|
|
#
|
|
# MandrakeSoft S.A.
|
|
# 43, rue d'Aboukir
|
|
# 75002 Paris - France
|
|
# http://www.linux-mandrake.com/
|
|
# http://www.mandrakesoft.com/
|
|
#
|
|
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
# Makefile for the gui component of bochs
|
|
|
|
|
|
@SUFFIX_LINE@
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
bindir = @bindir@
|
|
libdir = @libdir@
|
|
mandir = @mandir@
|
|
man1dir = $(mandir)/man1
|
|
man5dir = $(mandir)/man5
|
|
docdir = $(prefix)/share/doc/bochs
|
|
sharedir = $(prefix)/share/bochs
|
|
top_builddir = ..
|
|
top_srcdir = @top_srcdir@
|
|
|
|
SHELL = /bin/sh
|
|
|
|
@SET_MAKE@
|
|
|
|
CXX = @CXX@
|
|
CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@ @GUI_CXXFLAGS@
|
|
LOCAL_CXXFLAGS =
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
X_CFLAGS = @X_CFLAGS@
|
|
RANLIB = @RANLIB@
|
|
PLUGIN_PATH=@libdir@
|
|
top_builddir = ..
|
|
LIBTOOL=@LIBTOOL@
|
|
WIN32_DLL_IMPORT_LIBRARY=../dllexports.a
|
|
BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev -I../@INSTRUMENT_DIR@ -I$(srcdir)/../@INSTRUMENT_DIR@
|
|
|
|
GUI_OBJS_X11 = x.o
|
|
GUI_OBJS_SDL = sdl.o
|
|
GUI_OBJS_BEOS = beos.o
|
|
GUI_OBJS_WIN32 = win32.o
|
|
GUI_OBJS_MACOS = macintosh.o
|
|
GUI_OBJS_CARBON = carbon.o
|
|
GUI_OBJS_NOGUI = nogui.o
|
|
GUI_OBJS_TERM = term.o
|
|
GUI_OBJS_RFB = rfb.o
|
|
GUI_OBJS_AMIGAOS = amigaos.o
|
|
GUI_OBJS_WX = wx.o
|
|
GUI_OBJS_WX_SUPPORT = wxmain.o wxdialog.o
|
|
OBJS_THAT_CANNOT_BE_PLUGINS = keymap.o gui.o siminterface.o textconfig.o
|
|
OBJS_THAT_CAN_BE_PLUGINS = @GUI_OBJS@
|
|
|
|
NONPLUGIN_OBJS = @GUI_NON_PLUGIN_OBJS@
|
|
PLUGIN_OBJS = @GUI_PLUGIN_OBJS@
|
|
|
|
#
|
|
# -------- end configurable options --------------------------
|
|
#
|
|
|
|
all: libgui.a
|
|
|
|
plugins: $(PLUGIN_OBJS:@PLUGIN_LIBNAME_TRANSFORMATION@)
|
|
|
|
libgui.a: $(NONPLUGIN_OBJS)
|
|
@RMCOMMAND@ libgui.a
|
|
@MAKELIB@ $(NONPLUGIN_OBJS)
|
|
@RANLIB@ libgui.a
|
|
|
|
# standard compile rule for C++ files
|
|
%.o: %.@CPP_SUFFIX@
|
|
$(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
|
|
|
|
##### building plugins with libtool
|
|
%.lo: %.@CPP_SUFFIX@
|
|
$(LIBTOOL) $(CXX) -c $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
|
|
|
|
libbx_%.la: %.lo
|
|
$(LIBTOOL) $(CXX) -module $< -o $@ -rpath $(PLUGIN_PATH)
|
|
|
|
# special link rules for plugins that require more than one object file
|
|
libbx_wx.la: $(GUI_OBJS_WX:.o=.lo) $(GUI_OBJS_WX_SUPPORT:.o=.lo)
|
|
$(LIBTOOL) $(CXX) -module $(GUI_OBJS_WX:.o=.lo) $(GUI_OBJS_WX_SUPPORT:.o=.lo) -o libbx_wx.la `wx-config --cxxflags` -rpath $(PLUGIN_PATH)
|
|
|
|
#### building DLLs for win32 (tested on cygwin only)
|
|
%.dll: %.o
|
|
$(CXX) $(CXXFLAGS) -shared -o $@ $< $(WIN32_DLL_IMPORT_LIBRARY) -luser32 -lgdi32 -lcomdlg32 -lcomctl32
|
|
|
|
wx.dll: $(GUI_OBJS_WX) $(GUI_OBJS_WX_SUPPORT)
|
|
$(CXX) $(CXXFLAGS) -shared -o wx.dll $(GUI_OBJS_WX) $(GUI_OBJS_WX_SUPPORT) $(WIN32_DLL_IMPORT_LIBRARY) `wx-config --libs` -luser32 -lgdi32 -lcomdlg32 -lcomctl32
|
|
|
|
sdl.dll: $(GUI_OBJS_SDL)
|
|
$(CXX) $(CXXFLAGS) -shared -o sdl.dll $(GUI_OBJS_SDL) $(WIN32_DLL_IMPORT_LIBRARY) `sdl-config --libs` -luser32 -lgdi32 -lcomdlg32 -lcomctl32
|
|
|
|
# no need to build DLLs for beos.o
|
|
# no need to build DLLs for x.o
|
|
|
|
##### end DLL section
|
|
|
|
clean:
|
|
@RMCOMMAND@ -rf .libs *.la *.a *.lo *.o *.dll
|
|
|
|
dist-clean: clean
|
|
@RMCOMMAND@ Makefile
|
|
|
|
###########################################
|
|
# all other dependencies generated by
|
|
# gcc -MM -I.. -I../instrument/stubs *.cc | sed 's/\.cc/.@CPP_SUFFIX@/g'
|
|
###########################################
|
|
amigaos.lo: amigaos.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
|
../debug/debug.h ../bxversion.h ../gui/siminterface.h ../state_file.h \
|
|
../cpu/cpu.h ../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h \
|
|
../pc_system.h ../gui/gui.h ../gui/textconfig.h ../gui/keymap.h \
|
|
../iodev/iodev.h ../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h \
|
|
../iodev/biosdev.h ../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h \
|
|
../iodev/harddrv.h ../iodev/cdrom.h ../iodev/keyboard.h \
|
|
../iodev/parallel.h ../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h \
|
|
../iodev/pit82c54.h ../iodev/serial.h ../iodev/unmapped.h \
|
|
../iodev/eth.h ../iodev/ne2k.h ../iodev/guest2host.h \
|
|
../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h amigagui.h
|
|
beos.lo: beos.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h ../font/vga.bitmap.h
|
|
carbon.lo: carbon.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h ../font/vga.bitmap.h
|
|
textconfig.lo: textconfig.@CPP_SUFFIX@ ../config.h ../osdep.h textconfig.h siminterface.h
|
|
gui.lo: gui.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h ../gui/bitmaps/floppya.h \
|
|
../gui/bitmaps/floppyb.h ../gui/bitmaps/mouse.h \
|
|
../gui/bitmaps/reset.h ../gui/bitmaps/power.h \
|
|
../gui/bitmaps/snapshot.h ../gui/bitmaps/copy.h \
|
|
../gui/bitmaps/paste.h ../gui/bitmaps/configbutton.h \
|
|
../gui/bitmaps/cdromd.h ../gui/bitmaps/userbutton.h
|
|
keymap.lo: keymap.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h
|
|
macintosh.lo: macintosh.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
|
../debug/debug.h ../bxversion.h ../gui/siminterface.h ../state_file.h \
|
|
../cpu/cpu.h ../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h \
|
|
../pc_system.h ../gui/gui.h ../gui/textconfig.h ../gui/keymap.h \
|
|
../iodev/iodev.h ../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h \
|
|
../iodev/biosdev.h ../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h \
|
|
../iodev/harddrv.h ../iodev/cdrom.h ../iodev/keyboard.h \
|
|
../iodev/parallel.h ../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h \
|
|
../iodev/pit82c54.h ../iodev/serial.h ../iodev/unmapped.h \
|
|
../iodev/eth.h ../iodev/ne2k.h ../iodev/guest2host.h \
|
|
../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h ../font/vga.bitmap.h
|
|
nogui.lo: nogui.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h
|
|
rfb.lo: rfb.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h ../font/vga.bitmap.h \
|
|
rfbproto.h
|
|
sdl.lo: sdl.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h sdl.h
|
|
siminterface.lo: siminterface.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
|
../debug/debug.h ../bxversion.h ../gui/siminterface.h ../state_file.h \
|
|
../cpu/cpu.h ../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h \
|
|
../pc_system.h ../gui/gui.h ../gui/textconfig.h ../gui/keymap.h \
|
|
../iodev/iodev.h ../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h \
|
|
../iodev/biosdev.h ../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h \
|
|
../iodev/harddrv.h ../iodev/cdrom.h ../iodev/keyboard.h \
|
|
../iodev/parallel.h ../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h \
|
|
../iodev/pit82c54.h ../iodev/serial.h ../iodev/unmapped.h \
|
|
../iodev/eth.h ../iodev/ne2k.h ../iodev/guest2host.h \
|
|
../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h
|
|
term.lo: term.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h
|
|
win32.lo: win32.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h ../font/vga.bitmap.h
|
|
x.lo: x.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h ../debug/debug.h \
|
|
../bxversion.h ../gui/siminterface.h ../state_file.h ../cpu/cpu.h \
|
|
../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h ../pc_system.h \
|
|
../gui/gui.h ../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h \
|
|
../iodev/pci.h ../iodev/pci2isa.h ../iodev/vga.h ../iodev/biosdev.h \
|
|
../iodev/cmos.h ../iodev/dma.h ../iodev/floppy.h ../iodev/harddrv.h \
|
|
../iodev/cdrom.h ../iodev/keyboard.h ../iodev/parallel.h \
|
|
../iodev/pic.h ../iodev/pit.h ../iodev/pit_wrap.h ../iodev/pit82c54.h \
|
|
../iodev/serial.h ../iodev/unmapped.h ../iodev/eth.h ../iodev/ne2k.h \
|
|
../iodev/guest2host.h ../iodev/slowdown_timer.h ../plugin.h \
|
|
../instrument/stubs/instrument.h icon_bochs.h
|