mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 21:20:31 -04:00
Concord is an asynchronous C99 Discord API library with minimal external dependencies, and a low-level translation of the Discord official documentation to C code. https://github.com/Cogmasters/concord PR: 279553
48 lines
981 B
Text
48 lines
981 B
Text
CC ?= cc
|
|
|
|
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/usr/local/include
|
|
LDFLAGS = -L/usr/local/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
|