home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / CLISP-2.LHA / CLISP960530-ki.lha / ffcall / Makefile.devel < prev    next >
Encoding:
Makefile  |  1996-04-15  |  1.5 KB  |  48 lines

  1. # This is the developer's makefile, not the user's makefile.
  2. # Don't use it unless you know exactly what you do!
  3.  
  4. SHELL = /bin/sh
  5.  
  6. all : autoconf/aclocal.m4 configures
  7.  
  8. CONFIGURES = configure avcall/configure vacall/configure trampoline/configure
  9. CONFIGURES_IN = configure.in avcall/configure.in vacall/configure.in trampoline/configure.in
  10.  
  11. ACLOCAL = ../src/autoconf/aclocal.m4
  12. ACSELECT = ../src/autoconf/acselect
  13.  
  14. autoconf/aclocal.m4 : $(ACLOCAL)
  15.     $(ACSELECT) `cat $(CONFIGURES_IN) | grep '^[A-Z][A-Z]_' | sed 's,[^A-Z_].*$$,,g' | sort | uniq` < $(ACLOCAL) > autoconf/aclocal.m4
  16.  
  17. configures : $(CONFIGURES)
  18.  
  19. AUTOCONF_FILES = autoconf/aclocal.m4 autoconf/acgeneral.m4 autoconf/acspecific.m4
  20.  
  21. configure : configure.in $(AUTOCONF_FILES)
  22.     autoconf/autoconf -m autoconf
  23.  
  24. avcall/configure : avcall/configure.in $(AUTOCONF_FILES)
  25.     cd avcall ; ../autoconf/autoconf -m ../autoconf
  26.  
  27. vacall/configure : vacall/configure.in $(AUTOCONF_FILES)
  28.     cd vacall ; ../autoconf/autoconf -m ../autoconf
  29.  
  30. trampoline/configure : trampoline/configure.in $(AUTOCONF_FILES)
  31.     cd trampoline ; ../autoconf/autoconf -m ../autoconf
  32.  
  33. check-configures : $(CONFIGURES)
  34.     set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
  35.  
  36. COMPILERS="cc -O" "gcc -freg-struct-return" "gcc -fpcc-struct-return"
  37.  
  38. multibuild : force
  39.     for compiler in $(COMPILERS) ; do \
  40.       dir=build-`echo $$compiler | sed -e 's, ,,g' -e 's,/,_,g'`; \
  41.       mkdir $$dir; cd $$dir; \
  42.       CC="$$compiler" ../configure --srcdir=.. && make && make check; \
  43.       cd ..; \
  44.     done
  45.  
  46. force :
  47.  
  48.