Makefile 317 B

123456789101112131415161718
  1. # Makefile for net-socket selftests
  2. CC = $(CROSS_COMPILE)gcc
  3. CFLAGS = -Wall
  4. CFLAGS += -I../../../../usr/include/
  5. AF_PACKET_PROGS = psock_fanout
  6. all: $(AF_PACKET_PROGS)
  7. %: %.c
  8. $(CC) $(CFLAGS) -o $@ $^
  9. run_tests: all
  10. @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
  11. clean:
  12. $(RM) $(AF_PACKET_PROGS)