# Package prefix
DESTDIR=

SOVERS=3.0

# Compiler and linker

CC=$(CXX)
LD=$(CC)

# Standard directory variables from autoconf
prefix=@prefix@
datarootdir=@datarootdir@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libexecdir=@libexecdir@
datadir=${datarootdir}
sysconfdir=@sysconfdir@
scd=$(sysconfdir)
libdir=@libdir@
sharedlibdir=$(libdir)/shared
mandir=@mandir@
includedir=@includedir@
localstatedir=@localstatedir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
VPATH=@srcdir@

# Compiler options for wxWidgets

WXCPPFLAGS=@WXCPPFLAGS@
WXCXXFLAGS=@WXCXXFLAGS@
WXCFLAGS=@WXCFLAGS@
WXLDFLAGS=@WXLDFLAGS@

INCLUDES=	-I. -I../.. -I../../gui

COPTS=	$(INCLUDES) $(CPPFLAGS) $(CFLAGS) 
COMPILEC=	$(CXX) $(COPTS) $(WXCXXFLAGS)
COMPILEPP=	$(CXX) $(COPTS) $(WXCXXFLAGS)

# Use DK libraries

DKLIBS=-ldk3wx -ldk3c

.SUFFIXES:

.SUFFIXES:	.cpp	.c	.o

.c.o:
	@echo Compile $<
	$(COMPILEC) -o $@ -c $<

.cpp.o:
	@echo Compile $<
	$(COMPILEPP) -o $@ -c $<

all:		# Build example.
all:		$program$

#	__CHANGE__ 018:	Add further modules.

OBJ_$program$= \
	$application$.o \
	$frame$.o

#	__CHANGE__ 018:	Add further libraries.

$program$:	# Test program.
$program$:	$(OBJ_$program$)
	@echo	Link $program$
	$(LD) $(CFLAGS) $(LDFLAGS) $(WXCFLAGS) $(WXLDFLAGS) -o $program$ $(OBJ_$program$) $(DKLIBS) -lm
	chmod 755 $program$

.PHONY:	help clean

clean:
	-rm $program$ *.o

help:
	-@egrep '^[^:;=.        ]*::?[  ]*' Makefile | grep '#' | grep -v '^#'
	
