Skip to content

Commit

Permalink
Convert to autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Aug 21, 2013
1 parent e060dfe commit 2e029a1
Show file tree
Hide file tree
Showing 43 changed files with 60 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBDIRS = vp8 src
3 changes: 3 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exec autoreconf -fi
42 changes: 42 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([alfalfa], [0.1], [alfalfa@mit.edu])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([vp8/modemv.hh])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([inttypes.h malloc.h stddef.h stdint.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset])

# Add picky CXXFLAGS
PICKY_CXXFLAGS="-std=c++11 -pedantic -Wall -Wextra -Weffc++ -fno-default-inline -pipe -pthread -Wno-unused-function -Werror"
AC_SUBST([PICKY_CXXFLAGS])

AC_CONFIG_FILES([Makefile src/Makefile vp8/Makefile])
AC_OUTPUT
9 changes: 9 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AM_CPPFLAGS = -I$(srcdir)/../vp8
AM_CXXFLAGS = $(PICKY_CXXFLAGS)
LDADD = ../vp8/libdixie.a

frame_deps_LDADD = $(LDADD)

bin_PROGRAMS = frame_deps

frame_deps_SOURCES = frame_deps.cc frame_state.cc frame_state.hh operator_parser.cc operator_parser.hh test_vector_reader.cc test_vector_reader.hh
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions vp8/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AM_CXXFLAGS = $(PICKY_CXXFLAGS)

noinst_LIBRARIES = libdixie.a

libdixie_a_SOURCES = bit_ops.hh bool_decoder.hh dequant_data.hh dixie.cc dixie.hh dixie_loopfilter.cc dixie_loopfilter.hh idct_add.cc idct_add.hh mem.hh modemv.cc modemv_data.hh modemv.hh predict.cc predict.hh tokens.cc tokens.hh vp8_dixie_iface.cc vp8_dixie_iface.hh vp8_prob_data.hh vpx_codec.cc vpx_codec.hh vpx_codec_internal.hh vpx_decoder_compat.hh vpx_decoder.hh vpx_encoder.hh vpx_image.cc vpx_image.hh vpx_integer.hh vpx_version.hh
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2e029a1

Please sign in to comment.