Skip to content

Commit

Permalink
Use autotools as build system
Browse files Browse the repository at this point in the history
Change the build system from simple Makefile to autotools.

This will provide the missing install and uninstall targets.
Furthermore passing CPPFLAGS will be supported.

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron committed May 16, 2017
1 parent 5e01cba commit 330d4db
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 21 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Andreas Färber <[email protected]>
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Version 0.2, 2017-xx-yy
Use autotools as build system
Version 0.1, 2017-05-01
Initial release
21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SUBDIRS = src

ACLOCAL_AMFLAGS = -I m4
1 change: 1 addition & 0 deletions NEWS
1 change: 1 addition & 0 deletions README
12 changes: 12 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

test -f configure.ac || {
echo "Please, run this script in the top level project directory."
exit
}

libtoolize --force --copy
aclocal -I m4
autoconf
automake --add-missing --copy

26 changes: 26 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
dnl meson-tools

dnl Initialization
AC_INIT([meson-tools], [0.2], [Andreas Färber <[email protected]>])
AM_INIT_AUTOMAKE
LT_INIT

dnl Configure macros
AC_CONFIG_MACRO_DIR([m4])

LDFLAGS+=" -lcrypto"

AC_CHECK_HEADER([openssl/sha.h],
[],
[AC_MSG_ERROR([openssl/sha.h not found. Please, install libssl-dev.])]
)

dnl Makefiles
AC_CONFIG_FILES([
Makefile
src/Makefile
])

dnl Generate files
AC_OUTPUT

5 changes: 5 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bin_PROGRAMS = amlbootsig unamlbootsig amlinfo

amlbootsig_SOURCES = amlbootsig.c aml.h fip.h meson.h
unamlbootsig_SOURCES = unamlbootsig.c aml.h fip.h meson.h
amlinfo_SOURCES = amlinfo.c aml.h fip.h meson.h
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 330d4db

Please sign in to comment.