1 # Copyright (C) 2009-2011 Nick Bowler
2 # Copying and distribution of this file, with or without modification,
3 # are permitted in any medium without royalty provided the copyright
4 # notice and this notice are preserved. This file is offered as-is,
5 # without any warranty.
7 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
8 AM_LDFLAGS = -L$(top_builddir)/lib
11 MAINTAINERCLEANFILES =
13 lib_LTLIBRARIES = libupkg.la
16 include_HEADERS = upkg.h
17 noinst_HEADERS = pack.h
19 # This trick should define orderonly to | iff we're using GNU make.
20 have_orderonly = $(findstring order-only,$(.FEATURES))
21 orderonly = $(have_orderonly:order-only=|)
23 include uobject/Makefile.inc
24 include engine/Makefile.inc
26 libupkg_la_SOURCES = libupkg.c pack.c
30 upkg_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
31 upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic
32 upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu
35 GOB_V_ = $(GOB_V_$(AM_DEFAULT_VERBOSITY))
36 GOB_V_0 = @echo " GOB " $<;
39 $(AM_V_at) touch $@.tmp
40 $(GOB_V) $(GOB2) --file-sep=/ --no-private-header $<
41 $(AM_V_at) mv -f $@.tmp $@
44 @if test -f $@; then :; else \
46 $(MAKE) $(AM_MAKEFLAGS) $<; \
50 @if test -f $@; then :; else \
52 $(MAKE) $(AM_MAKEFLAGS) $<; \