mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-30 23:58:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # Makefile for net selftests
 | |
| 
 | |
| CC = $(CROSS_COMPILE)gcc
 | |
| CFLAGS = -Wall -O2 -g
 | |
| 
 | |
| CFLAGS += -I../../../../usr/include/
 | |
| 
 | |
| NET_PROGS = socket psock_fanout psock_tpacket
 | |
| 
 | |
| all: $(NET_PROGS)
 | |
| %: %.c
 | |
| 	$(CC) $(CFLAGS) -o $@ $^
 | |
| 
 | |
| run_tests: all
 | |
| 	@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
 | |
| 	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
 | |
| 	@if /sbin/modprobe test_bpf ; then \
 | |
| 		/sbin/rmmod test_bpf; \
 | |
| 		echo "test_bpf: ok"; \
 | |
| 	else \
 | |
| 		echo "test_bpf: [FAIL]"; \
 | |
| 		exit 1; \
 | |
| 	fi
 | |
| clean:
 | |
| 	$(RM) $(NET_PROGS)
 | 
