Skip to content

Commit 333fcca

Browse files
committed
Use autotools and add gitignore
1 parent 79a277a commit 333fcca

14 files changed

+803
-17
lines changed

.gitignore

+69-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,69 @@
1-
*.o
2-
mokutil
1+
/*.bak
2+
/*.lo
3+
/*.o
4+
/*.orig
5+
/*.rej
6+
/*.tab.c
7+
/*.tar.xz
8+
/*~
9+
/.*.sw[nop]
10+
/.deps
11+
/.dirstamp
12+
/.gitignore
13+
/.libs
14+
/ABOUT-NLS
15+
/ChangeLog
16+
/GPATH
17+
/GRTAGS
18+
/GSYMS
19+
/GTAGS
20+
/ID
21+
/INSTALL
22+
/Makefile
23+
/Makefile.in
24+
/TAGS
25+
/_libs
26+
/aclocal.m4
27+
/autom4te.cache
28+
/build-aux
29+
/config.cache
30+
/config.h
31+
/config.h.in
32+
/config.log
33+
/config.lt
34+
/config.status
35+
/config.status.lineno
36+
/configure
37+
/configure.lineno
38+
/compile
39+
/depcomp
40+
/install-sh
41+
/missing
42+
/intltool-extract.in
43+
/intltool-merge.in
44+
/intltool-update.in
45+
/libtool
46+
/po/*.gmo
47+
/po/*.mo
48+
/po/.intltool-merge-cache
49+
/po/Makefile
50+
/po/Makefile.in
51+
/po/Makefile.in.in
52+
/po/Makefile.in.in~
53+
/po/Makevars.template
54+
/po/POTFILES
55+
/po/Rules-quot
56+
/po/boldquot.sed
57+
58+
59+
/po/insert-header.sin
60+
/po/quot.sed
61+
/po/remove-potcdate.sin
62+
/po/stamp-it
63+
/po/*.pot
64+
/so_locations
65+
/src/.deps/
66+
/src/Makefile
67+
/src/Makefile.in
68+
/stamp-h1
69+
/tags

AUTHORS

Whitespace-only changes.

COPYING

+674
Large diffs are not rendered by default.

Makefile

-13
This file was deleted.

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBDIRS = src

NEWS

Whitespace-only changes.

README

Whitespace-only changes.

README.md

-2
This file was deleted.

autogen.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
# Run this to generate all the initial makefiles, etc.
3+
4+
test -n "$srcdir" || srcdir=`dirname "$0"`
5+
test -n "$srcdir" || srcdir=.
6+
7+
olddir=`pwd`
8+
cd $srcdir
9+
10+
AUTORECONF=`which autoreconf`
11+
if test -z $AUTORECONF; then
12+
echo "*** No autoreconf found, please intall it ***"
13+
exit 1
14+
fi
15+
16+
autoreconf --force --install --verbose
17+
18+
cd $olddir
19+
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
20+

configure.ac

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.68])
5+
AC_INIT([mokutil], [0.0.1], [[email protected]])
6+
AM_INIT_AUTOMAKE
7+
AC_CONFIG_SRCDIR([src/mokutil.c])
8+
AC_CONFIG_HEADERS([config.h])
9+
10+
# Checks for programs.
11+
AC_PROG_CC
12+
AM_PROG_CC_C_O
13+
14+
# Checks for libraries.
15+
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [turn on debug]), CFLAGS="$CFLAGS -g")
16+
17+
# Checks for header files.
18+
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
19+
20+
# Checks for typedefs, structures, and compiler characteristics.
21+
AC_C_INLINE
22+
AC_TYPE_SIZE_T
23+
AC_TYPE_SSIZE_T
24+
AC_TYPE_UINT16_T
25+
AC_TYPE_UINT32_T
26+
AC_TYPE_UINT64_T
27+
AC_TYPE_UINT8_T
28+
29+
# Checks for library functions.
30+
AC_CHECK_FUNCS([memset])
31+
32+
AC_CONFIG_FILES([Makefile
33+
src/Makefile])
34+
AC_OUTPUT

src/Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin_PROGRAMS = mokutil
2+
mokutil_CFLAGS = $(CFLAGS)
3+
mokutil_SOURCES = efi.h \
4+
efilib.c \
5+
mokutil.c

efi.h renamed to src/efi.h

File renamed without changes.

efilib.c renamed to src/efilib.c

File renamed without changes.

mokutil.c renamed to src/mokutil.c

File renamed without changes.

0 commit comments

Comments
 (0)