Commit 3eec6ee1 authored by Peter Eisentraut's avatar Peter Eisentraut

Rename templates to match names in makefiles/Makefile.* and include/port.

Read templates after compiler is detected. Convert all templates to real
shell scripts. Rename bsd->openbsd, alpha->osf.
parent 739a0566
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
# Format of this file is expr-style-regular-expression=templatefilename
alpha[a-z0-9]*-unknown-linux-gnu=linux_alpha
alpha[a-z0-9]*-dec-osf=alpha_cc
arm-unknown-linux-gnu=linux_arm
hppa[0-9.]*-hp-hpux=hpux_cc
hppa1.1-stratus-sysv4=svr4
i.86-next-nextstep3=nextstep
i.86-pc-bsdi2.0=bsdi_2.0
i.86-pc-bsdi2.1=bsdi_2.1
i.86-pc-bsdi3=bsdi_2.1
i.86-pc-bsdi4=bsdi_4.0
i.86-pc-cygwin=cygwin32
i.86-pc-linux-gnu=linux_i386
i.86-pc-sco3.2v=sco
i.86-pc-solaris=solaris_i386_gcc
i.86-pc-sunos5=solaris_i386_gcc
i.86-unknown-freebsd=freebsd
i.86-unknown-netbsd=netbsd
m68k-unknown-linux=linux_m68k
mips-pc-linux-gnu=linux_mips
mips-sgi-irix=irix5
mipsel-unknown-linux-gnu=linux_mips
powerpc-ibm-aix3.2.5=aix_325
powerpc-ibm-aix4.1=aix_41
powerpc-ibm-aix4.2=aix_42
powerpc-ibm-aix4.3=aix_42
powerpc-unknown-linux-gnu=linux_ppc
rs6000-ibm-aix4.2=aix_42
rs6000-ibm-aix4.3=aix_42
sparc-sun-solaris=solaris_sparc_gcc
sparc-sun-sunos4=sunos4_gcc
sparc-sun-sunos5=solaris_sparc_gcc
sparc-unknown-bsdi4=bsdi_4.0_sparc
sparc-unknown-linux-gnu=linux_sparc
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=-pipe
CXXFLAGS=-pipe
SHARED_LIB=-lc
else # not GCC
case $host_os in
aix3.2.5)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg'
SHARED_LIB='-e _nostart -lc'
;;
aix4.1)
CFLAGS='-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero'
SHARED_LIB='-bnoentry -lc'
;;
aix4.2 | aix4.3)
CFLAGS='-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong'
SHARED_LIB='-lc'
;;
esac
fi # not GCC
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg
SHARED_LIB:-e _nostart -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg -qcheck=divzero
SHARED_LIB:-bnoentry -lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-qmaxmem=16384 -qhalt=w -qsrcmsg -qlanglvl=extended -qlonglong
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:xlc
AROPT:crs
CFLAGS:-pipe
CXXFLAGS:-pipe
SHARED_LIB:-lc
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:crs
# NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1.
CC:cc
CFLAGS:-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000
LDFLAGS='-rpath $(LIBDIR)'
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CCC:cxx
CXXFLAGS:-D__alpha__ -DNOFIXADE -O4 -Olimit 2000
AROPT=cq
CFLAGS='-O2 -pipe'
case $host_cpu in
i?86) CFLAGS="$CFLAGS -m486";;
esac
case $host_os in
bsdi2.0) CFLAGS="$CFLAGS -DPRE_BSDI_2_1";;
esac
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3)
SHARED_LIB=
DLSUFFIX=.o
CC=gcc2
;;
bsdi4)
SHARED_LIB=-fpic
DLSUFFIX=.so
;;
esac
AROPT:cq
CFLAGS:-O2 -m486 -pipe -DPRE_BSDI_2_1
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
CC:gcc2
AROPT:cq
CFLAGS:-O2 -m486 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:cq
CFLAGS:-O2 -pipe
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:gcc
AROPT:crs
CFLAGS:-O2
SHARED_LIB:
ALL:
SRCH_INC:/usr/local/include
SRCH_LIB:/usr/local/lib
DLSUFFIX:.dll
LIBS:-lcygipc
AROPT:crs
CFLAGS:
LIBS:-lsocket -lnsl
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=-fpic
DLSUFFIX=.so
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -m486 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -m486 -pipe'
DLSUFFIX=.so
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
DLSUFFIX=.sl
if test "$GCC" = yes ; then
CFLAGS=-O2
SHARED_LIB=-fPIC
DL_LIB=/usr/lib/libdld.sl
CCC=g++
else
CFLAGS='-Wl,-E -Ae'
SHARED_LIB=+z
CPP='cc -E -Ae'
CCC=aCC
fi
AROPT:crs
CFLAGS:-Wl,-E -Ae
SHARED_LIB:+z
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.sl
CC:cc
CPP:cc -E -Ae
# Make aCC be first C++ compiler name tried...
CCC:aCC
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DL_LIB:/usr/lib/libdld.sl
DLSUFFIX:.sl
CC:gcc
CCC:g++
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=
DLSUFFIX=.so
AROPT=crs
CFLAGS=-O2
SHARED_LIB=-fpic
DLSUFFIX=.so
case $host_cpu in
mips*) CFLAGS="$CFLAGS -mips2";;
alpha*) CPU=alpha;;
esac
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CPU:alpha
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2 -mips2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:-O2
SHARED_LIB:-fpic
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -pipe'
DLSUFFIX=.so
AROPT:rc
CFLAGS:
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.o
AROPT=rc
CFLAGS=
SHARED_LIB=
DLSUFFIX=.o
AROPT:cq
SHARED_LIB:-fpic -DPIC
CFLAGS:-O2 -pipe
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cq
SHARED_LIB='-fpic -DPIC'
CFLAGS='-O2 -pipe'
DLSUFFIX=.so
AROPT:crs
AROPT=crs
# NOFIXADE disallows unaligned access.
# on Ultrix and OSF/1 it invokes an explicit syscall.
# on HP-UX it turns off certain compiler options.
# This is defined here because a bunch of clients include tmp/c.h,
# which is where the work is done on HP-UX. It only affects the
# backend on Ultrix and OSF/1.
CC:gcc
CFLAGS:-D__alpha__ -DNOFIXADE
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
if test "$GCC" = yes ; then
CFLAGS='-D__alpha__ -DNOFIXADE'
CCC=g++
else
CFLAGS='-D__alpha__ -DNOFIXADE -std -O4 -Olimit 2000'
LDFLAGS='-rpath $(libdir)'
CCC=cxx
CXXFLAGS='-D__alpha__ -DNOFIXADE -O4 -Olimit 2000'
fi
DLSUFFIX=.so
SHARED_LIB=
AROPT:cr
CFLAGS:
LIBS:-lunix
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CXXFLAGS:-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++
AROPT=cr
CFLAGS=
LIBS=-lunix
SHARED_LIB=
DLSUFFIX=.so
CXXFLAGS=-I/usr/local/lib/gcc-lib/i386-pc-qnx4/egcs-2.91.60/include/g++
AROPT:cq
CFLAGS:
SHARED_LIB:-K PIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc -b elf
AROPT=cq
CFLAGS=
SHARED_LIB='-K PIC'
DLSUFFIX=.so
CC="$CC -b elf"
DLSUFFIX=.so
if test "$GCC" = yes ; then
AROPT=crs
CFLAGS=
SHARED_LIB=-fPIC
else
AROPT=cq
CFLAGS=
SHARED_LIB=-KPIC
fi
AROPT:cq
CFLAGS:
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS='-Xa -v -D__sparc__ -D__sun__'
SHARED_LIB=-KPIC
fi
AROPT:crs
CFLAGS:-Xa -v -D__sparc__ -D__sun__
SHARED_LIB:-KPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:crs
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=cr
DLSUFFIX=.so
if test "$GCC" = yes ; then
CFLAGS=
SHARED_LIB=-fPIC
else
CFLAGS=
SHARED_LIB=-PIC
fi
AROPT:cr
CFLAGS:
SHARED_LIB:-PIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
AROPT:cr
CFLAGS:
SHARED_LIB:-fPIC
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT:crs
CFLAGS:
SHARED_LIB:
ALL:+W0
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=
SHARED_LIB=
DLSUFFIX=.so
AROPT:crs
CFLAGS:-DNOFIXADE
SHARED_LIB:-G 0
ALL:
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
AROPT=crs
CFLAGS=-DNOFIXADE
SHARED_LIB='-G 0'
DLSUFFIX=.so
AROPT:crs
CFLAGS:-v -O -K i486,host,inline,loop_unroll -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:
SRCH_LIB:
DLSUFFIX:.so
CC:cc
LIBS:-lc89
AROPT=crs
CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
SHARED_LIB='-K PIC'
DLSUFFIX=.so
LIBS=-lc89
AROPT:crs
CFLAGS:-O -K i486,host,inline,loop_unroll,alloca -Dsvr4
SHARED_LIB:-K PIC
SRCH_INC:/opt/include
SRCH_LIB:/opt/lib
DLSUFFIX:.so
CC:cc
AROPT=crs
CFLAGS='-O -K i486,host,inline,loop_unroll,alloca -Dsvr4'
SHARED_LIB='-K PIC'
SRCH_INC='/opt/include'
SRCH_LIB='/opt/lib'
DLSUFFIX=.so
AROPT=crs
CFLAGS=-O2
SRCH_INC=/usr/local/include
SRCH_LIB=/usr/local/lib
DLSUFFIX=.dll
LIBS=-lcygipc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment