mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-27 01:44:26 +00:00
* Respect user's CFLAGS/CPPFLAGS/LDFLAGS * Respect $(MAKE) * Remove CPPFLAGS from link rules Note: for in-tree built test binaries, where we build --static, we do not apply LDFLAGS: we want to limit external dependencies in general; and users' LDFLAGS have a strong tendency to conflict with --static for linking. Work in collaboration with David Seifert (ie, he wrote most of it). Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
23 lines
333 B
Makefile
23 lines
333 B
Makefile
topdir=$(shell pwd)/..
|
|
include ../Make.Rules
|
|
|
|
test: exit
|
|
rm -f interactive
|
|
./test-kernel.sh
|
|
|
|
shell: exit
|
|
touch interactive
|
|
./test-kernel.sh
|
|
|
|
exit: exit.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ --static
|
|
|
|
all:
|
|
@echo cd to kdebug to test a kernel build
|
|
|
|
install:
|
|
|
|
clean:
|
|
$(LOCALCLEAN)
|
|
rm -f fs.conf initramfs.img exit interactive
|