Makefile 377 B

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