X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/6d7453951662ebddd17f45bc2d7838ccdbbf4560..d2aa316f6b44d403eec7d010a55ac824fd83662b:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 719a952..5a0b682 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,30 +1,53 @@ -# Copyright (C) 2009 Nick Bowler -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. +# Copyright © 2009-2011 Nick Bowler +# +# License WTFPL2: Do What The Fuck You Want To Public License, version 2. +# This is free software: you are free to do what the fuck you want to. +# There is NO WARRANTY, to the extent permitted by law. -AM_CPPFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\" -DPKGDATADIR=\"$(pkgdatadir)\" +AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib +AM_LDFLAGS = -L$(top_builddir)/lib -lib_LTLIBRARIES = libuobject.la libupkg.la +EXTRA_DIST = +MAINTAINERCLEANFILES = + +lib_LTLIBRARIES = libupkg.la pkglib_LTLIBRARIES = include_HEADERS = upkg.h -noinst_HEADERS = pack.h avl.h +noinst_HEADERS = pack.h + +# This trick should define orderonly to | iff we're using GNU make. +have_orderonly = $(findstring order-only,$(.FEATURES)) +orderonly = $(have_orderonly:order-only=|) include uobject/Makefile.inc include engine/Makefile.inc -libuobject_la_SOURCES = uobject.c module.c avl.c package.c \ - loadable.c exportable.c -libuobject_la_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(LTDLINCL) -libuobject_la_LIBADD = $(LIBLTDL) $(GLIB_LIBS) -libuobject_la_LDFLAGS = -export-symbols-regex '^u_' - libupkg_la_SOURCES = libupkg.c pack.c bin_PROGRAMS = upkg upkg_SOURCES = upkg.c -upkg_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib $(GLIB_CFLAGS) -upkg_LDFLAGS = -L$(top_builddir)/lib -export-dynamic -upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu +upkg_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) +upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic +upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) $(top_builddir)/libgnu.la + +GOB_V = $(GOB_V_$(V)) +GOB_V_ = $(GOB_V_$(AM_DEFAULT_VERBOSITY)) +GOB_V_0 = @echo " GOB " $<; + +.gob.gobstamp: + $(AM_V_at) touch $@.tmp + $(GOB_V) $(GOB2) --file-sep=/ --no-private-header $< + $(AM_V_at) mv -f $@.tmp $@ + +.gobstamp.c: + @if test -f $@; then :; else \ + rm -f $<; \ + $(MAKE) $(AM_MAKEFLAGS) $<; \ + fi + +.gobstamp.h: + @if test -f $@; then :; else \ + rm -f $<; \ + $(MAKE) $(AM_MAKEFLAGS) $<; \ + fi