1 # Copyright © 2009-2011 Nick Bowler
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
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) $<; \