diff --git a/examples/princess/Makefile b/examples/princess/Makefile new file mode 100644 index 0000000..7689449 --- /dev/null +++ b/examples/princess/Makefile @@ -0,0 +1,17 @@ +# retoor +.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 diff --git a/examples/princess/requirements.txt b/examples/princess/requirements.txt new file mode 100644 index 0000000..fb971c7 --- /dev/null +++ b/examples/princess/requirements.txt @@ -0,0 +1,3 @@ +# retoor +python-dotenv +aiosqlite diff --git a/src/devranta/Makefile b/src/devranta/Makefile new file mode 100644 index 0000000..47cb352 --- /dev/null +++ b/src/devranta/Makefile @@ -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 \ No newline at end of file diff --git a/src/devranta/devranta b/src/devranta/devranta new file mode 100755 index 0000000..6527af1 Binary files /dev/null and b/src/devranta/devranta differ