-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (15 loc) · 1.15 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
CXX = g++
LDFLAGS =
CXXFLAGS = -std=c++1z -ggdb -Wno-deprecated-declarations
CXXFLAGS += $(shell pkg-config grpc++ --cflags;pkg-config gnutls --cflags;pkg-config protobuf --cflags;pkg-config opus --cflags;pkg-config ogg --cflags)
LDFLAGS += $(shell pkg-config grpc++ --libs;pkg-config gnutls --libs;pkg-config protobuf --libs;pkg-config opus --libs;pkg-config ogg --libs)
default: bot
LIBMUMBOT_SRCS = ./libmumbot/MumBotState.cpp ./libmumbot/MumBotConnectionMgr.cpp ./libmumbot/MumBotRPCWorkQueueMgr.cpp ./libmumbot/opus/OpusOggOutputWriter.cpp ./libmumbot/opus/AudioInputOpusWriter.cpp ./libmumbot/libmumbot.cpp ./libmumbot/MumBotConfig.cpp ./libmumbot/proto/Mumble.pb.cc ./libmumbot/proto/MumBot.grpc.pb.cc ./libmumbot/proto/MumBot.pb.cc
LIBMUMBOT_OBJS = MumBotState.o MumBotConnectionMgr.o MumBotRPCWorkQueueMgr.o OpusOggOutputWriter.o AudioInputOpusWriter.o libmumbot.o MumBotConfig.o Mumble.pb.o MumBot.grpc.pb.o MumBot.pb.o
libmumbot.a: $(LIBMUMBOT_SRCS)
$(CXX) $(CXXFLAGS) -c $(LIBMUMBOT_SRCS)
ar rc libmumbot.a $(LIBMUMBOT_OBJS)
scriptybot: main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
bot: main.o libmumbot.a
$(CXX) $(CXXFLAGS) main.o libmumbot.a $(LDFLAGS) -o bot