4 Commits
0.2 ... 0.3

Author SHA1 Message Date
e7ca9d9036 fix building 2018-05-18 10:57:39 +02:00
e543baff47 make autogen.sh OpenBSD friendly 2018-05-18 10:32:16 +02:00
b636a25e94 don't hardcode version 2018-05-11 17:08:26 +02:00
07e05034fc differentiate libdice flex/bison with prefix "dp"
This allows the library to be linked with other libraries that also
use flex and bison.
2018-05-11 17:02:45 +02:00
6 changed files with 9 additions and 7 deletions

View File

@@ -7,8 +7,7 @@ libdice_la_SOURCES = lib/dice_lexer.l \
lib/dice_parse.y \ lib/dice_parse.y \
lib/dice.h \ lib/dice.h \
lib/dice.c \ lib/dice.c \
lib/diceexpr.c \ lib/diceexpr.c
lex.dp.c
include_HEADERS = lib/dice.h include_HEADERS = lib/dice.h

View File

@@ -3,6 +3,11 @@
set -e set -e
set -x set -x
if [ $(uname) = "OpenBSD" ]; then
export AUTOMAKE_VERSION=1.15
export AUTOCONF_VERSION=2.69
fi
cd "$(dirname "$0")" cd "$(dirname "$0")"
PATH=$PATH:/usr/local/bin PATH=$PATH:/usr/local/bin

View File

@@ -1,5 +1,5 @@
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([libdice], [0.1], [florian@n0la.org]) AC_INIT([libdice], [0.2], [florian@n0la.org])
AM_INIT_AUTOMAKE([subdir-objects]) AM_INIT_AUTOMAKE([subdir-objects])
LT_INIT() LT_INIT()
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])

View File

@@ -1,2 +0,0 @@
/* empty file, so that autotools has something to compile
*/

View File

@@ -1,6 +1,6 @@
%option prefix="dp"
%option bison-bridge %option bison-bridge
%option reentrant %option reentrant
%option outfile="../lib/dice_lexer.c"
%{ %{
#define YYSTYPE DPSTYPE #define YYSTYPE DPSTYPE

View File

@@ -5,7 +5,7 @@ includedir=@includedir@
Name: libdice Name: libdice
Description: dice rolling and math expression library Description: dice rolling and math expression library
Version: 0.1 Version: @VERSION@
Requires: Requires:
Conflicts: Conflicts:
Cflags: -I${includedir} Cflags: -I${includedir}