Update.
Some checks failed
devranta build / Build (push) Failing after 1m4s

This commit is contained in:
retoor 2025-12-28 06:03:20 +01:00
parent 3817151750
commit 44a830b633
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# retoor <retoor@molodetz.nl>
.PHONY: all env install run clean
all: env install run
env:
python3 -m venv .venv
install:
. .venv/bin/activate && pip install -r requirements.txt
. .venv/bin/activate && pip install -e ../../.
run:
. .venv/bin/activate && python princess.py
clean:
rm -rf .venv

View File

@ -0,0 +1,3 @@
# retoor <retoor@molodetz.nl>
python-dotenv
aiosqlite

32
src/devranta/Makefile Normal file
View File

@ -0,0 +1,32 @@
CC = gcc
CFLAGS = -Wall -Wextra -Werror -pedantic -std=c11 -g -O2
LDFLAGS = -lcurl -ljson-c
TARGET = devranta
SOURCES = devranta.c
OBJECTS = $(SOURCES:.c=.o)
.PHONY: all clean test
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJECTS) $(TARGET)
test: $(TARGET)
./$(TARGET)
debug: CFLAGS += -DDEBUG -g3 -fsanitize=address,undefined
debug: $(TARGET)
install: $(TARGET)
mkdir -p /usr/local/lib
mkdir -p /usr/local/include
cp $(TARGET) /usr/local/lib/
# You might want to copy header file here if you create one

BIN
src/devranta/devranta Executable file

Binary file not shown.