-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (25 loc) · 876 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
CC ?= clang
CFLAGS = -Ofast -g
LDFLAGS =
LDLIBS = -lepoxy -lm
INCLUDES = glblas.c
TARGETS = sasum saxpy scopy sdot sgemm sgemm4x4 sscal sswap
all: $(TARGETS)
sasum: demos/sasum.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
saxpy: demos/saxpy.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
scopy: demos/scopy.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
sdot: demos/sdot.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
sgemm: demos/sgemm.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
sgemm4x4: demos/sgemm4x4.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
sscal: demos/sscal.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
sswap: demos/sswap.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $< $(LDLIBS) -o $@
clean:
rm -f sasum saxpy scopy sdot sgemm sgemm4x4 sscal sswap