mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:45:11 +00:00
Still need to grab it on the room-level from the room state if possible, otherwise just rollback to the MXID. I also need to consider profile pictures and bridging media, and check if the nick was present XMPP-side first, as that can and will cause issues, especially around semi-anonymous MUCs.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# Makefile for building Parsee
|
|
# ================================
|
|
# TODO: Consider making something akin to a configure script that checks
|
|
# for dependencies, or maybe even use *autoconf* (the devil!)
|
|
|
|
|
|
# =========================== Parsee Flags =============================
|
|
NAME=Parsee
|
|
VERSION=0.0.0
|
|
REPOSITORY=$(shell git remote get-url origin)
|
|
|
|
# =========================== Compilation Flags ============================
|
|
CYTO_INC=/usr/local/include/ # Where Cytoplasm's include path is
|
|
# located.
|
|
CYTO_LIB=/usr/local/lib # Where's Cytoplasm's library is
|
|
# located.
|
|
|
|
SOURCE=src
|
|
OBJECT=build
|
|
INCLUDES=src/include
|
|
CC=cc
|
|
CFLAGS=-I$(INCLUDES) -I$(CYTO_INC) -DNAME="\"$(NAME)\"" -DVERSION="\"$(VERSION)\"" -DREPOSITORY=\"$(REPOSITORY)\" -g -ggdb
|
|
LDFLAGS=-L $(CYTO_LIB) -lCytoplasm -Wl,--export-dynamic
|
|
BINARY=parsee
|
|
# ============================ Compilation =================================
|
|
SRC_FILES:=$(shell find $(SOURCE) -name '*.c')
|
|
OBJ_FILES:=${subst $(SOURCE)/,$(OBJECT)/,$(patsubst %.c, %.o, $(SRC_FILES))}
|
|
|
|
binary: $(OBJ_FILES)
|
|
$(CC) $(LDFLAGS) $(OBJ_FILES) -o $(BINARY)
|
|
|
|
clean:
|
|
rm -rf $(OBJECT) $(BINARY)
|
|
|
|
$(OBJECT)/%.o: $(SOURCE)/%.c
|
|
@mkdir -p $(shell dirname "$@")
|
|
$(CC) -c $(CFLAGS) $< -o $@
|