Skip to content

Commit

Permalink
build: split C sources and agent script into separate subdirs
Browse files Browse the repository at this point in the history
Thanks to Florian Haas <florian@hastexo.com>
  • Loading branch information
Lars Marowsky-Bree committed May 29, 2012
1 parent c841c7a commit 86c8212
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 18 deletions.
Empty file added AUTHORS
Empty file.
Empty file added ChangeLog
Empty file.
18 changes: 1 addition & 17 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@

AM_CFLAGS = -D_GNU_SOURCE
AM_CPPFLAGS = -I$(includedir)/pacemaker -I$(includedir)/clplumbing \
-I$(includedir)/heartbeat \
$(glib_CFLAGS) \
$(libxml_CFLAGS)

agentdir = $(libdir)/stonith/plugins/external
agent_SCRIPTS = sbd.agent

sbin_PROGRAMS = sbd

sbd_SOURCES = sbd-common.c sbd-md.c sbd-pacemaker.c

sbd_LDFLAGS = $(glib_LIBS) $(libcoroipcc_LIBS)


SUBDIRS = src agent
Empty file added NEWS
Empty file.
Empty file added README
Empty file.
3 changes: 3 additions & 0 deletions agent/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
agentdir = $(libdir)/stonith/plugins/external
agent_SCRIPTS = sbd

File renamed without changes.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fi


dnl The Makefiles and shell scripts we output
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile src/Makefile agent/Makefile])

dnl Now process the entire list of files added by previous
dnl calls to AC_CONFIG_FILES()
Expand Down
12 changes: 12 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
AM_CFLAGS = -D_GNU_SOURCE
AM_CPPFLAGS = -I$(includedir)/pacemaker -I$(includedir)/clplumbing \
-I$(includedir)/heartbeat \
$(glib_CFLAGS) \
$(libxml_CFLAGS)

sbin_PROGRAMS = sbd

sbd_SOURCES = sbd-common.c sbd-md.c sbd-pacemaker.c

sbd_LDFLAGS = $(glib_LIBS) $(libcoroipcc_LIBS)

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 86c8212

Please sign in to comment.