2 # This is a simple Makefile to test some of the RAID-6 code
7 OPTFLAGS
= -O2
# Adjust as desired
8 CFLAGS
= -I..
-I ..
/..
/..
/include -g
$(OPTFLAGS
)
15 $(CC
) $(CFLAGS
) -c
-o
$@
$<
23 all: raid6.a raid6test
25 raid6.a
: int1.o int2.o int4.o int8.o int16.o int32.o mmx.o sse1.o sse2.o \
26 altivec1.o altivec2.o altivec4.o altivec8.o recov.o algos.o \
32 raid6test
: test.c raid6.a
33 $(CC
) $(CFLAGS
) -o raid6test
$^
35 altivec1.c
: altivec.uc ..
/unroll.awk
36 $(AWK
) ..
/unroll.awk
-vN
=1 < altivec.uc
> $@
38 altivec2.c
: altivec.uc ..
/unroll.awk
39 $(AWK
) ..
/unroll.awk
-vN
=2 < altivec.uc
> $@
41 altivec4.c
: altivec.uc ..
/unroll.awk
42 $(AWK
) ..
/unroll.awk
-vN
=4 < altivec.uc
> $@
44 altivec8.c
: altivec.uc ..
/unroll.awk
45 $(AWK
) ..
/unroll.awk
-vN
=8 < altivec.uc
> $@
47 int1.c
: int.uc ..
/unroll.awk
48 $(AWK
) ..
/unroll.awk
-vN
=1 < int.uc
> $@
50 int2.c
: int.uc ..
/unroll.awk
51 $(AWK
) ..
/unroll.awk
-vN
=2 < int.uc
> $@
53 int4.c
: int.uc ..
/unroll.awk
54 $(AWK
) ..
/unroll.awk
-vN
=4 < int.uc
> $@
56 int8.c
: int.uc ..
/unroll.awk
57 $(AWK
) ..
/unroll.awk
-vN
=8 < int.uc
> $@
59 int16.c
: int.uc ..
/unroll.awk
60 $(AWK
) ..
/unroll.awk
-vN
=16 < int.uc
> $@
62 int32.c
: int.uc ..
/unroll.awk
63 $(AWK
) ..
/unroll.awk
-vN
=32 < int.uc
> $@
69 rm -f
*.o
*.a mktables mktables.c
*.uc int
*.c altivec
*.c tables.c raid6test