~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/lib/raid6/test/Makefile

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /lib/raid6/test/Makefile (Version linux-6.11.5) and /lib/raid6/test/Makefile (Version linux-2.6.32.71)


  1 # SPDX-License-Identifier: GPL-2.0                
  2 #                                                 
  3 # This is a simple Makefile to test some of th    
  4 # from userspace.                                 
  5 #                                                 
  6                                                   
  7 pound := \#                                       
  8                                                   
  9 # Adjust as desired                               
 10 CC       = gcc                                    
 11 OPTFLAGS = -O2                                    
 12 CFLAGS   = -I.. -I ../../../include -g $(OPTFL    
 13 LD       = ld                                     
 14 AWK      = awk -f                                 
 15 AR       = ar                                     
 16 RANLIB   = ranlib                                 
 17 OBJS     = int1.o int2.o int4.o int8.o int16.o    
 18                                                   
 19 ARCH := $(shell uname -m 2>/dev/null | sed -e     
 20 ifeq ($(ARCH),i386)                               
 21         CFLAGS += -DCONFIG_X86_32                 
 22         IS_X86 = yes                              
 23 endif                                             
 24 ifeq ($(ARCH),x86_64)                             
 25         CFLAGS += -DCONFIG_X86_64                 
 26         IS_X86 = yes                              
 27 endif                                             
 28                                                   
 29 ifeq ($(ARCH),arm)                                
 30         CFLAGS += -I../../../arch/arm/include     
 31         HAS_NEON = yes                            
 32 endif                                             
 33 ifeq ($(ARCH),aarch64)                            
 34         CFLAGS += -I../../../arch/arm64/includ    
 35         HAS_NEON = yes                            
 36 endif                                             
 37                                                   
 38 ifeq ($(findstring ppc,$(ARCH)),ppc)              
 39         CFLAGS += -I../../../arch/powerpc/incl    
 40         HAS_ALTIVEC := $(shell printf '$(pound    
 41                          gcc -c -x c - >/dev/n    
 42 endif                                             
 43                                                   
 44 ifeq ($(ARCH),loongarch64)                        
 45         CFLAGS += -I../../../arch/loongarch/in    
 46         CFLAGS += $(shell echo 'vld $$vr0, $$z    
 47                     gcc -c -x assembler - >/de    
 48                     rm ./-.o && echo -DCONFIG_    
 49         CFLAGS += $(shell echo 'xvld $$xr0, $$    
 50                     gcc -c -x assembler - >/de    
 51                     rm ./-.o && echo -DCONFIG_    
 52 endif                                             
 53                                                   
 54 ifeq ($(IS_X86),yes)                              
 55         OBJS   += mmx.o sse1.o sse2.o avx2.o r    
 56         CFLAGS += -DCONFIG_X86                    
 57         CFLAGS += $(shell echo "vpmovm2b %k1,     
 58                     gcc -c -x assembler - >/de    
 59                     rm ./-.o && echo -DCONFIG_    
 60 else ifeq ($(HAS_NEON),yes)                       
 61         OBJS   += neon.o neon1.o neon2.o neon4    
 62         CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1     
 63 else ifeq ($(HAS_ALTIVEC),yes)                    
 64         CFLAGS += -DCONFIG_ALTIVEC                
 65         OBJS += altivec1.o altivec2.o altivec4    
 66                 vpermxor1.o vpermxor2.o vpermx    
 67 else ifeq ($(ARCH),loongarch64)                   
 68         OBJS += loongarch_simd.o recov_loongar    
 69 endif                                             
 70                                                   
 71 .c.o:                                             
 72         $(CC) $(CFLAGS) -c -o $@ $<               
 73                                                   
 74 %.c: ../%.c                                       
 75         cp -f $< $@                               
 76                                                   
 77 %.uc: ../%.uc                                     
 78         cp -f $< $@                               
 79                                                   
 80 all: raid6.a raid6test                            
 81                                                   
 82 raid6.a: $(OBJS)                                  
 83         rm -f $@                                  
 84         $(AR) cq $@ $^                            
 85         $(RANLIB) $@                              
 86                                                   
 87 raid6test: test.c raid6.a                         
 88         $(CC) $(CFLAGS) -o raid6test $^           
 89                                                   
 90 neon1.c: neon.uc ../unroll.awk                    
 91         $(AWK) ../unroll.awk -vN=1 < neon.uc >    
 92                                                   
 93 neon2.c: neon.uc ../unroll.awk                    
 94         $(AWK) ../unroll.awk -vN=2 < neon.uc >    
 95                                                   
 96 neon4.c: neon.uc ../unroll.awk                    
 97         $(AWK) ../unroll.awk -vN=4 < neon.uc >    
 98                                                   
 99 neon8.c: neon.uc ../unroll.awk                    
100         $(AWK) ../unroll.awk -vN=8 < neon.uc >    
101                                                   
102 altivec1.c: altivec.uc ../unroll.awk              
103         $(AWK) ../unroll.awk -vN=1 < altivec.u    
104                                                   
105 altivec2.c: altivec.uc ../unroll.awk              
106         $(AWK) ../unroll.awk -vN=2 < altivec.u    
107                                                   
108 altivec4.c: altivec.uc ../unroll.awk              
109         $(AWK) ../unroll.awk -vN=4 < altivec.u    
110                                                   
111 altivec8.c: altivec.uc ../unroll.awk              
112         $(AWK) ../unroll.awk -vN=8 < altivec.u    
113                                                   
114 vpermxor1.c: vpermxor.uc ../unroll.awk            
115         $(AWK) ../unroll.awk -vN=1 < vpermxor.    
116                                                   
117 vpermxor2.c: vpermxor.uc ../unroll.awk            
118         $(AWK) ../unroll.awk -vN=2 < vpermxor.    
119                                                   
120 vpermxor4.c: vpermxor.uc ../unroll.awk            
121         $(AWK) ../unroll.awk -vN=4 < vpermxor.    
122                                                   
123 vpermxor8.c: vpermxor.uc ../unroll.awk            
124         $(AWK) ../unroll.awk -vN=8 < vpermxor.    
125                                                   
126 int1.c: int.uc ../unroll.awk                      
127         $(AWK) ../unroll.awk -vN=1 < int.uc >     
128                                                   
129 int2.c: int.uc ../unroll.awk                      
130         $(AWK) ../unroll.awk -vN=2 < int.uc >     
131                                                   
132 int4.c: int.uc ../unroll.awk                      
133         $(AWK) ../unroll.awk -vN=4 < int.uc >     
134                                                   
135 int8.c: int.uc ../unroll.awk                      
136         $(AWK) ../unroll.awk -vN=8 < int.uc >     
137                                                   
138 int16.c: int.uc ../unroll.awk                     
139         $(AWK) ../unroll.awk -vN=16 < int.uc >    
140                                                   
141 int32.c: int.uc ../unroll.awk                     
142         $(AWK) ../unroll.awk -vN=32 < int.uc >    
143                                                   
144 tables.c: mktables                                
145         ./mktables > tables.c                     
146                                                   
147 clean:                                            
148         rm -f *.o *.a mktables mktables.c *.uc    
149                                                   
150 spotless: clean                                   
151         rm -f *~                                  
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php