libcap/kdebug/Makefile
David Seifert 2762c2c1a8 Canonicalize build system
* 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>
2021-09-01 19:17:05 -07:00

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