69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# Makefile for rpmbuild library.
|
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
|
|
LINT = splint
|
|
|
|
INCLUDES = -I. \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/lib \
|
|
-I$(top_srcdir)/rpmdb \
|
|
-I$(top_srcdir)/rpmio \
|
|
-I$(top_srcdir)/popt \
|
|
@WITH_LIBELF_INCLUDE@ \
|
|
@INCPATH@
|
|
|
|
LIBS =
|
|
|
|
FILELOBJS = $(shell cat $(top_builddir)/file/listobjs)
|
|
|
|
pkgincdir = $(pkgincludedir)
|
|
pkginc_HEADERS = argv.h rpmbuild.h rpmfc.h rpmfile.h rpmspec.h
|
|
noinst_HEADERS = buildio.h
|
|
|
|
lib_LTLIBRARIES = librpmbuild.la
|
|
librpmbuild_la_SOURCES = \
|
|
argv.c build.c expression.c files.c misc.c names.c pack.c \
|
|
parseBuildInstallClean.c parseChangelog.c parseDescription.c \
|
|
parseFiles.c parsePreamble.c parsePrep.c parseReqs.c parseScript.c \
|
|
parseSpec.c poptBT.c reqprov.c rpmfc.c spec.c
|
|
librpmbuild_la_LDFLAGS = -release @VERSION@
|
|
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 $@
|
|
|
|
rpmfc.c: rpmfile.h
|
|
|
|
clean-local:
|
|
rm -f $(FILELOBJS) *.o .created rpmfile.h
|
|
|
|
# XXX Add internal libtool dependence
|
|
install-data-local:
|
|
@cd $(DESTDIR)/$(libdir) && \
|
|
sed -e "s|^dependency_libs='|& -lrpm-@VERSION@|" < librpmbuild.la > .librpmbuild.la && \
|
|
mv .librpmbuild.la librpmbuild.la
|
|
|
|
#BUILT_SOURCES = rpmbuild.lcd
|
|
|
|
rpmbuild.lcd: Makefile.am ${librpmbuild_la_SOURCES} ${pkginc_HEADERS} ${noinst_HEADERS}
|
|
-lclint ${DEFS} ${INCLUDES} ${librpmbuild_la_SOURCES} -dump $@ 2>/dev/null
|
|
|
|
.PHONY: sources
|
|
sources:
|
|
@echo $(librpmbuild_la_SOURCES:%=build/%)
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(LINT) ${DEFS} ${INCLUDES} ${librpmbuild_la_SOURCES}
|