# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-SUBDIRS = lib discover ui utils man
+SUBDIRS = lib discover test ui utils man
ACLOCAL_AMFLAGS = -I m4
parser-utils.c \
parser-utils.h \
paths.c \
- paths.h
+ paths.h \
+ kboot-parser.c \
+ yaboot-parser.c
+
+EXTRA_DIST = native-parser.c
+
+libparser_la_LIBADD = $(top_builddir)/lib/libpbcore.la
sbin_PROGRAMS = pb-discover
event.c \
event.h \
event-parser.c \
- kboot-parser.c \
message.h \
params.c \
params.h \
udev.c \
udev.h \
user-event.c \
- user-event.h \
- yaboot-parser.c
+ user-event.h
+
pb_discover_LDADD = libparser.la $(top_builddir)/lib/libpbcore.la
-EXTRA_DIST = native-parser.c
MAINTAINERCLEANFILES = Makefile.in
--- /dev/null
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/lib \
+ -I$(includedir) \
+ $(DEFAULT_CPPFLAGS)
+
+AM_CFLAGS = \
+ $(DEFAULT_CFLAGS)
+
+common_libs = \
+ $(top_builddir)/lib/libpbcore.la \
+ $(top_builddir)/discover/libparser.la
+
+noinst_SCRIPTS = parser-test.sh hotplug-device.sh
+
+noinst_PROGRAMS = parser-test
+
+parser_test_SOURCES = parser-test.c
+parser_test_LDADD = $(common_libs)
+
+MAINTAINERCLEANFILES = Makefile.in