1 # Makefile for rpm library.
7 -I$(top_srcdir)/build \
8 -I$(top_srcdir)/rpmdb \
9 -I$(top_srcdir)/rpmio \
10 @WITH_BEECRYPT_INCLUDE@ \
12 -I$(top_srcdir)/misc \
15 EXTRA_DIST = getdate.y
19 pkgincdir = $(pkgincludedir)
21 misc.h rpmcli.h rpmlib.h \
22 rpmal.h rpmds.h rpmfi.h rpmgi.h rpmps.h rpmsx.h rpmte.h rpmts.h \
28 usrlib_LTLIBRARIES = librpm.la
30 cpio.c cpio.h depends.c formats.c fs.c fsm.c fsm.h getdate.c \
31 manifest.c manifest.h misc.c package.c \
32 poptALL.c poptI.c poptQV.c psm.c psm.h query.c \
33 rpmal.c rpmchecksig.c rpmds.c rpmfi.c rpmgi.c rpminstall.c \
34 rpmlead.c rpmlead.h rpmlibprov.c rpmps.c rpmrc.c rpmsx.c rpmte.c rpmts.c \
35 rpmvercmp.c signature.c signature.h stringbuf.c transaction.c \
36 verify.c rpmlock.c rpmlock.h
37 librpm_la_LDFLAGS = -release 4.4 $(LDFLAGS) \
38 $(top_builddir)/rpmdb/librpmdb.la \
39 $(top_builddir)/rpmio/librpmio.la \
45 @echo expect 10 shift/reduce conflicts
46 $(YACC) $(srcdir)/getdate.y
47 -@if test -f y.tab.c; then \
48 { echo "/*@-globstate -statictrans -unqualifiedtrans -noparams @*/";\
49 echo "/*@-retvalint -usedef -varuse -nullderef -nullassign @*/";\
50 echo "/*@-readonlytrans -modunconnomods -compdef -noeffectuncon @*/";\
51 echo "/*@-globs -evalorderuncon -modobserveruncon -modnomods @*/";\
53 sed -e 's,y.tab.c,getdate.c,' y.tab.c \
54 -e 's,^YYSTYPE ,static &,' \
55 -e 's,^short ,static &,' \
56 -e 's,^const short ,static &,' \
57 -e 's,^int yydebug,/*@unused@*/ static &,' \
58 -e 's,^int ,static &,' ;\
59 echo "/*@=globs =evalorderuncon =modobserveruncon =modnomods @*/";\
60 echo "/*@=readonlytrans =modunconnomods =compdef =noeffectuncon @*/";\
61 echo "/*@=retvalint =usedef =varuse =nullderef =nullassign @*/";\
62 echo "/*@=globstate =statictrans =unqualifiedtrans =noparams @*/";\
66 if test -f getdate.tab.c ; then \
67 mv getdate.tab.c getdate.c ; \
69 echo '*** Unable to create getdate.c' ;\
73 BUILT_SOURCES = getdate.c # rpmlib.lcd
75 rpmlib.lcd: Makefile.am ${librpm_la_SOURCES} ${pkginc_HEADERS}
76 -lclint ${DEFS} ${AM_CPPFLAGS} ${librpm_la_SOURCES} -dump $@ 2>/dev/null
80 @echo $(librpm_la_SOURCES:%=lib/%)
84 $(LINT) $(DEFS) $(AM_CPPFLAGS) $(librpm_la_SOURCES)
87 EXTRA_PROGRAMS += setfiles
88 setfiles_SOURCES = setfiles.c
89 setfiles_LDFLAGS = @LDFLAGS_STATIC@
90 setfiles_LDADD = -lselinux \
91 ../rpmio/librpmio.la \
101 #trb_LDFLAGS = @LDFLAGS_STATIC@
102 trb_LDADD = librpm.la
104 EXTRA_PROGRAMS += tthread
105 tthread_SOURCES = tthread.c
107 tthread_LDADD = librpm.la @WITH_LIBELF_LIB@
109 EXTRA_PROGRAMS += tsystem
110 tsystem_SOURCES = tsystem.c
112 tsystem_LDADD = ../rpmio/librpmio.la @WITH_POPT_LIB@
114 EXTRA_PROGRAMS += tre
117 tre_LDADD = librpm.la -lselinux
119 EXTRA_PROGRAMS += tcpu
120 tcpu_SOURCES = tcpu.c
121 # tcpu_LDFLAGS = @LDFLAGS_STATIC@
122 tcpu_LDADD = librpm.la
124 EXTRA_PROGRAMS += tplatform
125 tplatform_SOURCES = tplatform.c
126 # tplatform_LDFLAGS = @LDFLAGS_STATIC@
127 tplatform_LDADD = librpm.la
129 EXTRA_PROGRAMS += tgi
131 # tgi_LDFLAGS = @LDFLAGS_STATIC@
132 tgi_LDADD = librpm.la
134 CLEANFILES = $(EXTRA_PROGRAMS)