Makefile 504 B

12345678910111213141516171819202122
  1. # Makefile for net selftests
  2. CFLAGS = -Wall -Wl,--no-as-needed -O2 -g
  3. CFLAGS += -I../../../../usr/include/
  4. NET_PROGS = socket
  5. NET_PROGS += psock_fanout psock_tpacket
  6. NET_PROGS += reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
  7. NET_PROGS += reuseport_dualstack
  8. all: $(NET_PROGS)
  9. reuseport_bpf_numa: LDFLAGS += -lnuma
  10. %: %.c
  11. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  12. TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
  13. TEST_FILES := $(NET_PROGS)
  14. include ../lib.mk
  15. clean:
  16. $(RM) $(NET_PROGS)