librazor/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Feb 09 20:45:27 2012 +0000 (2012-02-09)
changeset 418 33b825d3128d
parent 403 e63951c1d0f8
child 423 6112bcc5d1cf
permissions -rw-r--r--
Add transaction barriers
These allow packages to be installed and removed which have scripts
that depend on each other when atomic transactions are involved.
Note that yum supports pre, but not other requires flags. post will
need similar support to the post scripts themselves pulling in the
requires flags from the rpms. Likewise preun and postun will need
similar handling to those scrips since the requires flags will need
to be stored in the razor database.
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 SUBDIRS = types
     4 
     5 INCLUDES = \
     6 	-I$(top_builddir)/gl -I$(top_srcdir)/gl \
     7 	-I$(top_builddir)/src -I$(top_srcdir)/src \
     8 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
     9 	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
    10 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
    11 	-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
    12 	-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
    13 	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
    14 	-DPACKAGE_LIB_DIR=\""$(libdir)"\"
    15 
    16 lib_LTLIBRARIES = librazor.la
    17 if HAVE_LUA
    18   check_PROGRAMS = test-lua
    19 endif
    20 
    21 librazorincludedir = $(includedir)/razor
    22 
    23 librazorinclude_HEADERS =              			\
    24 	razor.h
    25 
    26 librazor_la_SOURCES =                                	\
    27 	razor-internal.h				\
    28 	razor.h						\
    29 	razor.c						\
    30 	root.c						\
    31 	util.c						\
    32 	rpm.c						\
    33 	iterator.c					\
    34 	importer.c					\
    35 	merger.c					\
    36 	atomic.c					\
    37 	atomic-ktm.c					\
    38 	atomic-none.c					\
    39 	atomic-emulate.c				\
    40 	atomic-actions.c				\
    41 	transaction.c
    42 
    43 if HAVE_LUA
    44   librazor_la_SOURCES += lua.c
    45 endif
    46 
    47 librazor_la_LIBADD = $(ZLIB_LIBS) types/libtypes.la $(LUA_LIBS) \
    48 	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    49 librazor_la_LDFLAGS = -no-undefined \
    50 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    51 
    52 if HAVE_LUA
    53   test_lua_SOURCES = test-lua.c
    54   test_lua_LDADD = lua.lo util.lo types/libtypes.la $(LUA_LIBS) \
    55 	../gl/libgnu.la $(INTLLIBS) $(EXTRA_LIBS)
    56 
    57   TESTS = test-lua
    58 endif
    59 
    60 EXTRA_DIST = 			\
    61 	test.lua
    62 
    63 clean-local :
    64 	rm -f *~
    65