-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
36 lines (25 loc) · 923 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CFLAGS = -std=c99 -Wall -Wextra -Ofast -fopenmp
mandel.x86 : mandel.c mandel_avx.o mandel_sse2.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
mandel.arm : mandel.c mandel_neon.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
mandel.arm64 : mandel.c mandel_neon64.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
mandel.ppc : mandel.c mandel_altivec.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
mandel_avx.o : mandel_avx.c
$(CC) -c $(CFLAGS) -mavx -o $@ $^
mandel_sse2.o : mandel_sse2.c
$(CC) -c $(CFLAGS) -msse2 -o $@ $^
mandel_neon.o : mandel_neon.c
$(CC) -c $(CFLAGS) -mfpu=neon -o $@ $^
mandel_neon64.o : mandel_neon.c
$(CC) -c $(CFLAGS) -o $@ $^
mandel_altivec.o : mandel_altivec.c
$(CC) -c $(CFLAGS) -maltivec -o $@ $^
clean :
$(RM) mandel.x86 mandel_avx.o mandel_sse2.o \
mandel.arm mandel_neon.o \
mandel.arm64 mandel_neon64.o \
mandel.ppc mandel_altivec.o
.PHONY : clean