Makefile 599 B

12345678910111213141516171819202122232425262728
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # First run: make -C ../../../.. headers_install
  4. CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
  5. LOCAL_HDRS += $(wildcard *.h)
  6. src_test := $(wildcard *_test.c)
  7. TEST_GEN_PROGS := $(src_test:.c=)
  8. TEST_GEN_PROGS += fs_bench
  9. TEST_GEN_PROGS_EXTENDED := \
  10. true \
  11. sandbox-and-launch \
  12. wait-pipe \
  13. wait-pipe-sandbox
  14. # Short targets:
  15. $(TEST_GEN_PROGS): LDLIBS += -lcap -lpthread
  16. $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
  17. include ../lib.mk
  18. # Targets with $(OUTPUT)/ prefix:
  19. $(TEST_GEN_PROGS): LDLIBS += -lcap -lpthread
  20. $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static