]> git.ozlabs.org Git - petitboot/blobdiff - utils/Makefile.am
pb-sos: effectively compress the pb-sos file with gzip
[petitboot] / utils / Makefile.am
index a01bfe809825c2cd8294a56fadd54673fe30614d..6c708eb10972410f5d5c1ead38732e648a293518 100644 (file)
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
-AM_CPPFLAGS = \
-       -I$(top_srcdir) \
-       -I$(top_srcdir)/lib \
-       $(DEFAULT_CPPFLAGS)
+dist_sbin_SCRIPTS += utils/pb-udhcpc utils/pb-plugin utils/pb-sos
+dist_pkglibexec_SCRIPTS = utils/pb-console
+sbin_PROGRAMS += utils/pb-event utils/pb-config
 
-AM_CFLAGS = \
-       $(DEFAULT_CFLAGS)
+utils_pb_config_LDADD = $(top_builddir)/lib/libpbcore.la \
+                 $(top_builddir)/discover/platform.ro
 
-dist_sbin_SCRIPTS = pb-udhcpc
-dist_pkglibexec_SCRIPTS = pb-console pb-sysinfo
+utils_hooks_30_dtb_updates_SOURCES = utils/hooks/30-dtb-updates.c
+utils_hooks_30_dtb_updates_LDADD = $(top_builddir)/lib/libpbcore.la \
+               $(FDT_LIBS)
 
-sbin_PROGRAMS = pb-event
-
-pb_event_SOURCES = pb-event.c
+if HAVE_LIBFDT
+noinst_PROGRAMS = \
+       utils/hooks/30-dtb-updates
+endif
 
 dist_pkgdata_DATA = \
-       kboot.conf.sample \
-       bb-kexec-reboot \
-       logrotate.conf \
-       hooks/01-create-default-dtb \
-       hooks/20-update-dtb-sample
-
-MAINTAINERCLEANFILES = Makefile.in
+       utils/kboot.conf.sample \
+       utils/bb-kexec-reboot \
+       utils/logrotate.conf \
+       utils/hooks/01-create-default-dtb \
+       utils/hooks/20-update-dtb-sample \
+       utils/hooks/90-sort-dtb