allow compiling against GiNaC without having to make install first.
INSTALL_DATA = @INSTALL_DATA@
-all: lib ginsh
+all: lib ginsh/ginsh
echo "now type make install"
src/libginac.la:
cd src; ${MAKE} all
-# Target for making the GiNaC interactive shell (ginsh):
-ginsh:
- if [ "${shared}" ]; then ${MAKE} sharedginsh; else ${MAKE} staticginsh; fi
+# Targets for making the GiNaC interactive shell (ginsh)
+ginsh: ginsh/ginsh
+
+ginsh/ginsh:
+ if [ "${shared}" ]; then \
+ ${MAKE} sharedginsh; \
+ else \
+ ${MAKE} staticginsh; \
+ fi
sharedginsh: src/libginac.la
cd ginsh; ${MAKE} sharedginsh
# Target for running a test-suite across the library:
check:
- if [ "${shared}" ]; then ${MAKE} sharedcheck; else ${MAKE} staticcheck; fi
+ if [ "${shared}" ]; then \
+ ${MAKE} sharedcheck; \
+ else \
+ ${MAKE} staticcheck; \
+ fi
sharedcheck: src/libginac.la
cd check; ${MAKE} sharedcheck
# Targets for installation in install directories. The user-visible target
# `install' determines which one to call (static lib only or both shared and
# static lib).
-install:
+install: installdirs
@ if [ "${shared}" ]; then \
- ${MAKE} shlibinst; \
+ ${MAKE} sharedinst; \
else \
- ${MAKE} libinst; \
+ ${MAKE} staticinst; \
fi
- ${INSTALL} -d ${includedir}
- ${INSTALL_DATA} include/*.h ${includedir}/
+ ${INSTALL_DATA} include/GiNaC/*.h ${includedir}/
cd ginsh; ${MAKE} install
cd doc; ${MAKE} install
-shlibinst: src/libginac.la installdirs
+sharedinst: src/libginac.la
${LIBTOOL} install src/libginac.la ${libdir}/libginac.la
${LIBTOOL} -n --finish ${libdir}
-libinst: src/.libs/libginac.a installdirs
+staticinst: src/.libs/libginac.a
${INSTALL_DATA} src/.libs/libginac.a ${libdir}/libginac.a
installdirs:
all:
echo "Please call it with 'make check' from top-level Makefile."
echo "Alternatively, you can use this Makefile's targets {shared|static}check"
- echo "depending on your personal preferences and which lib you built."
+ echo "depending on your personal preferences and which library you built."
sharedcheck: ${OBJECTS} ../src/.libs/libginac.so
${CXX} ${LDFLAGS} ${OBJECTS} -Wl,--rpath -Wl,../src/.libs -L../src/.libs -lginac ${LIBS} -o main
/* Tests for symbolic differentiation, including various functions. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
static unsigned check_diff(const ex &e, const symbol &x,
const ex &d, unsigned nth=1)
* substitute a0 by -a1 in e
* after which e should return 0 (without expanding). */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
#define VECSIZE 100
/* This test routine applies assorted tests on initially known higher level
* functions. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
/* Simple tests on the sine trigonometric function. */
static unsigned inifcns_consist_sin(void)
/* This test routine does some simple checks on solving a polynomial for a
* variable. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
unsigned lsolve_onedim(void)
{
// check/main.cpp
-#include "ginac.h"
+#include <stdexcept>
+#include <GiNaC/ginac.h>
#include "check.h"
int main()
/* Here we test manipulations on GiNaC's symbolic matrices. */
-#include "ginac.h"
#include <stdexcept>
+#include <GiNaC/ginac.h>
static unsigned matrix_determinants(void)
{
/* Rational function normalization test-suite. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
static symbol x("x"), y("y"), z("z");
/* This test routine creates some numbers and check the result of several
* boolean tests on these numbers like is_integer() etc... */
-#include "ginac.h"
#include <stdlib.h>
+#include <GiNaC/ginac.h>
/* Simple and maybe somewhat pointless consistency tests of assorted tests and
* conversions. */
// check/numeric_output.cpp
-#include "ginac.h"
+#include <GiNaC/ginac.h>
unsigned numeric_output(void)
{
* a sick behaviour again. But since we are paranoic and we want to exclude
* that behaviour for good... */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
// The very first pair of historic problems had its roots in power.cpp and was
// finally resolved on April 27th. (Fixing the first on April 23rd actually
/* Some test with polynomial GCD calculations. See also the checks for
* rational function normalization in normalization.cpp. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
const int MAX_VARIABLES = 5;
/* Tests for power laws. You shouldn't try to draw much inspiration from
* this code, it is a sanity check rather deeply rooted in GiNaC's classes. */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
static unsigned powerlaws1(void)
{
/* Series expansion test (Laurent and Taylor series). */
-#include "ginac.h"
+#include <GiNaC/ginac.h>
static symbol x("x");
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
-ac_unique_file=include/ginac.h
+ac_unique_file=include/GiNaC/ginac.h
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
GiNaC_Major_Version=0
GiNaC_Minor_Version=0
-GiNaC_Micro_Version=30
+GiNaC_Micro_Version=40
GiNaC_Version="${GiNaC_Major_Version}.${GiNaC_Minor_Version}.${GiNaC_Micro_Version}"
LibGiNaC_Ver="${GiNaC_Major_Version}:${GiNaC_Micro_Version}:${GiNaC_Minor_Version}"
dnl ===========================================================================
dnl This file is used as a signal that everything is in place:
-AC_INIT(include/ginac.h)
+AC_INIT(include/GiNaC/ginac.h)
dnl A convenient header file for some additional system-dependend output:
AC_CONFIG_HEADER(config.h)
# Substitution variables from configure skript:
# Here come the usual install directories in GNU-configure fashion:
-prefix = /tmp
+prefix = /usr/local
docdir = ${prefix}/share/doc/GiNaC
srcdir = .
# Dimitri van Heesch's Doxygen is needed for developer's resource:
# values from configure which checks it anyways:
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
-CPPFLAGS = @CPPFLAGS@ -I../ -I../include
+CPPFLAGS = @CPPFLAGS@ -I.. -I../include
DEFS = @DEFS@
LIBS = @LIBS@ @LEXLIB@
LDFLAGS = @LDFLAGS@
all:
echo "Please call it with 'make ginsh' from top-level Makefile."
- echo "Alternatively, you can use this Makefile's targets {shared|static} ginsh"
- echo "depending on your personal preferences and which lib you built."
+ echo "Alternatively, you can use this Makefile's targets {shared|static}ginsh"
+ echo "depending on your personal preferences and which library you built."
sharedginsh: depend ${OBJECTS}
${CXX} ${CXXFLAGS} ${LDFLAGS} ${OBJECTS} ${LIBS} -Wl,--rpath -Wl,../src/.libs -L../src/.libs -lginac -o ginsh
# Special dummy targets:
.PHONY: clean distclean depend all install uninstall check doc
.SUFFIXES: .o .c .h .y .l
+.SILENT: all
# Suffix rules:
.c.o :
}
#include <map>
-#include <ginac.h>
+#include <GiNaC/ginac.h>
#include "ginsh.h"
#include "y.tab.h"
#include <string>
#include <stdexcept>
-#include <ginac.h>
+#include <GiNaC/ginac.h>
#include "ginsh.h"