pcmcia: CompactFlash driver for PA Semi Electra boards
[pv_ops_mirror.git] / drivers / md / raid6test / Makefile
blob78e0396adf2ac28ab8cc23f0427303b10d2207b2
2 # This is a simple Makefile to test some of the RAID-6 code
3 # from userspace.
6 CC = gcc
7 OPTFLAGS = -O2 # Adjust as desired
8 CFLAGS = -I.. -g $(OPTFLAGS)
9 LD = ld
10 PERL = perl
11 AR = ar
12 RANLIB = ranlib
14 .c.o:
15 $(CC) $(CFLAGS) -c -o $@ $<
17 %.c: ../%.c
18 cp -f $< $@
20 %.uc: ../%.uc
21 cp -f $< $@
23 all: raid6.a raid6test
25 raid6.a: raid6int1.o raid6int2.o raid6int4.o raid6int8.o raid6int16.o \
26 raid6int32.o \
27 raid6mmx.o raid6sse1.o raid6sse2.o \
28 raid6altivec1.o raid6altivec2.o raid6altivec4.o raid6altivec8.o \
29 raid6recov.o raid6algos.o \
30 raid6tables.o
31 rm -f $@
32 $(AR) cq $@ $^
33 $(RANLIB) $@
35 raid6test: test.c raid6.a
36 $(CC) $(CFLAGS) -o raid6test $^
38 raid6altivec1.c: raid6altivec.uc ../unroll.pl
39 $(PERL) ../unroll.pl 1 < raid6altivec.uc > $@
41 raid6altivec2.c: raid6altivec.uc ../unroll.pl
42 $(PERL) ../unroll.pl 2 < raid6altivec.uc > $@
44 raid6altivec4.c: raid6altivec.uc ../unroll.pl
45 $(PERL) ../unroll.pl 4 < raid6altivec.uc > $@
47 raid6altivec8.c: raid6altivec.uc ../unroll.pl
48 $(PERL) ../unroll.pl 8 < raid6altivec.uc > $@
50 raid6int1.c: raid6int.uc ../unroll.pl
51 $(PERL) ../unroll.pl 1 < raid6int.uc > $@
53 raid6int2.c: raid6int.uc ../unroll.pl
54 $(PERL) ../unroll.pl 2 < raid6int.uc > $@
56 raid6int4.c: raid6int.uc ../unroll.pl
57 $(PERL) ../unroll.pl 4 < raid6int.uc > $@
59 raid6int8.c: raid6int.uc ../unroll.pl
60 $(PERL) ../unroll.pl 8 < raid6int.uc > $@
62 raid6int16.c: raid6int.uc ../unroll.pl
63 $(PERL) ../unroll.pl 16 < raid6int.uc > $@
65 raid6int32.c: raid6int.uc ../unroll.pl
66 $(PERL) ../unroll.pl 32 < raid6int.uc > $@
68 raid6tables.c: mktables
69 ./mktables > raid6tables.c
71 clean:
72 rm -f *.o *.a mktables mktables.c raid6int.uc raid6*.c raid6test
74 spotless: clean
75 rm -f *~