Makefile 486 B

1234567891011121314151617181920212223
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # First run: make -C ../../../.. headers_install
  4. CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
  5. LOCAL_HDRS += common.h
  6. src_test := $(wildcard *_test.c)
  7. TEST_GEN_PROGS := $(src_test:.c=)
  8. TEST_GEN_PROGS_EXTENDED := true
  9. # Short targets:
  10. $(TEST_GEN_PROGS): LDLIBS += -lcap
  11. $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
  12. include ../lib.mk
  13. # Targets with $(OUTPUT)/ prefix:
  14. $(TEST_GEN_PROGS): LDLIBS += -lcap
  15. $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static