put /tmpasm/OFS { }
put /local/pcb/CFLAGS_GENERIC cc/cflags
append /local/pcb/CFLAGS_GENERIC cc/fpic
append /local/pcb/CFLAGS_GENERIC ?/local/pcb/cflags_profile
put /local/pcb/CFLAGS /local/pcb/CFLAGS_GENERIC
uniq /local/pcb/CFLAGS
uniq /local/pcb/CFLAGS_GENERIC

# calculate the /local/confdir: either specified conf-time or compatibility fallback
switch /local/confdir
	case {^$}  put /local/confdir_final_m [@@/local/prefix@/share/pcb-rnd@]; end
	default    put /local/confdir_final_m /local/confdir; end
end

if /local/pcb/librnd_is_local
then
	put /local/pcb/librnd_inc [@-I$(ROOT)/@/local/pcb/librnd_root@ -I$(ROOT)/@/local/pcb/librnd_root@/../src_3rd@]
else
	put /local/pcb/librnd_inc {}
end

print [@# generated by ./configure, do not modify

# Compatibility with autotools on DESTDIR - Debian really wants this
# Still keep install_root as well, because that has a better name
Install_root=$(install_root)$(DESTDIR)

# prefix is @/local/prefix@
DOCDIR=$(Install_root)@/local/prefix@/share/doc/pcb-rnd
LIBDIR=$(Install_root)@/local/prefix@/lib/pcb-rnd
BINDIR=$(Install_root)@/local/prefix@/bin
DATADIR=$(Install_root)@/local/prefix@/share/pcb-rnd
MAN1DIR=$(Install_root)@/local/prefix@@/local/man1dir@
CONFDIR=$(Install_root)@/local/confdir_final_m@
RM=@/host/fstools/rm@
CP=@/host/fstools/cp@
LN=@/host/fstools/ln@
MKDIR=@/host/fstools/mkdir@
SCCBOX=$(ROOT)/scconfig/sccbox
EXE=@/target/sys/ext_exe@
PCB_RND_HOST_CC=@/host/cc/cc@
PCB_RND_VER=@/local/version@
PCB_RND_VER_MAJOR=@/local/version_major@

PCB_RND_CFLAGS=@?cc/argstd/std_c99@ @/local/pcb/CFLAGS@ @/local/pcb/librnd_inc@
PCB_RND_C89FLAGS=@/local/pcb/c89flags@ @/local/pcb/CFLAGS@ @/local/pcb/librnd_inc@

# hidlib installation directories
HL_LIBDIR=$(Install_root)@/local/prefix@/@/local/libarchdir@
HL_SHAREDIR=$(Install_root)@/local/prefix@/share/librnd
HL_INCDIR=$(Install_root)@/local/prefix@/include/librnd


# The installation directoried to be used from within binaries (with
# install_root/DESTDIR removed)
LIBDIR_INSTALLED=@/local/prefix@/lib/pcb-rnd

@]
