home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
gnu
/
ixemul-40.4-src.lha
/
ixemul-40.4
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1995-01-02
|
3KB
|
89 lines
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
# Common prefix for machine-independent installed files.
prefix = @prefix@
# Common prefix for machine-dependent installed files.
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/Sys/libs
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
RANLIB = @RANLIB@
#### End system configuration section ####
# Some options that may or may not be useful are:
#
# -funroll-loops
# -fforce-mem
OTHER_CFLAGS = -fomit-frame-pointer
BASE_FLAGS_TO_PASS = \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"CPU=$(CPU)" \
"FPU=$(FPU)" \
"LDFLAGS=$(LDFLAGS)" \
"OTHER_CFLAGS=$(OTHER_CFLAGS)" \
"RANLIB=$(RANLIB)"
FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_FLAGS_TO_PASS)
all:
$(MAKE) build CPU=68000 FPU=soft-float
$(MAKE) build CPU=68020 FPU=soft-float
$(MAKE) build CPU=68030 FPU=soft-float
$(MAKE) build CPU=68020 FPU=68881
$(MAKE) build CPU=68030 FPU=68881
$(MAKE) build CPU=68040 FPU=68881
build:
for builddir in gen_library stdlib gnulib gnulib-$(FPU) string stdio_2 library; do \
if [ -d $$builddir/$(CPU)/$(FPU) ]; then \
true; \
else \
echo mkdir -p $$builddir/$(CPU)/$(FPU); \
mkdir -p $$builddir/$(CPU)/$(FPU); \
fi; \
echo "(cd $$builddir/$(CPU)/$(FPU) ; $(MAKE) -f ../../Makefile $(FLAGS_TO_PASS))"; \
(cd $$builddir/$(CPU)/$(FPU) ; $(MAKE) -f ../../Makefile $(FLAGS_TO_PASS)); \
done
install:
$(INSTALL) library/68000/soft-float/ixconfig $(bindir)/ixconfig
$(INSTALL) library/68000/soft-float/ixemul.library $(libdir)/ixemul.library
$(INSTALL) library/68000/soft-float/ixemul.trace $(libdir)/ixemul.trace
$(INSTALL) library/68020/soft-float/ixemul.library $(libdir)/ixemul020.library
$(INSTALL) library/68020/soft-float/ixemul.trace $(libdir)/ixemul020.trace
$(INSTALL) library/68030/soft-float/ixemul.library $(libdir)/ixemul030.library
$(INSTALL) library/68030/soft-float/ixemul.trace $(libdir)/ixemul030.trace
$(INSTALL) library/68020/68881/ixemul.library $(libdir)/ixemul020fpu.library
$(INSTALL) library/68020/68881/ixemul.trace $(libdir)/ixemul020fpu.trace
$(INSTALL) library/68030/68881/ixemul.library $(libdir)/ixemul030fpu.library
$(INSTALL) library/68030/68881/ixemul.trace $(libdir)/ixemul030fpu.trace
$(INSTALL) library/68040/68881/ixemul.library $(libdir)/ixemul040fpu.library
$(INSTALL) library/68040/68881/ixemul.trace $(libdir)/ixemul040fpu.trace
clean:
(cd gen_library ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd gnulib ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd gnulib-soft-float ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd gnulib-68881 ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd library ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd stdio_2 ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd stdlib ; $(MAKE) $(FLAGS_TO_PASS) clean)
(cd string ; $(MAKE) $(FLAGS_TO_PASS) clean)