File tree Expand file tree Collapse file tree 3 files changed +59
-11
lines changed
Expand file tree Collapse file tree 3 files changed +59
-11
lines changed Original file line number Diff line number Diff line change 1- AM_CFLAGS = $(GTK_CFLAGS )
21bin_PROGRAMS = bin/sshfs-connection-tool
3- bin_sshfs_connection_tool_SOURCES = src/mainfile.c \
2+
3+ bin_sshfs_connection_tool_SOURCES = \
4+ src/mainfile.c \
45 src/application.c \
56 src/resources.c \
67 src/window.c \
78 include/application.h \
89 include/window.h
9- bin_sshfs_connection_tool_LDADD = $(GTK_LIBS )
10- BUILT_SOURCES = src/resources.c
11- src_resources.c : builder/main.ui builder/menu.ui
12- $(AM_V_GEN ) $(GLIB_COMPILE_RESOURCES_ ) $(srcdir ) /builder/test.gresource.xml \
13- --target=$@ --sourcedir=$(srcdir ) /builder --generate-source
14- EXTRA_DIST = builder
10+
11+ bin_sshfs_connection_tool_LDADD = \
12+ $(GTK_LIBS )
13+
14+ bin_sshfs_connection_tool_CFLAGS = \
15+ $(GTK_CFLAGS ) \
16+ $(AM_CFLAGS )
17+
18+ EXTRA_DIST = \
19+ builder/main.ui \
20+ builder/menu.ui \
21+ builder/test.gresource.xml
22+
23+ src_resources = $(shell glib-compile-resources --sourcedir=$(top_srcdir ) /builder --generate-dependencies $(top_srcdir ) /builder/test.gresource.xml)
24+
25+ BUILT_SOURCES = \
26+ src-resources.c
27+
28+ CLEANFILES = \
29+ $(BUILT_SOURCES )
30+
31+ src-resources.c : $(top_srcdir ) /builder/test.gresource.xml $(src_resources )
32+ glib-compile-resources --target=$@ --sourcedir=$(top_srcdir ) /builder --generate-source --c-name sshfs_connection_resources $<
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Run this to generate all the initial makefiles, etc.
3+ srcdir=` dirname $0 `
4+ test -n " $srcdir " || srcdir=` dirname " $0 " `
5+ test -n " $srcdir " || srcdir=.
6+
7+ PKG_NAME=" sshfs-connection-tool"
8+ prevdir=" $PWD "
9+ cd " $srcdir "
10+
11+ AUTORECONF=` which autoreconf`
12+ if test -z $AUTORECONF ;
13+ then
14+ echo " *** No autoreconf found, please install it ***"
15+ exit 1
16+ else
17+ autoreconf --force --install || exit $?
18+ fi
19+
20+ DEF_OPTS=" --prefix=/usr --sysconfdir=/etc"
21+
22+ cd " $prevdir "
23+ test -n " $NOCONFIGURE " || " $srcdir /configure" ${DEF_OPTS} " $@ "
Original file line number Diff line number Diff line change @@ -2,13 +2,20 @@ AC_PREREQ([2.69])
22AC_INIT ( [ SSHFS Connection Tool] , [ 0.0.1] , [ tobiaspg@member.fsf.org] )
33AC_CONFIG_AUX_DIR ( [ build-aux] )
44AC_CONFIG_SRCDIR ( [ src/mainfile.c] )
5- AM_INIT_AUTOMAKE ( [ foreign -Wall -Werror subdir-objects] )
5+ AM_INIT_AUTOMAKE ( [ foreign -Wall -Werror subdir-objects -Wno-portability ] )
66
77AC_PROG_CC
88PKG_PROG_PKG_CONFIG
99
10- PKG_CHECK_MODULES([ GTK] , [ gtk+-3.0 glib-2.0] )
11- AM_PATH_GTK_3_0([ 3.10.0] )
10+ m4_define ( [ gtk_required_version] , [ 3.10] )
11+
12+ PKG_CHECK_MODULES([ GTK] ,
13+ [
14+ gtk+-3.0 >= gtk_required_version,
15+ glib-2.0
16+ ]
17+ )
18+
1219AC_CHECK_HEADER_STDBOOL
1320
1421AM_SILENT_RULES ([ yes] )
You can’t perform that action at this time.
0 commit comments