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 >
Makefile  |  1995-01-02  |  3KB  |  89 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4. VPATH =        @srcdir@
  5.  
  6. # Common prefix for machine-independent installed files.
  7. prefix =    @prefix@
  8.  
  9. # Common prefix for machine-dependent installed files.
  10. exec_prefix =    @exec_prefix@
  11.  
  12. bindir =    $(exec_prefix)/bin
  13. libdir =    $(exec_prefix)/Sys/libs
  14.  
  15. INSTALL =    @INSTALL@
  16. INSTALL_DATA =    @INSTALL_DATA@
  17.  
  18. CC =        @CC@
  19.  
  20. CFLAGS =    @CFLAGS@
  21. LDFLAGS =    @LDFLAGS@
  22.  
  23. RANLIB =    @RANLIB@
  24.  
  25. #### End system configuration section ####
  26.  
  27. # Some options that may or may not be useful are:
  28. #
  29. # -funroll-loops
  30. # -fforce-mem
  31.  
  32. OTHER_CFLAGS =    -fomit-frame-pointer
  33.  
  34. BASE_FLAGS_TO_PASS = \
  35.         "CC=$(CC)" \
  36.         "CFLAGS=$(CFLAGS)" \
  37.         "CPU=$(CPU)" \
  38.         "FPU=$(FPU)" \
  39.         "LDFLAGS=$(LDFLAGS)" \
  40.         "OTHER_CFLAGS=$(OTHER_CFLAGS)" \
  41.         "RANLIB=$(RANLIB)"
  42.  
  43. FLAGS_TO_PASS =    $(BASE_FLAGS_TO_PASS) $(EXTRA_FLAGS_TO_PASS)
  44.  
  45. all:
  46.         $(MAKE) build CPU=68000 FPU=soft-float
  47.         $(MAKE) build CPU=68020 FPU=soft-float
  48.         $(MAKE) build CPU=68030 FPU=soft-float
  49.         $(MAKE) build CPU=68020 FPU=68881
  50.         $(MAKE) build CPU=68030 FPU=68881
  51.         $(MAKE) build CPU=68040 FPU=68881
  52.  
  53. build:
  54.         for builddir in gen_library stdlib gnulib gnulib-$(FPU) string stdio_2 library; do \
  55.           if [ -d $$builddir/$(CPU)/$(FPU) ]; then \
  56.             true; \
  57.           else \
  58.             echo mkdir -p $$builddir/$(CPU)/$(FPU); \
  59.             mkdir -p $$builddir/$(CPU)/$(FPU); \
  60.           fi; \
  61.           echo "(cd $$builddir/$(CPU)/$(FPU) ; $(MAKE) -f ../../Makefile $(FLAGS_TO_PASS))"; \
  62.           (cd $$builddir/$(CPU)/$(FPU) ; $(MAKE) -f ../../Makefile $(FLAGS_TO_PASS)); \
  63.         done
  64.  
  65. install:
  66.         $(INSTALL) library/68000/soft-float/ixconfig $(bindir)/ixconfig
  67.         $(INSTALL) library/68000/soft-float/ixemul.library $(libdir)/ixemul.library
  68.         $(INSTALL) library/68000/soft-float/ixemul.trace $(libdir)/ixemul.trace
  69.         $(INSTALL) library/68020/soft-float/ixemul.library $(libdir)/ixemul020.library
  70.         $(INSTALL) library/68020/soft-float/ixemul.trace $(libdir)/ixemul020.trace
  71.         $(INSTALL) library/68030/soft-float/ixemul.library $(libdir)/ixemul030.library
  72.         $(INSTALL) library/68030/soft-float/ixemul.trace $(libdir)/ixemul030.trace
  73.         $(INSTALL) library/68020/68881/ixemul.library $(libdir)/ixemul020fpu.library
  74.         $(INSTALL) library/68020/68881/ixemul.trace $(libdir)/ixemul020fpu.trace
  75.         $(INSTALL) library/68030/68881/ixemul.library $(libdir)/ixemul030fpu.library
  76.         $(INSTALL) library/68030/68881/ixemul.trace $(libdir)/ixemul030fpu.trace
  77.         $(INSTALL) library/68040/68881/ixemul.library $(libdir)/ixemul040fpu.library
  78.         $(INSTALL) library/68040/68881/ixemul.trace $(libdir)/ixemul040fpu.trace
  79.         
  80. clean:
  81.         (cd gen_library ; $(MAKE) $(FLAGS_TO_PASS) clean)
  82.         (cd gnulib ; $(MAKE) $(FLAGS_TO_PASS) clean)
  83.         (cd gnulib-soft-float ; $(MAKE) $(FLAGS_TO_PASS) clean)
  84.         (cd gnulib-68881 ; $(MAKE) $(FLAGS_TO_PASS) clean)
  85.         (cd library ; $(MAKE) $(FLAGS_TO_PASS) clean)
  86.         (cd stdio_2 ; $(MAKE) $(FLAGS_TO_PASS) clean)
  87.         (cd stdlib ; $(MAKE) $(FLAGS_TO_PASS) clean)
  88.         (cd string ; $(MAKE) $(FLAGS_TO_PASS) clean)
  89.