1 Commits
0.3 ... 0.2

Author SHA1 Message Date
4c2b7c3087 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 16:57:55 +02:00
6 changed files with 7 additions and 9 deletions

View File

@@ -7,7 +7,8 @@ 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,11 +3,6 @@
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.2], [florian@n0la.org]) AC_INIT([libdice], [0.1], [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])

2
lib/dice_lexer.c Normal file
View File

@@ -0,0 +1,2 @@
/* 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: @VERSION@ Version: 0.1
Requires: Requires:
Conflicts: Conflicts:
Cflags: -I${includedir} Cflags: -I${includedir}