-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (28 loc) · 888 Bytes
/
Makefile
File metadata and controls
43 lines (28 loc) · 888 Bytes
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
# 12/06/2018
# Generate Position Independent Code
CFLAGS = -Wall -fPIC
# Link as a shared library
LDFLAGS = -shared
objects = \
hardware_parameters.o \
sound_parameters.o \
sound_open_device.o \
sound_setup.o \
sound_transfer.o \
sound_operations.o
all: library
# Sound library
library: $(objects)
$(CC) $(CFLAGS) $(LDFLAGS) -o libsimplesound.so $(objects)
hardware_parameters.o: hardware_parameters.c
sound_parameters.o: sound_parameters.c hardware_parameters.h \
sound_parameters.h
sound_open_device.o: sound_open_device.c sound_open_device.h
sound_setup.o: sound_setup.c sound_global.h hardware_parameters.h \
sound_open_device.h sound_parameters.h sound_transfer.h
sound_transfer.o: sound_transfer.c sound_global.h sound_operations.h
sound_operations.o: sound_operations.c sound_global.h sound_operations.h
# Clean
.PHONY: clean
clean:
-rm $(objects)