
# What are we building anyway?
PACKAGE			= @PACKAGE@
VERSION			= @VERSION@

# Directory settings
prefix			= @prefix@
exec_prefix		= $(prefix)
sharedir		= $(prefix)/share

docdir			= $(sharedir)/doc/$(PACKAGE)
copyingfile		= $(docdir)/copyright
infodir			= @infodir@

datadir			= @datadir@
localedir		= $(datadir)/locale
bindir			= @bindir@
sbindir			= @sbindir@

libdir			= @libdir@
dpkglibdir		= $(libdir)/$(PACKAGE)

methodsdir		= $(dpkglibdir)/methods
parsechangelogdir	= $(dpkglibdir)/parsechangelog

admindir		= @admindir@

mandir			= @mandir@
man1dir			= $(mandir)/man1
man5dir			= $(mandir)/man5
man8dir			= $(mandir)/man8

sysconfdir		= @sysconfdir@
dpkgconfdir		= $(sysconfdir)/dpkg
alternativesdir		= $(sysconfdir)/alternatives

PERL			= @PERL@
mkinstalldirs		= $(SHELL) $(top_srcdir)/mkinstalldirs
LN			= @LN_S@
INSTALL			= @INSTALL@
INSTALL_PROGRAM		= @INSTALL_PROGRAM@
INSTALL_DATA		= @INSTALL_DATA@
INSTALL_SCRIPT		= @INSTALL_SCRIPT@
SED			= @SED@
RM			= @RM@

CC			= @CC@
CFLAGS			= @CFLAGS@ @CWARNS@

CXX			= @CXX@
CXXFLAGS		= @CXXFLAGS@

LD			= @LD@
LDFLAGS			= @LDFLAGS@
LIBS			= @LIBS@

RANLIB			= @RANLIB@

DEFS			= @DEFS@ -D_GNU_SOURCE
INCLUDE_CFLAGS		= -I$(top_srcdir)/include -I$(top_srcdir) -I$(srcdir) -I../include -I.. -I. -I$(top_srcdir)/optlib

NLS_CFLAGS		= -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl -I../intl
NLS_LIBS		= @INTLLIBS@ 

SSD_LIBS		= @SSD_LIBS@

ZLIB_CFLAGS		= @ZLIB_CFLAGS@
ZLIB_LIBS		= @ZLIB_LIBS@

ALL_CFLAGS		= $(CFLAGS) $(DEFS) $(NLS_CFLAGS) $(INCLUDE_CFLAGS) $(ZLIB_CFLAGS) 
ALL_CXXFLAGS		= $(ALL_CFLAGS) $(CXXFLAGS)

.c.o:
	$(CC) $(ALL_CFLAGS) -c $<

.cc.o:
	$(CXX) $(ALL_CXXFLAGS) -c $<

