~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to rpmio/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for rpm library.
 
2
 
 
3
AUTOMAKE_OPTIONS = 1.4 foreign
 
4
 
 
5
EXTRA_DIST = tdigest.c tficl.c tkey.c trpmio.c
 
6
 
 
7
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/build -I$(top_srcdir)/lib \
 
8
        -I$(top_srcdir)/popt @INCPATH@
 
9
 
 
10
pkgincdir = $(pkgincludedir)
 
11
pkginc_HEADERS = \
 
12
        rpmio.h rpmurl.h rpmmacro.h rpmlog.h rpmmessages.h rpmerr.h \
 
13
        ugid.h
 
14
noinst_HEADERS = base64.h rpmio_internal.h
 
15
 
 
16
lib_LTLIBRARIES = librpmio.la
 
17
librpmio_la_SOURCES = rpmrpc.c rpmio.c url.c macro.c \
 
18
        base64.c digest.c strcasecmp.c stubs.c \
 
19
        ugid.c rpmmalloc.c rpmlog.c
 
20
librpmio_la_LDFLAGS = -release @VERSION@
 
21
 
 
22
# XXX Add internal libtool dependence
 
23
install-data-local:
 
24
        @cd $(DESTDIR)/$(libdir) && \
 
25
        sed -e "s|^dependency_libs='|& -lpopt|" < librpmio.la > .librpmio.la && \
 
26
        mv .librpmio.la librpmio.la
 
27
 
 
28
.PHONY: sources
 
29
sources:
 
30
        @echo $(librpmio_la_SOURCES:%=rpmio/%)
 
31
 
 
32
.PHONY: lclint
 
33
lclint:
 
34
        lclint $(DEFS) $(INCLUDES) $(librpmio_la_SOURCES)
 
35
 
 
36
trpmio.o: trpmio.c
 
37
 
 
38
trpmio: librpmio.la trpmio.o
 
39
        $(LINK) -o $@ trpmio.o librpmio.la $(top_builddir)/popt/libpopt.la
 
40
 
 
41
tkey.o: tkey.c
 
42
tkey: librpmio.la tkey.o
 
43
        $(LINK) -o $@ tkey.o librpmio.la $(top_builddir)/popt/libpopt.la
 
44
 
 
45
tdigest.o: tdigest.c
 
46
tdigest: librpmio.la tdigest.o
 
47
        $(LINK) @LDFLAGS_STATIC@ -o $@ tdigest.o librpmio.la $(top_builddir)/popt/libpopt.la
 
48
 
 
49
tficl.o: tficl.c
 
50
        $(COMPILE) -I/usr/include/ficl -o $@ -c tficl.c 
 
51
 
 
52
tficl: tficl.o
 
53
        $(LINK) -o $@ tficl.o -lficl