forked from bkacjios/lua-mumble
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (33 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
50 lines (33 loc) · 1.33 KB
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
CFLAGS = `pkg-config --libs --cflags libssl luajit libprotobuf-c opus vorbis vorbisfile` -pthread -g -DDEBUG
INCLUDES = -I.
default: all
clean:
rm *.o *.so proto/Mumble.o proto/Mumble.pb-c.c proto/Mumble.pb-c.h
uninstall:
rm /usr/local/lib/lua/5.1/mumble.so
all: proto/Mumble.o mumble.o client.o user.o channel.o encoder.o audio.o packet.o target.o util.o mumble.so
install: all
cp mumble.so /usr/local/lib/lua/5.1/mumble.so
proto/Mumble.o: proto/Mumble.proto
protoc-c --c_out=. $<
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ proto/Mumble.pb-c.c
mumble.o: mumble.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
client.o: client.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
user.o: user.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
channel.o: channel.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
encoder.o: encoder.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
audio.o: audio.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
packet.o: packet.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
target.o: target.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
util.o: util.c
$(CC) -c $(INCLUDES) -fPIC -shared -o $@ $^ $(CFLAGS)
mumble.so: proto/Mumble.o mumble.o client.o user.o channel.o encoder.o audio.o packet.o target.o util.o
$(CC) -shared -o $@ $^ $(CFLAGS)