-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
78 lines (56 loc) · 2.78 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
DEPS = ca0132_defs.h hda_hwdep.h
CFLAGS = -O2 -Wall
BASE_OBJS = ca0132_base_functions.o
DSP_OBJS = ca0132_dsp_functions.o
targets = ca0132-8051-write-exram-from-file ca0132-chipio-read-data ca0132-8051-dump-state \
ca0132-8051-read-exram ca0132-8051-read-exram-to-file ca0132-8051-write-exram \
ca0132-8051-command-line ca0132-chipio-read-to-file ca0132-chipio-write-data \
ca0132-chipio-write-data-from-file ca0132-dsp-assembler \
ca0132-dsp-disassembler ca0132-dsp-op-test \
ca0132-frame-dump-formatted ca0132-get-chipio-flags \
ca0132-get-chipio-stream-data ca0132-get-chipio-stream-ports \
ca0132-send-dsp-scp-cmd
.PHONY: clean all
all : $(targets)
clean:
rm -f $(targets) $(BASE_OBJS) $(DSP_OBJS)
ca0132-8051-write-exram-from-file: $(BASE_OBJS) ca0132-8051-write-exram-from-file.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-chipio-read-data: $(BASE_OBJS) ca0132-chipio-read-data.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-8051-dump-state: $(BASE_OBJS) ca0132-8051-dump-state.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-8051-read-exram: $(BASE_OBJS) ca0132-8051-read-exram.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-8051-read-exram-to-file: $(BASE_OBJS) ca0132-8051-read-exram-to-file.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-8051-write-exram: $(BASE_OBJS) ca0132-8051-write-exram.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-8051-command-line: $(BASE_OBJS) ca0132-8051-command-line.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-chipio-read-to-file: $(BASE_OBJS) ca0132-chipio-read-to-file.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-chipio-write-data: $(BASE_OBJS) ca0132-chipio-write-data.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-chipio-write-data-from-file: $(BASE_OBJS) ca0132-chipio-write-data-from-file.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-dsp-assembler: $(DSP_OBJS) ca0132-dsp-assembler.c
gcc [email protected] -o $@ $(DSP_OBJS) $(CFLAGS)
ca0132-dsp-disassembler: $(DSP_OBJS) ca0132-dsp-disassembler.c
gcc [email protected] -o $@ $(DSP_OBJS) $(CFLAGS)
ca0132-dsp-op-test: $(BASE_OBJS) $(DSP_OBJS) ca0132-dsp-op-test.c
gcc [email protected] -o $@ $(DSP_OBJS) $(BASE_OBJS) $(CFLAGS)
ca0132-frame-dump-formatted: $(BASE_OBJS) ca0132-frame-dump-formatted.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-get-chipio-flags: $(BASE_OBJS) ca0132-get-chipio-flags.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-get-chipio-stream-data: $(BASE_OBJS) ca0132-get-chipio-stream-data.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-get-chipio-stream-ports: $(BASE_OBJS) ca0132-get-chipio-stream-ports.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132-send-dsp-scp-cmd: $(BASE_OBJS) ca0132-send-dsp-scp-cmd.c
gcc [email protected] -o $@ $(BASE_OBJS) $(CFLAGS)
ca0132_dsp_functions.o: ca0132_dsp_functions.c $(DEPS)
gcc -c $< $(CFLAGS)
ca0132_base_functions.o: ca0132_base_functions.c $(DEPS)
gcc -c $< $(CFLAGS)