autogen tweaks

This commit is contained in:
R. Eric Wheeler 2015-07-01 09:17:08 -07:00
parent 11261da971
commit 2747d87a1f
5 changed files with 13 additions and 6 deletions

6
.gitignore vendored
View File

@ -14,7 +14,7 @@ Makefile
NEWS NEWS
pipecolors.pc pipecolors.pc
README README
test tests/test
Makefile.in Makefile.in
aclocal.m4 aclocal.m4
autom4te.cache autom4te.cache
@ -26,5 +26,9 @@ config.h
config.status config.status
libtool libtool
stamp-h1 stamp-h1
# Ignore output files
libpipecolors.o
libpipecolors.so
# Ignore backup files # Ignore backup files
*~ *~

View File

@ -1,7 +1,7 @@
pkgconfig_DATA = pipecolors.pc pkgconfig_DATA = pipecolors.pc
AM_CXXFLAGS =+ -std=c++11 -fPIC -pipe AM_CXXFLAGS += -std=c++11 -fPIC -pipe
ACLOCAL_AMFLAGS =+ -I m4 ACLOCAL_AMFLAGS = -I m4
LIBTOOL_DEPS += @LIBTOOL_DEPS@ LIBTOOL_DEPS += @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS) libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool $(SHELL) ./config.status libtool
@ -15,4 +15,5 @@ libpipecolors_so_SOURCES = libpipecolors.cpp
libpipecolors_so_LDFLAGS = \ libpipecolors_so_LDFLAGS = \
-shared \ -shared \
-fPIC \ -fPIC \
-Wl,-soname,libpipecolors.so.0.1 -Wl,-soname,libpipecolors.so.0.1 \
-ltermcap

View File

@ -3,6 +3,8 @@
set -x set -x
test -d autom4te.cache && rm -rf autom4te.cache test -d autom4te.cache && rm -rf autom4te.cache
test -d config && rm -rf config || exit 1
mkdir config || exit 1
libtoolize --install --copy || exit 1 libtoolize --install --copy || exit 1
aclocal -I config || exit 1 aclocal -I config || exit 1
autoheader || exit 1 autoheader || exit 1

View File

@ -11,4 +11,4 @@ void cprintf(const char* format, ...);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif

View File

@ -4,7 +4,7 @@
int main(void) { int main(void) {
const char* str = "|0101|0202|0303|0404|0505|0606|0707|0808|0909|1010|1111|1212|1313|1414|1515"; const char* str = "|0101|0202|0303|0404|0505|0606|0707|0808|0909|1010|1111|1212|1313|1414|1515";
const char* name = "|01P|02i|03p|04e|05c|06ol|07o|08r|09s |10l|11i|12b|13r|14a|15r|14y |130|12.|111|07" const char* name = "|01P|02i|03p|04e|05c|06ol|07o|08r|09s |10l|11i|12b|13r|14a|15r|14y |130|12.|111|07";
cprintf("\n%s\n\n", name); cprintf("\n%s\n\n", name);
cprintf("%s\n", str); cprintf("%s\n", str);