Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TESTS_ENVIRONMENT = \
gztool_abspath='$(abs_top_builddir)'/gztool; \
export gztool_abspath;
bin_PROGRAMS = gztool
gztool_SOURCES = gztool.c
gztool_SOURCES = gztool.c gztool_internal.c main.c
gztool_LDADD = -lm -lz
dist_doc_DATA = README.md
dist_man_MANS = gztool.1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ Compilation

$ sudo apt-get install zlib1g-dev

$ gcc -O3 -o gztool gztool.c -lz -lm
$ gcc -O3 -o gztool gztool.c gztool.h gztool_internal.c gztool_internal.h main.c -lz -lm

If you wish you can use autoconf to check the dependencies, build and
test `gztool`:

$ autoreconf && ./configure && make check
$ autoreconf -fi && ./configure && make check

This will produce a binary in `gztool`.

Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
AC_INIT([gztool], [1.8.0], [roberto.s.galende@gmail.com])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_PROG_CC_C99

CFLAGS="$CFLAGS -Wall -Wextra -Werror"
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
Expand Down
Loading