#   @?libs/tty/readline/cflags@
put /local/xschem/cflags [@
  @cc/cflags@
  @?libs/sul/libjpeg/cflags@
  @?libs/gui/cairo/cflags@
  @?libs/gui/xrender/cflags@
  @?libs/gui/xcb/cflags@
  @?libs/gui/xcb_render/cflags@
  @?libs/gui/xgetxcbconnection/cflags@
  @libs/gui/xpm/cflags@
  @libs/script/tk/cflags@
  @libs/script/tcl/cflags@
@]

#  @?libs/tty/readline/ldflags@
put /local/xschem/ldflags [@
  @cc/ldflags@
  -lm
  @?libs/sul/libjpeg/ldflags@
  @?libs/gui/cairo/ldflags@
  @?libs/gui/xrender/ldflags@
  @?libs/gui/xcb/ldflags@
  @?libs/gui/xcb_render/ldflags@
  @?libs/gui/xgetxcbconnection/ldflags@
  @libs/gui/xpm/ldflags@
  @libs/script/tk/ldflags@
  @libs/script/tcl/ldflags@
@]

uniq /local/xschem/cflags
uniq /local/xschem/ldflags
gsub /local/xschem/cflags {\n} { }
gsub /local/xschem/ldflags {\n} { }

print [@###############################################################
#  Generated by scconfig - DO NOT EDIT - will be overwritten  #
#  Source: Makefile.conf.in; to regenerate run ./configure    #
###############################################################

PREFIX=@/local/xschem/prefix@
CC=@cc/cc@
CFLAGS=@/local/xschem/cflags@
LDFLAGS=@/local/xschem/ldflags@

BINDIR=$(DESTDIR)$(install_root)$(PREFIX)/bin
SHAREDIR=$(DESTDIR)$(install_root)$(PREFIX)/share
DOCDIR=$(DESTDIR)$(install_root)$(PREFIX)/share/doc
XSHAREDIR=$(SHAREDIR)/xschem
XDOCDIR=$(DOCDIR)/xschem
MANDIR=$(SHAREDIR)/man
USER_CONF_DIR=@/local/xschem/user-conf-dir@
SCCBOX=$(ROOT)/scconfig/sccbox

## specify user schematic/symbol libraries;
## you may redefine it later in .xschem or xschemrc startup files
user_library_dir=@/local/xschem/user-lib-path@

## specify system-wide symbol libraries;
## you may redefine it later in ~/.xschem/xschemrc or 
## `pwd`/.xschemrc startup files
system_library_dir=$(DESTDIR)$(install_root)@/local/xschem/sys-lib-path@

## default search path
xschem_library_path=@/local/xschem/xschem-lib-path@


@]

