1998-10-08 18:40:27 +08:00
|
|
|
# Makefile for rpm library.
|
|
|
|
|
2007-11-22 23:17:20 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/rpm
|
2007-11-02 16:02:40 +08:00
|
|
|
AM_CPPFLAGS += @WITH_NSS_INCLUDE@
|
2007-10-17 21:08:01 +08:00
|
|
|
AM_CPPFLAGS += @WITH_POPT_INCLUDE@
|
|
|
|
AM_CPPFLAGS += -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}\""
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-08-09 15:13:05 +08:00
|
|
|
EXTRA_DIST = getdate.y
|
2004-10-10 13:30:48 +08:00
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS =
|
2000-03-23 23:49:50 +08:00
|
|
|
|
2007-07-25 22:10:57 +08:00
|
|
|
usrlibdir = $(libdir)
|
2002-12-02 05:34:06 +08:00
|
|
|
usrlib_LTLIBRARIES = librpm.la
|
1999-01-23 02:42:31 +08:00
|
|
|
librpm_la_SOURCES = \
|
2007-08-10 20:10:52 +08:00
|
|
|
cpio.c cpio.h depends.c formats.c fs.c fsm.c fsm.h getdate.c \
|
2007-08-30 20:49:31 +08:00
|
|
|
idtx.c manifest.c manifest.h misc.c package.c \
|
2007-08-10 20:10:52 +08:00
|
|
|
poptALL.c poptI.c poptQV.c psm.c psm.h query.c \
|
2007-10-29 20:34:53 +08:00
|
|
|
rpmal.c rpmchecksig.c rpmds.c rpmfi.c rpmgi.c rpmgi_internal.h \
|
2007-10-31 18:08:01 +08:00
|
|
|
rpminstall.c rpmtsscore.h rpmts_internal.h \
|
2007-09-03 20:20:31 +08:00
|
|
|
rpmlead.c rpmlead.h rpmlibprov.c rpmps.c rpmrc.c rpmte.c rpmts.c \
|
2007-11-23 14:11:42 +08:00
|
|
|
rpmvercmp.c signature.c signature.h transaction.c \
|
2007-09-17 20:15:03 +08:00
|
|
|
verify.c rpmlock.c rpmlock.h misc.h
|
2007-09-11 08:33:56 +08:00
|
|
|
librpm_la_LDFLAGS = -release 4.4
|
|
|
|
|
|
|
|
librpm_la_LIBADD = \
|
2002-12-15 05:39:19 +08:00
|
|
|
$(top_builddir)/rpmdb/librpmdb.la \
|
|
|
|
$(top_builddir)/rpmio/librpmio.la \
|
2007-11-02 16:02:40 +08:00
|
|
|
@WITH_NSS_LIB@ \
|
2005-02-17 10:36:37 +08:00
|
|
|
@WITH_POPT_LIB@ \
|
2005-01-18 07:58:09 +08:00
|
|
|
@WITH_SELINUX_LIB@ \
|
2007-07-24 19:21:32 +08:00
|
|
|
@LIBINTL@
|
2000-06-08 07:25:41 +08:00
|
|
|
|
2001-03-05 01:31:48 +08:00
|
|
|
getdate.c: getdate.y
|
|
|
|
@echo expect 10 shift/reduce conflicts
|
|
|
|
$(YACC) $(srcdir)/getdate.y
|
|
|
|
-@if test -f y.tab.c; then \
|
2007-09-12 15:05:35 +08:00
|
|
|
{ sed -e 's,y.tab.c,getdate.c,' y.tab.c \
|
2001-05-07 03:17:14 +08:00
|
|
|
-e 's,^YYSTYPE ,static &,' \
|
|
|
|
-e 's,^short ,static &,' \
|
|
|
|
-e 's,^const short ,static &,' \
|
|
|
|
-e 's,^int yydebug,/*@unused@*/ static &,' \
|
|
|
|
-e 's,^int ,static &,' ;\
|
2001-04-30 06:43:01 +08:00
|
|
|
} > getdate.c ;\
|
|
|
|
rm -f y.tab.c; \
|
2001-03-05 01:31:48 +08:00
|
|
|
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
|
1999-04-21 03:17:23 +08:00
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tds
|
2007-08-12 12:12:21 +08:00
|
|
|
tds_SOURCES = tds.c
|
|
|
|
tds_LDADD = librpm.la
|
2007-08-09 15:13:05 +08:00
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += trb
|
2007-08-09 15:13:05 +08:00
|
|
|
trb_SOURCES = trb.c
|
|
|
|
trb_LDADD = librpm.la
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tthread
|
2007-08-09 15:13:05 +08:00
|
|
|
tthread_SOURCES = tthread.c
|
|
|
|
tthread_LDADD = librpm.la @WITH_LIBELF_LIB@
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tsystem
|
2007-08-09 15:13:05 +08:00
|
|
|
tsystem_SOURCES = tsystem.c
|
|
|
|
tsystem_LDADD = ../rpmio/librpmio.la @WITH_POPT_LIB@
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tcpu
|
2007-08-09 15:13:05 +08:00
|
|
|
tcpu_SOURCES = tcpu.c
|
|
|
|
tcpu_LDADD = librpm.la
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tplatform
|
2007-08-09 15:13:05 +08:00
|
|
|
tplatform_SOURCES = tplatform.c
|
|
|
|
tplatform_LDADD = librpm.la
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS += tgi
|
2004-10-18 09:08:56 +08:00
|
|
|
tgi_SOURCES = tgi.c
|
2004-10-10 13:30:48 +08:00
|
|
|
tgi_LDADD = librpm.la
|
2007-08-09 15:13:05 +08:00
|
|
|
|