+# This trick should define orderonly to | iff we're using GNU make.
+have_orderonly = $(findstring order-only,$(.FEATURES))
+orderonly = $(have_orderonly:order-only=|)
+
+upkg_SOURCES = src/upkg.c
+upkg_LDFLAGS = $(AM_LDFLAGS) -export-dynamic
+upkg_LDADD = libuobject.la libupkg.la libgnu.la $(GLIB_LIBS)
+$(upkg_OBJECTS): $(gnulib_headers)
+
+libupkg_la_SOURCES = src/libupkg.c src/pack.c
+
+uobjectdir = $(includedir)/uobject
+uobject_HEADERS = src/uobject/uobject.h src/uobject/exportable.h \
+ src/uobject/loadable.h src/uobject/module.h src/uobject/package.h \
+ src/uobject/vfs.h
+
+libuobject_la_SOURCES = src/uobject/uobject.c src/uobject/module.c \
+ src/uobject/avl.c src/uobject/avl.h src/uobject/package.c \
+ src/uobject/exportable.c src/uobject/loadable.c src/uobject/vfs.c
+libuobject_la_LDFLAGS = $(AM_LDFLAGS) -export-symbols-regex '^u_'
+libuobject_la_LIBADD = libgnu.la $(LIBLTDL) $(GLIB_LIBS)
+$(libuobject_la_OBJECTS): $(gnulib_headers)
+
+libuobject_la = libuobject.la
+$(libuobject_la): $(LTDLDEPS)
+
+moduleflags = -module -avoid-version -export-symbols-regex _LTX_
+
+engine_GOBS = src/engine/palette.gob src/engine/texture.gob \
+ src/engine/music.gob