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 =
|
|
|
|
|
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
|
|
|
|
2002-12-02 05:34:06 +08:00
|
|
|
usrlibdir = $(libdir)@MARK64@
|
|
|
|
usrlib_LTLIBRARIES = librpmbuild.la
|
1999-01-23 01:22:17 +08:00
|
|
|
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
|
2002-12-15 05:39:19 +08:00
|
|
|
librpmbuild_la_LDFLAGS = -release @VERSION@ \
|
|
|
|
$(top_builddir)/lib/librpm.la \
|
|
|
|
$(top_builddir)/rpmdb/librpmdb.la \
|
|
|
|
$(top_builddir)/rpmio/librpmio.la \
|
|
|
|
@WITH_LIBELF_LIB@
|
2002-11-27 06:44:47 +08:00
|
|
|
|
|
|
|
rpmfile.h:
|
|
|
|
@ln -sf $(top_builddir)/file/file.h $@
|
|
|
|
|
2002-12-03 10:57:02 +08:00
|
|
|
files.c rpmfc.c: rpmfile.h
|
2002-11-30 05:35:53 +08:00
|
|
|
|
2002-11-27 06:44:47 +08:00
|
|
|
clean-local:
|
2002-12-02 02:03:22 +08:00
|
|
|
rm -f *.o rpmfile.h # .created $(FILELOBJS)
|
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}
|