-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
38 lines (29 loc) · 928 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
37
38
CFLAGS += -g -Wall -pipe -O2
LDFLAGS += -lrt -lm -ldl
S = hex/shader_256.hex \
hex/shader_512.hex \
hex/shader_1k.hex \
hex/shader_2k.hex \
hex/shader_4k.hex \
hex/shader_8k.hex \
hex/shader_16k.hex \
hex/shader_32k.hex \
hex/shader_64k.hex \
hex/shader_128k.hex \
hex/shader_256k.hex \
hex/shader_512k.hex \
hex/shader_1024k.hex \
hex/shader_2048k.hex \
hex/shader_4096k.hex
C = mailbox.c gpu_fft.c gpu_fft_base.c gpu_fft_twiddles.c gpu_fft_shaders.c
C1D = $(C) hello_fft.c
C2D = $(C) hello_fft_2d.c gpu_fft_trans.c
H1D = gpu_fft.h mailbox.h
H2D = gpu_fft.h mailbox.h gpu_fft_trans.h hello_fft_2d_bitmap.h
all: hello_fft.bin hello_fft_2d.bin
clean:
$(RM) *.bin
hello_fft.bin: $(S) $(C1D) $(H1D)
$(CC) $(CFLAGS) $(LDFLAGS) -o hello_fft.bin $(C1D)
hello_fft_2d.bin: $(S) hex/shader_trans.hex $(C2D) $(H2D)
$(CC) $(CFLAGS) $(LDFLAGS) -o hello_fft_2d.bin $(C2D)