Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use autotools as build system #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
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.