1998-10-08 18:40:27 +08:00
|
|
|
# Makefile for rpmbuild library.
|
|
|
|
|
1999-01-20 07:54:30 +08:00
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2002-11-27 06:44:47 +08:00
|
|
|
LINT = splint
|
|
|
|
|
2002-05-17 00:55:21 +08:00
|
|
|
INCLUDES = -I. \
|
2002-07-22 06:06:19 +08:00
|
|
|
-I$(top_srcdir) \
|
2001-05-08 08:03:14 +08:00
|
|
|
-I$(top_srcdir)/lib \
|
2001-10-19 00:39:54 +08:00
|
|
|
-I$(top_srcdir)/rpmdb \
|
2001-05-08 08:03:14 +08:00
|
|
|
-I$(top_srcdir)/rpmio \
|
|
|
|
-I$(top_srcdir)/popt \
|
2002-10-16 02:44:16 +08:00
|
|
|
@WITH_LIBELF_INCLUDE@ \
|
2001-05-08 08:03:14 +08:00
|
|
|
@INCPATH@
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2000-06-13 15:15:15 +08:00
|
|
|
LIBS =
|
|
|
|
|
2002-11-27 06:44:47 +08:00
|
|
|
FILELOBJS = $(shell cat $(top_builddir)/file/listobjs)
|
|
|
|
|
1999-01-27 02:08:14 +08:00
|
|
|
pkgincdir = $(pkgincludedir)
|
2002-11-27 06:44:47 +08:00
|
|
|
pkginc_HEADERS = argv.h rpmbuild.h rpmfc.h rpmfile.h rpmspec.h
|
|
|
|
noinst_HEADERS = buildio.h
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-01-23 01:22:17 +08:00
|
|
|
lib_LTLIBRARIES = librpmbuild.la
|
|
|
|
librpmbuild_la_SOURCES = \
|
2002-10-13 22:39:21 +08:00
|
|
|
argv.c build.c expression.c files.c misc.c names.c pack.c \
|
1998-10-08 18:40:27 +08:00
|
|
|
parseBuildInstallClean.c parseChangelog.c parseDescription.c \
|
|
|
|
parseFiles.c parsePreamble.c parsePrep.c parseReqs.c parseScript.c \
|
2002-10-14 22:52:45 +08:00
|
|
|
parseSpec.c poptBT.c reqprov.c rpmfc.c spec.c
|
2001-07-11 01:59:11 +08:00
|
|
|
librpmbuild_la_LDFLAGS = -release @VERSION@
|
2002-11-27 06:44:47 +08:00
|
|
|
librpmbuild_la_LIBADD = $(FILELOBJS)
|
|
|
|
librpmbuild_la_DEPENDENCIES = .created
|
|
|
|
|
|
|
|
rpmfile.h:
|
|
|
|
@ln -sf $(top_builddir)/file/file.h $@
|
|
|
|
|
|
|
|
$(top_builddir)/file/listobjs:
|
|
|
|
${MAKE} -C $(top_builddir)/file listobjs
|
|
|
|
|
|
|
|
.created: rpmfile.h $(top_builddir)/file/listobjs
|
|
|
|
for lo in $(FILELOBJS); do \
|
|
|
|
[ -f $$lo ] || $(LN_S) $(top_builddir)/file/$$lo $$lo ; \
|
|
|
|
done
|
|
|
|
touch $@
|
|
|
|
|
2002-11-30 05:35:53 +08:00
|
|
|
rpmfc.c: rpmfile.h
|
|
|
|
|
2002-11-27 06:44:47 +08:00
|
|
|
clean-local:
|
|
|
|
rm -f $(FILELOBJS) *.o .created rpmfile.h
|
2000-06-08 07:25:41 +08:00
|
|
|
|
2000-06-13 15:15:15 +08:00
|
|
|
# XXX Add internal libtool dependence
|
2000-06-08 07:25:41 +08:00
|
|
|
install-data-local:
|
2000-06-08 07:55:10 +08:00
|
|
|
@cd $(DESTDIR)/$(libdir) && \
|
2002-07-21 05:07:31 +08:00
|
|
|
sed -e "s|^dependency_libs='|& -lrpm-@VERSION@|" < librpmbuild.la > .librpmbuild.la && \
|
2000-06-13 15:15:15 +08:00
|
|
|
mv .librpmbuild.la librpmbuild.la
|
2000-06-08 07:25:41 +08:00
|
|
|
|
2002-06-26 02:43:40 +08:00
|
|
|
#BUILT_SOURCES = rpmbuild.lcd
|
2002-06-23 02:51:56 +08:00
|
|
|
|
|
|
|
rpmbuild.lcd: Makefile.am ${librpmbuild_la_SOURCES} ${pkginc_HEADERS} ${noinst_HEADERS}
|
|
|
|
-lclint ${DEFS} ${INCLUDES} ${librpmbuild_la_SOURCES} -dump $@ 2>/dev/null
|
|
|
|
|
2001-05-04 05:00:18 +08:00
|
|
|
.PHONY: sources
|
|
|
|
sources:
|
|
|
|
@echo $(librpmbuild_la_SOURCES:%=build/%)
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2002-11-27 06:44:47 +08:00
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
$(LINT) ${DEFS} ${INCLUDES} ${librpmbuild_la_SOURCES}
|