rpm/lib/Makefile.am

127 lines
3.6 KiB
Makefile
Raw Normal View History

# Makefile for rpm library.
AM_CPPFLAGS = -I. \
-I$(top_srcdir) \
-I$(top_srcdir)/rpmdb \
-I$(top_srcdir)/rpmio \
@WITH_BEECRYPT_INCLUDE@ \
@WITH_POPT_INCLUDE@ \
2007-08-22 17:54:31 +08:00
-I$(top_srcdir)/misc
2007-08-28 12:46:20 +08:00
AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
2007-08-28 17:33:39 +08:00
AM_CPPFLAGS += -DSYSCONFDIR="\"$(sysconfdir)\""
2007-08-31 14:56:21 +08:00
AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
2007-08-31 20:38:41 +08:00
AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\""
2007-09-01 00:54:57 +08:00
AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"@RPMCONFIGDIR@/rpmpopt-${VERSION}\""
EXTRA_DIST = getdate.y
check_PROGRAMS =
pkgincdir = $(pkgincludedir)
pkginc_HEADERS = \
idtx.h misc.h rpmcli.h rpmlib.h \
rpmal.h rpmds.h rpmfi.h rpmgi.h rpmps.h rpmsx.h rpmte.h rpmts.h \
stringbuf.h
usrlibdir = $(libdir)
usrlib_LTLIBRARIES = librpm.la
librpm_la_SOURCES = \
cpio.c cpio.h depends.c formats.c fs.c fsm.c fsm.h getdate.c \
idtx.c manifest.c manifest.h misc.c package.c \
poptALL.c poptI.c poptQV.c psm.c psm.h query.c \
rpmal.c rpmchecksig.c rpmds.c rpmfi.c rpmgi.c rpminstall.c \
rpmlead.c rpmlead.h rpmlibprov.c rpmps.c rpmrc.c rpmsx.c rpmte.c rpmts.c \
rpmvercmp.c signature.c signature.h stringbuf.c transaction.c \
verify.c rpmlock.c rpmlock.h
librpm_la_LDFLAGS = -release 4.4 \
$(top_builddir)/rpmdb/librpmdb.la \
$(top_builddir)/rpmio/librpmio.la \
2007-09-02 14:17:16 +08:00
@WITH_BEECRYPT_LIB@ \
@WITH_POPT_LIB@ \
@WITH_SELINUX_LIB@ \
@LIBINTL@
getdate.c: getdate.y
@echo expect 10 shift/reduce conflicts
$(YACC) $(srcdir)/getdate.y
-@if test -f y.tab.c; then \
{ echo "/*@-globstate -statictrans -unqualifiedtrans -noparams @*/";\
echo "/*@-retvalint -usedef -varuse -nullderef -nullassign @*/";\
echo "/*@-readonlytrans -modunconnomods -compdef -noeffectuncon @*/";\
echo "/*@-globs -evalorderuncon -modobserveruncon -modnomods @*/";\
echo "/*@unused@*/";\
sed -e 's,y.tab.c,getdate.c,' y.tab.c \
-e 's,^YYSTYPE ,static &,' \
-e 's,^short ,static &,' \
-e 's,^const short ,static &,' \
-e 's,^int yydebug,/*@unused@*/ static &,' \
-e 's,^int ,static &,' ;\
echo "/*@=globs =evalorderuncon =modobserveruncon =modnomods @*/";\
echo "/*@=readonlytrans =modunconnomods =compdef =noeffectuncon @*/";\
echo "/*@=retvalint =usedef =varuse =nullderef =nullassign @*/";\
echo "/*@=globstate =statictrans =unqualifiedtrans =noparams @*/";\
} > getdate.c ;\
rm -f y.tab.c; \
else \
if test -f getdate.tab.c ; then \
mv getdate.tab.c getdate.c ; \
else \
echo '*** Unable to create getdate.c' ;\
fi ;\
fi
2007-09-03 16:17:40 +08:00
BUILT_SOURCES = getdate.c
if SELINUX
check_PROGRAMS += setfiles
setfiles_SOURCES = setfiles.c
2007-08-27 21:08:43 +08:00
# setfiles_LDFLAGS = @LDFLAGS_STATIC@
2007-08-24 12:24:52 +08:00
setfiles_LDADD = @WITH_SELINUX_LIB@ \
../rpmio/librpmio.la \
@WITH_POPT_LIB@
endif
check_PROGRAMS += tds
2007-08-12 12:12:21 +08:00
tds_SOURCES = tds.c
tds_LDADD = librpm.la
check_PROGRAMS += trb
trb_SOURCES = trb.c
#trb_LDFLAGS = @LDFLAGS_STATIC@
trb_LDADD = librpm.la
check_PROGRAMS += tthread
tthread_SOURCES = tthread.c
tthread_LDFLAGS =
tthread_LDADD = librpm.la @WITH_LIBELF_LIB@
check_PROGRAMS += tsystem
tsystem_SOURCES = tsystem.c
tsystem_LDFLAGS =
tsystem_LDADD = ../rpmio/librpmio.la @WITH_POPT_LIB@
check_PROGRAMS += tre
tre_SOURCES = tre.c
tre_LDFLAGS =
2007-08-24 12:24:52 +08:00
tre_LDADD = librpm.la @WITH_SELINUX_LIB@
check_PROGRAMS += tcpu
tcpu_SOURCES = tcpu.c
# tcpu_LDFLAGS = @LDFLAGS_STATIC@
tcpu_LDADD = librpm.la
check_PROGRAMS += tplatform
tplatform_SOURCES = tplatform.c
# tplatform_LDFLAGS = @LDFLAGS_STATIC@
tplatform_LDADD = librpm.la
check_PROGRAMS += tgi
tgi_SOURCES = tgi.c
# tgi_LDFLAGS = @LDFLAGS_STATIC@
tgi_LDADD = librpm.la
check_PROGRAMS += tufdio
tufdio_SOURCES = tufdio.c
# tgi_LDFLAGS = @LDFLAGS_STATIC@
tufdio_LDADD = librpm.la