2001-04-10 06:20:02 +04:00
|
|
|
# Copyright (C) 2001 MandrakeSoft S.A.
|
2001-04-10 05:04:59 +04:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
@SUFFIX_LINE@
|
|
|
|
|
2001-09-14 08:19:08 +04:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2002-10-25 01:07:56 +04:00
|
|
|
top_builddir = ..
|
|
|
|
top_srcdir = @top_srcdir@
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
|
|
|
CC = @CC@
|
- add -lwinmm to the link lines anytime you use --enable-sb16=win. Now
instead of winmm being a part of GUI_LINK_OPTS_WIN32 only, it is
placed in @DEVICE_LINE_OPTS@ so that it will be used for sdl, rfb, wx,
etc.
- solve compile problems when building bximage, niclist, and any other
console based program. The compile flags returned by wx-config and
sdl-config did strange things to these console programs, for example
redefining main to SDL_main. Because I wanted to use the
configure-generated CFLAGS to compile the programs, but I wanted to
avoid including GUI specific compile options, I split up the configure's
@CFLAGS@ variable into @CFLAGS@ and @GUI_CFLAGS@, and split
@CXXFLAGS@ into @CXXFLAGS@ and @GUI_CXXFLAGS@. All programs in the
Bochs binary will use both, but the console programs will just use
@CFLAGS@ or @CXXFLAGS@.
- gui/Makefile.in, I no longer use the gui specific CFLAGS variables,
SDL_CFLAGS and WX_CXXFLAGS. These values are included in CFLAGS and
CXXFLAGS now.
- modified: configure.in, configure, all Makefile.in's
2002-10-02 03:37:50 +04:00
|
|
|
CFLAGS = @CFLAGS@ @GUI_CFLAGS@
|
2001-04-10 05:04:59 +04:00
|
|
|
CXX = @CXX@
|
- add -lwinmm to the link lines anytime you use --enable-sb16=win. Now
instead of winmm being a part of GUI_LINK_OPTS_WIN32 only, it is
placed in @DEVICE_LINE_OPTS@ so that it will be used for sdl, rfb, wx,
etc.
- solve compile problems when building bximage, niclist, and any other
console based program. The compile flags returned by wx-config and
sdl-config did strange things to these console programs, for example
redefining main to SDL_main. Because I wanted to use the
configure-generated CFLAGS to compile the programs, but I wanted to
avoid including GUI specific compile options, I split up the configure's
@CFLAGS@ variable into @CFLAGS@ and @GUI_CFLAGS@, and split
@CXXFLAGS@ into @CXXFLAGS@ and @GUI_CXXFLAGS@. All programs in the
Bochs binary will use both, but the console programs will just use
@CFLAGS@ or @CXXFLAGS@.
- gui/Makefile.in, I no longer use the gui specific CFLAGS variables,
SDL_CFLAGS and WX_CXXFLAGS. These values are included in CFLAGS and
CXXFLAGS now.
- modified: configure.in, configure, all Makefile.in's
2002-10-02 03:37:50 +04:00
|
|
|
CXXFLAGS = @CXXFLAGS@ @GUI_CXXFLAGS@
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
#CFLAGS = -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -mpreferred-stack-boundary=2 -DCPU=686 -march=i686
|
|
|
|
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
X_LIBS = @X_LIBS@
|
|
|
|
X_PRE_LIBS = @X_PRE_LIBS@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
#DEBUG = -DDEBUGGING
|
|
|
|
PARANOID = -DPARANOID
|
|
|
|
|
|
|
|
L_TARGET = libfpu.a
|
|
|
|
|
|
|
|
|
2001-09-14 08:19:08 +04:00
|
|
|
BX_INCDIRS = -I.. -I$(srcdir)/.. -I../@INSTRUMENT_DIR@ -I$(srcdir)/../@INSTRUMENT_DIR@ -I. -I$(srcdir)/. -I./stubs -I$(srcdir)/./stubs
|
2001-04-10 05:04:59 +04:00
|
|
|
|
2001-05-12 22:28:31 +04:00
|
|
|
FPU_FLAGS = -DUSE_WITH_CPU_SIM $(PARANOID) $(DEBUG) -DNO_ASSEMBLER
|
2001-04-10 05:04:59 +04:00
|
|
|
FPU_GLUE_OBJ = wmFPUemu_glue.o
|
|
|
|
|
|
|
|
# From 'C' language sources:
|
|
|
|
C_OBJS = fpu_entry.o errors.o reg_ld_str.o load_store.o \
|
|
|
|
fpu_arith.o fpu_aux.o fpu_etc.o fpu_tags.o fpu_trig.o \
|
|
|
|
poly_atan.o poly_l2.o poly_2xm1.o poly_sin.o poly_tan.o \
|
|
|
|
reg_add_sub.o reg_compare.o reg_constant.o reg_convert.o \
|
|
|
|
reg_divide.o reg_mul.o
|
|
|
|
|
|
|
|
# From 80x86 assembler sources:
|
|
|
|
A_OBJS =reg_u_add.o reg_u_div.o reg_u_mul.o reg_u_sub.o \
|
2003-10-03 21:39:04 +04:00
|
|
|
reg_norm.o reg_round.o \
|
2001-04-10 05:04:59 +04:00
|
|
|
wm_shrx.o wm_sqrt.o \
|
|
|
|
div_Xsig.o polynom_Xsig.o round_Xsig.o \
|
|
|
|
shr_Xsig.o mul_Xsig.o
|
|
|
|
|
|
|
|
L_OBJS = $(C_OBJS) $(A_OBJS)
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
@FPU_GLUE_OBJ@ \
|
|
|
|
$(L_OBJS)
|
|
|
|
|
|
|
|
|
|
|
|
BX_INCLUDES = ../bochs.h ../config.h
|
|
|
|
|
2002-10-25 01:07:56 +04:00
|
|
|
all: libfpu.a
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
.@CPP_SUFFIX@.o:
|
2002-10-25 01:07:56 +04:00
|
|
|
$(CXX) @DASH@c $(BX_INCDIRS) $(CXXFLAGS) $(FPU_FLAGS) @CXXFP@$< @OFP@$@
|
2001-04-10 05:04:59 +04:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) @DASH@c $(CFLAGS) $(FPU_FLAGS) $(BX_INCDIRS) $< @OFP@$@
|
|
|
|
|
|
|
|
|
|
|
|
libfpu.a: $(OBJS)
|
|
|
|
@RMCOMMAND@ libfpu.a
|
|
|
|
@MAKELIB@ $(OBJS)
|
|
|
|
$(RANLIB) libfpu.a
|
|
|
|
|
|
|
|
$(OBJS): $(BX_INCLUDES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@RMCOMMAND@ *.o
|
|
|
|
@RMCOMMAND@ *.a
|
|
|
|
|
|
|
|
dist-clean: clean
|
|
|
|
@RMCOMMAND@ Makefile
|
2001-10-07 04:33:21 +04:00
|
|
|
|
|
|
|
###########################################
|
|
|
|
# dependencies generated by
|
2001-10-08 00:19:04 +04:00
|
|
|
# gcc -MM -I. -I.. -I../instrument/stubs -Istubs *.c *.cc | sed 's/\.cc/.@CPP_SUFFIX@/g'
|
2001-10-07 04:33:21 +04:00
|
|
|
###########################################
|
|
|
|
div_Xsig.o: div_Xsig.c exception.h fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
poly.h
|
|
|
|
errors.o: errors.c fpu_emu.h fpu_system.h fpu_proto.h exception.h \
|
|
|
|
status_w.h control_w.h reg_constant.h version.h
|
|
|
|
fpu_arith.o: fpu_arith.c fpu_system.h fpu_emu.h fpu_proto.h \
|
|
|
|
control_w.h status_w.h
|
|
|
|
fpu_aux.o: fpu_aux.c fpu_system.h exception.h fpu_emu.h fpu_proto.h \
|
|
|
|
status_w.h control_w.h
|
|
|
|
fpu_entry.o: fpu_entry.c fpu_system.h fpu_emu.h fpu_proto.h \
|
|
|
|
exception.h control_w.h status_w.h
|
|
|
|
fpu_etc.o: fpu_etc.c fpu_system.h exception.h fpu_emu.h fpu_proto.h \
|
|
|
|
status_w.h reg_constant.h
|
|
|
|
fpu_tags.o: fpu_tags.c fpu_emu.h fpu_system.h fpu_proto.h exception.h
|
|
|
|
fpu_trig.o: fpu_trig.c fpu_system.h exception.h fpu_emu.h fpu_proto.h \
|
|
|
|
status_w.h control_w.h reg_constant.h
|
|
|
|
load_store.o: load_store.c fpu_system.h exception.h fpu_emu.h \
|
|
|
|
fpu_proto.h status_w.h control_w.h
|
|
|
|
mul_Xsig.o: mul_Xsig.c fpu_emu.h fpu_system.h fpu_proto.h poly.h
|
|
|
|
poly_2xm1.o: poly_2xm1.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h reg_constant.h control_w.h poly.h
|
|
|
|
poly_atan.o: poly_atan.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h reg_constant.h status_w.h control_w.h poly.h
|
|
|
|
poly_l2.o: poly_l2.c exception.h fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
reg_constant.h control_w.h poly.h
|
|
|
|
poly_sin.o: poly_sin.c exception.h fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
reg_constant.h control_w.h poly.h
|
|
|
|
poly_tan.o: poly_tan.c exception.h fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
reg_constant.h control_w.h poly.h
|
|
|
|
polynom_Xsig.o: polynom_Xsig.c fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
poly.h
|
|
|
|
reg_add_sub.o: reg_add_sub.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h reg_constant.h control_w.h
|
|
|
|
reg_compare.o: reg_compare.c fpu_system.h exception.h fpu_emu.h \
|
|
|
|
fpu_proto.h control_w.h status_w.h
|
|
|
|
reg_constant.o: reg_constant.c fpu_system.h fpu_emu.h fpu_proto.h \
|
|
|
|
status_w.h reg_constant.h control_w.h
|
|
|
|
reg_convert.o: reg_convert.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h
|
|
|
|
reg_divide.o: reg_divide.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h reg_constant.h
|
|
|
|
reg_ld_str.o: reg_ld_str.c fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
exception.h reg_constant.h control_w.h status_w.h
|
|
|
|
reg_mul.o: reg_mul.c fpu_emu.h fpu_system.h fpu_proto.h exception.h \
|
|
|
|
reg_constant.h
|
|
|
|
reg_norm.o: reg_norm.c fpu_emu.h fpu_system.h fpu_proto.h
|
|
|
|
reg_round.o: reg_round.c fpu_emu.h fpu_system.h fpu_proto.h \
|
|
|
|
exception.h control_w.h
|
|
|
|
reg_u_add.o: reg_u_add.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h control_w.h
|
|
|
|
reg_u_div.o: reg_u_div.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h control_w.h
|
|
|
|
reg_u_mul.o: reg_u_mul.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h control_w.h
|
|
|
|
reg_u_sub.o: reg_u_sub.c exception.h fpu_emu.h fpu_system.h \
|
|
|
|
fpu_proto.h control_w.h
|
|
|
|
round_Xsig.o: round_Xsig.c fpu_emu.h fpu_system.h fpu_proto.h poly.h
|
|
|
|
shr_Xsig.o: shr_Xsig.c fpu_emu.h fpu_system.h fpu_proto.h poly.h
|
|
|
|
wm_shrx.o: wm_shrx.c fpu_emu.h fpu_system.h fpu_proto.h
|
|
|
|
wm_sqrt.o: wm_sqrt.c exception.h fpu_emu.h fpu_system.h fpu_proto.h
|
2001-10-08 00:19:04 +04:00
|
|
|
wmFPUemu_glue.o: wmFPUemu_glue.@CPP_SUFFIX@ ../bochs.h ../config.h ../osdep.h \
|
|
|
|
../debug/debug.h ../bxversion.h ../gui/siminterface.h ../state_file.h \
|
2002-10-25 01:07:56 +04:00
|
|
|
../cpu/cpu.h ../cpu/lazy_flags.h ../cpu/i387.h ../memory/memory.h \
|
2002-11-25 18:05:51 +03:00
|
|
|
../pc_system.h ../plugin.h ../extplugin.h ../ltdl.h ../gui/gui.h \
|
|
|
|
../gui/textconfig.h ../gui/keymap.h ../iodev/iodev.h ../iodev/vga.h \
|
2002-10-25 01:07:56 +04:00
|
|
|
../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 \
|
2002-11-25 18:05:51 +03:00
|
|
|
../iodev/slowdown_timer.h ../instrument/stubs/instrument.h fpu_emu.h \
|
|
|
|
fpu_system.h fpu_proto.h stubs/linux/signal.h
|