mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-28 02:14:50 +00:00
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
#
|
|
# $Id: Make.Rules,v 1.5 1999/11/18 06:06:02 morgan Exp $
|
|
#
|
|
|
|
#
|
|
## Optional prefixes:
|
|
#
|
|
|
|
# common 'packaging' directoty
|
|
|
|
FAKEROOT=
|
|
|
|
# Autoconf-style prefixes are activated when $(prefix) is defined.
|
|
# Otherwise binaries and libraraies are installed in /{lib,sbin}/,
|
|
# header files in /usr/include/ and documentation in /usr/man/man?/.
|
|
|
|
ifndef lib
|
|
lib=lib
|
|
endif
|
|
|
|
ifdef prefix
|
|
exec_prefix=$(prefix)
|
|
lib_prefix=$(exec_prefix)
|
|
inc_prefix=$(lib_prefix)
|
|
man_prefix=$(prefix)/share
|
|
else
|
|
prefix=/usr
|
|
exec_prefix=
|
|
lib_prefix=$(exec_prefix)
|
|
inc_prefix=$(prefix)
|
|
man_prefix=$(prefix)/share
|
|
endif
|
|
|
|
# Target directories
|
|
|
|
MANDIR=$(FAKEROOT)$(man_prefix)/man
|
|
SBINDIR=$(FAKEROOT)$(exec_prefix)/sbin
|
|
INCDIR=$(FAKEROOT)$(inc_prefix)/include
|
|
LIBDIR=$(FAKEROOT)$(lib_prefix)/$(lib)
|
|
|
|
# common defines for libcap
|
|
LIBTITLE=libcap
|
|
VERSION=1
|
|
MINOR=99
|
|
#
|
|
|
|
# Compilation specifics
|
|
|
|
CC=gcc
|
|
COPTFLAGS=-O2
|
|
DEBUG=-O2 -g #-DDEBUG
|
|
WARNINGS=-fPIC -D_POSIX_SOURCE -Wall -Wwrite-strings \
|
|
-Wpointer-arith -Wcast-qual -Wcast-align \
|
|
-Wstrict-prototypes -Wmissing-prototypes \
|
|
-Wnested-externs -Winline -Wshadow
|
|
LD=ld
|
|
LDFLAGS=-s #-g
|
|
|
|
KERNEL_HEADERS = /usr/include
|
|
SYSTEM_HEADERS = /usr/include
|
|
IPATH += -I$(topdir)/libcap/include
|
|
INCS=$(topdir)/libcap/include/sys/capability.h
|
|
LIBS=-L$(topdir)/libcap -lcap
|
|
CFLAGS=-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH)
|
|
|
|
# Global cleanup stuff
|
|
|
|
LOCALCLEAN=rm -f *~ core
|
|
DISTCLEAN=@find . \( -name '*.orig' -o -name '*.rej' \) | xargs rm -f
|
|
|
|
# Flags to pass down recursive makes
|
|
|
|
MAKE_DEFS = CC='$(CC)' CFLAGS='$(CFLAGS)' \
|
|
LD='$(LD)' LIBS='$(LIBS)' LDFLAGS='$(LDFLAGS)' \
|
|
VERSION='$(VERSION)' MINOR='$(MINOR)' \
|
|
LIBDIR='$(LIBDIR)' INCDIR='$(INCDIR)' \
|
|
SBINDIR='$(SBINDIR)' MANDIR='$(MANDIR)'
|