-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
55 lines (46 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
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
# This Makefile assumes the top folder has been built
TOP = ..
CC ?= cc
CORE_DIR = $(TOP)/core
INCLUDE_DIR = $(TOP)/include
GENCODECS_DIR = $(TOP)/gencodecs
STD_BOTS = 8ball \
audit-log \
ban \
cache \
channel \
components \
copycat \
embed \
emoji \
fetch-messages \
guild-template \
guild \
invite \
manual-dm \
pin \
ping-pong \
presence \
reaction \
shell \
slash-commands \
slash-commands2 \
spam \
webhook \
timers
VOICE_BOTS = voice-join
BOTS += $(STD_BOTS)
CFLAGS += -O0 -g -pthread -Wall \
-I$(INCLUDE_DIR) -I$(CORE_DIR) -I$(GENCODECS_DIR)
LDFLAGS = -L$(TOP)/lib
LDLIBS = -ldiscord -lcurl
all: $(BOTS)
voice:
@ CFLAGS=-DCCORD_VOICE BOTS=$(VOICE_BOTS) $(MAKE)
echo:
@ echo -e 'CC: $(CC)\n'
@ echo -e 'STD_BOTS: $(STD_BOTS)\n'
@ echo -e 'VOICE_BOTS: $(VOICE_BOTS)\n'
clean:
@ rm -f $(STD_BOTS) $(VOICE_BOTS)
.PHONY: all echo clean