Skip to content

Commit

Permalink
Migrate to GNU build system
Browse files Browse the repository at this point in the history
Move lbzip2 source files to "src" subdirectory. Remove Makefiles.
Create initial "configure.ac" and "Makefile.am" files.
  • Loading branch information
kjn committed Aug 20, 2011
1 parent 9d2296a commit 58d99b5
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 241 deletions.
Empty file added AUTHORS
Empty file.
File renamed without changes.
Empty file added ChangeLog
Empty file.
65 changes: 0 additions & 65 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions Makefile.am
@@ -0,0 +1,2 @@
SUBDIRS = yambi lib src doc
ACLOCAL_AMFLAGS = -Im4
65 changes: 0 additions & 65 deletions Makefile.dev

This file was deleted.

65 changes: 0 additions & 65 deletions Makefile.portable

This file was deleted.

Empty file added NEWS
Empty file.
Empty file added README
Empty file.
26 changes: 26 additions & 0 deletions configure.ac
@@ -0,0 +1,26 @@
AC_PREREQ([2.68])
AC_INIT([lbzip2], [1.0], [zurgunt@gmail.com])

AC_CONFIG_SRCDIR(src/main.c)
AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_HEADERS([lib/config.h])

AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])

AC_PROG_RANLIB
AC_PROG_CC_C89
gl_EARLY

AC_HEADER_STDC
AC_C_CONST
AC_C_VOLATILE
AC_TYPE_SIZE_T
AC_TYPE_OFF_T
AC_SYS_LARGEFILE

gl_INIT

AC_CONFIG_FILES([Makefile src/Makefile yambi/Makefile lib/Makefile
doc/Makefile])
AC_OUTPUT
1 change: 1 addition & 0 deletions doc/Makefile.am
@@ -0,0 +1 @@
man_MANS = lbzip2.1
File renamed without changes.
44 changes: 0 additions & 44 deletions lfs.sh

This file was deleted.

7 changes: 7 additions & 0 deletions src/Makefile.am
@@ -0,0 +1,7 @@
AM_CPPFLAGS = -I$(top_srcdir)/yambi -I$(top_srcdir)/lib
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)

bin_PROGRAMS = lbzip2
lbzip2_SOURCES = main.c lbzip2.c lbunzip2.c lacos_rbtree.c
lbzip2_LDADD = $(top_srcdir)/lib/libgnu.a $(top_srcdir)/yambi/libyambi.a \
$(LIB_PTHREAD)
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lbunzip2.c → src/lbunzip2.c
Expand Up @@ -4,7 +4,7 @@
#include <string.h> /* memcpy() */
#include <signal.h> /* SIGUSR2 */

#include "yambi/yambi.h" /* YBdec_t */
#include "yambi.h" /* YBdec_t */

#include "main.h" /* pname */
#include "lbunzip2.h" /* lbunzip2() */
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lbzip2.c → src/lbzip2.c
Expand Up @@ -5,7 +5,7 @@
#include <sys/time.h> /* gettimeofday() */
#include <unistd.h> /* isatty() */

#include "yambi/yambi.h" /* YBenc_t */
#include "yambi.h" /* YBenc_t */

#include "main.h" /* pname */
#include "lbzip2.h" /* lbzip2() */
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions yambi/Makefile.am
@@ -0,0 +1,6 @@
AM_CPPFLAGS = -I$(top_srcdir)/lib
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)

noinst_LIBRARIES = libyambi.a
libyambi_a_SOURCES = blocksort.c collect.c crctab.c decode.c emit.c encode.c \
prefix.c retrieve.c transmit.c

0 comments on commit 58d99b5

Please sign in to comment.