2000-06-08 07:25:41 +08:00
|
|
|
# Makefile for rpm library.
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
|
|
|
2002-12-01 06:15:29 +08:00
|
|
|
LINT = splint
|
|
|
|
|
2002-02-28 23:48:39 +08:00
|
|
|
EXTRA_DIST = tdigest.c tdir.c tficl.c tfts.c tglob.c tinv.c tkey.c trpmio.c
|
2001-07-24 00:02:27 +08:00
|
|
|
|
2003-03-25 08:22:23 +08:00
|
|
|
EXTRA_PROGRAMS = tdigest tdir tfts tglob tinv tkey tring trpmio tsw dumpasn1
|
2001-09-29 09:27:22 +08:00
|
|
|
|
2002-07-22 06:06:19 +08:00
|
|
|
INCLUDES = -I. \
|
|
|
|
-I$(top_srcdir) \
|
2001-11-23 23:49:11 +08:00
|
|
|
-I$(top_srcdir)/popt \
|
|
|
|
@INCPATH@
|
2000-06-08 07:25:41 +08:00
|
|
|
|
|
|
|
pkgincdir = $(pkgincludedir)
|
2000-12-03 05:53:44 +08:00
|
|
|
pkginc_HEADERS = \
|
2002-12-25 01:06:35 +08:00
|
|
|
argv.h fts.h \
|
2002-07-21 05:07:31 +08:00
|
|
|
rpmio.h rpmurl.h rpmmacro.h rpmlog.h rpmmessages.h rpmerr.h rpmpgp.h \
|
2003-03-25 01:25:42 +08:00
|
|
|
rpmsq.h rpmsw.h ugid.h
|
2002-07-21 05:07:31 +08:00
|
|
|
noinst_HEADERS = rpmio_internal.h
|
2001-09-25 22:03:27 +08:00
|
|
|
|
2001-09-25 11:03:23 +08:00
|
|
|
BEECRYPTLOBJS = $(shell cat $(top_builddir)/beecrypt/listobjs)
|
|
|
|
|
2003-03-21 07:42:05 +08:00
|
|
|
LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
|
2003-03-07 06:50:04 +08:00
|
|
|
|
2002-12-02 05:34:06 +08:00
|
|
|
usrlibdir = $(libdir)@MARK64@
|
|
|
|
usrlib_LTLIBRARIES = librpmio.la
|
2002-12-25 01:06:35 +08:00
|
|
|
librpmio_la_SOURCES = \
|
|
|
|
argv.c digest.c fts.c macro.c \
|
2002-02-24 05:24:37 +08:00
|
|
|
rpmio.c rpmlog.c rpmmalloc.c \
|
2003-03-25 01:25:42 +08:00
|
|
|
rpmpgp.c rpmrpc.c rpmsq.c rpmsw.c strcasecmp.c stubs.c url.c ugid.c
|
2003-03-21 07:42:05 +08:00
|
|
|
librpmio_la_LDFLAGS = -release @VERSION@ $(LDFLAGS) \
|
2002-12-15 05:39:19 +08:00
|
|
|
$(top_builddir)/file/libfmagic.la \
|
|
|
|
@WITH_ZLIB_LIB@ \
|
|
|
|
-lrt -lpthread
|
2001-09-25 11:03:23 +08:00
|
|
|
librpmio_la_LIBADD = $(BEECRYPTLOBJS)
|
|
|
|
librpmio_la_DEPENDENCIES = .created
|
2000-06-08 07:25:41 +08:00
|
|
|
|
2001-09-25 11:03:23 +08:00
|
|
|
$(top_builddir)/beecrypt/listobjs:
|
2002-07-14 03:32:42 +08:00
|
|
|
${MAKE} -C $(top_builddir)/beecrypt listobjs
|
2001-09-25 11:03:23 +08:00
|
|
|
|
|
|
|
.created: $(top_builddir)/beecrypt/listobjs
|
|
|
|
for lo in $(BEECRYPTLOBJS); do \
|
|
|
|
[ -f $$lo ] || $(LN_S) $(top_builddir)/beecrypt/$$lo $$lo ; \
|
|
|
|
done
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -f $(BEECRYPTLOBJS) *.o .created
|
|
|
|
|
2002-06-26 02:43:40 +08:00
|
|
|
#BUILT_SOURCES = rpmio.lcd
|
2002-06-23 02:51:56 +08:00
|
|
|
|
|
|
|
rpmio.lcd: Makefile.am ${librpmio_la_SOURCES} ${pkginc_HEADERS} ${noinst_HEADERS}
|
|
|
|
-lclint -load ../beecrypt/beecrypt.lcd $(DEFS) $(INCLUDES) $(librpmio_la_SOURCES) -dump $@ 2>/dev/null
|
|
|
|
|
|
|
|
.PHONY: sources
|
|
|
|
sources:
|
|
|
|
@echo $(librpmio_la_SOURCES:%=rpmio/%)
|
|
|
|
|
2002-12-01 06:15:29 +08:00
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
$(LINT) $(DEFS) $(INCLUDES) $(librpmio_la_SOURCES)
|
2002-06-23 02:51:56 +08:00
|
|
|
|
2001-09-29 09:27:22 +08:00
|
|
|
tdigest_SOURCES = tdigest.c
|
2003-03-29 06:11:06 +08:00
|
|
|
tdigest_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la -lgcrypt
|
2001-09-29 09:27:22 +08:00
|
|
|
|
2002-02-24 05:24:37 +08:00
|
|
|
tdir_SOURCES = tdir.c
|
|
|
|
tdir_LDFLAGS = -all-static
|
|
|
|
tdir_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
|
|
|
|
2002-02-25 04:44:36 +08:00
|
|
|
tfts_SOURCES = tfts.c
|
|
|
|
tfts_LDFLAGS = -all-static
|
|
|
|
tfts_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
|
|
|
|
2002-02-24 05:24:37 +08:00
|
|
|
tglob_SOURCES = tglob.c
|
|
|
|
tglob_LDFLAGS = -all-static
|
|
|
|
tglob_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
2001-09-29 09:27:22 +08:00
|
|
|
|
2002-02-28 23:48:39 +08:00
|
|
|
tinv_SOURCES = tinv.c
|
|
|
|
tinv_LDFLAGS = -all-static
|
|
|
|
tinv_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
|
|
|
|
2001-09-29 09:27:22 +08:00
|
|
|
tkey_SOURCES = tkey.c
|
2001-10-05 13:10:12 +08:00
|
|
|
tkey_LDFLAGS = -all-static
|
2002-02-11 05:13:52 +08:00
|
|
|
tkey_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
2001-09-29 09:27:22 +08:00
|
|
|
|
2001-10-21 04:28:56 +08:00
|
|
|
tring_SOURCES = tring.c
|
|
|
|
tring_LDFLAGS = -all-static
|
2002-02-11 05:13:52 +08:00
|
|
|
tring_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
2001-10-21 04:28:56 +08:00
|
|
|
|
2002-02-28 23:48:39 +08:00
|
|
|
trpmio_SOURCES = trpmio.c
|
|
|
|
trpmio_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
|
|
|
|
|
2003-03-25 08:22:23 +08:00
|
|
|
tsw_SOURCES = tsw.c
|
|
|
|
tsw_LDFLAGS = librpmio.la
|
|
|
|
|
2001-10-02 01:40:12 +08:00
|
|
|
dumpasn1_SOURCES = dumpasn1.c
|
|
|
|
|
2001-04-21 14:02:09 +08:00
|
|
|
tficl.o: tficl.c
|
|
|
|
$(COMPILE) -I/usr/include/ficl -o $@ -c tficl.c
|
|
|
|
|
|
|
|
tficl: tficl.o
|
|
|
|
$(LINK) -o $@ tficl.o -lficl
|