mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
7bd2ff6851
This change allows us to use all autoconf specified paths, most notably $(localstatedir). It is quite a change and touches a lot of files, as all references to the DB and cache were done with the ROOTDIR as a prefix. * add --lock command-line option to pacman to specify the location of the lockfile (this can now be specified at configure time by setting the $localstatedir path). * Rip quite a few settings out of configure.ac as they are now picked by setting the paths during configure or make. * Fix bug with /tmp fallback for sync downloads not working correctly (related to root location, now the system tmp dir is used). * Simplified the parameters to some libalpm functions, and added get/set for the new lockfile option. * Renamed several of the DEFS to names without the PM_ prefix. Signed-off-by: Dan McGee <dan@archlinux.org>
59 lines
1.1 KiB
Makefile
59 lines
1.1 KiB
Makefile
AUTOMAKE_OPTIONS = gnu
|
|
|
|
SUBDIRS = po
|
|
|
|
# paths set at make time
|
|
lockfile = ${localstatedir}/run/pacman.lck
|
|
dbpath = ${localstatedir}/lib/pacman/
|
|
cachedir = ${localstatedir}/cache/pacman/pkg/
|
|
|
|
lib_LTLIBRARIES = libalpm.la
|
|
include_HEADERS = alpm_list.h alpm.h
|
|
|
|
DEFS = -DLOCALEDIR=\"@localedir@\" \
|
|
-DLOCKFILE=\"$(lockfile)\" \
|
|
-DDBPATH=\"$(dbpath)\" \
|
|
-DCACHEDIR=\"$(cachedir)\" \
|
|
@DEFS@
|
|
|
|
AM_CFLAGS = -fvisibility=hidden -pedantic -D_GNU_SOURCE
|
|
|
|
EXTRA_DIST = Doxyfile
|
|
|
|
libalpm_la_SOURCES = \
|
|
add.h add.c \
|
|
alpm.h alpm.c \
|
|
alpm_list.h alpm_list.c \
|
|
backup.h backup.c \
|
|
be_files.c \
|
|
cache.h cache.c \
|
|
conflict.h conflict.c \
|
|
db.h db.c \
|
|
deps.h deps.c \
|
|
error.h error.c \
|
|
group.h group.c \
|
|
handle.h handle.c \
|
|
log.h log.c \
|
|
md5.h md5.c \
|
|
md5driver.c \
|
|
package.h package.c \
|
|
provide.h provide.c \
|
|
remove.h remove.c \
|
|
server.h server.c \
|
|
sha1.h sha1.c \
|
|
sync.h sync.c \
|
|
trans.h trans.c \
|
|
util.h util.c \
|
|
versioncmp.h versioncmp.c
|
|
|
|
libalpm_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_INFO)
|
|
libalpm_la_LIBADD = -larchive -ldownload -lm
|
|
|
|
if HAS_DOXYGEN
|
|
all: doxygen.in
|
|
|
|
doxygen.in:
|
|
doxygen $(srcdir)/Doxyfile
|
|
|
|
endif
|