Skip to content

Commit f88c491

Browse files
committed
Convert build system to autotools
1 parent 7b7c9e9 commit f88c491

5 files changed

Lines changed: 30 additions & 5 deletions

File tree

Makefile

Lines changed: 0 additions & 5 deletions
This file was deleted.

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AUTOMAKE_OPTIONS = foreign
2+
SUBDIRS = src

configure.ac

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
AC_INIT([ssh-askpass-fullscreen], [0.4])
2+
AC_CONFIG_SRCDIR(src/${PACKAGE_NAME}.c)
3+
4+
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
5+
AM_CONFIG_HEADER([src/config.h])
6+
7+
AC_PROG_CC
8+
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
9+
AC_CHECK_FUNCS([memset])
10+
11+
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.10.0],,
12+
AC_MSG_ERROR([>=GTK+-2.10 is required to compile ${PACKAGE_NAME}]
13+
))
14+
15+
AC_SUBST(GTK_CFLAGS)
16+
AC_SUBST(GTK_LIBS)
17+
18+
AC_OUTPUT([Makefile src/Makefile])
19+
20+
echo
21+
echo "Now run \`make' to compile ${PACKAGE_NAME}"
22+
echo

src/Makefile.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AM_CFLAGS = --pedantic -Wall $(GTK_CFLAGS)
2+
AM_LDFLAGS =
3+
4+
bin_PROGRAMS = ssh-askpass-fullscreen
5+
ssh_askpass_fullscreen_SOURCES = ssh-askpass-fullscreen.c
6+
ssh_askpass_fullscreen_LDADD = $(GTK_LIBS)

0 commit comments

Comments
 (0)