Update.
This commit is contained in:
parent
3817151750
commit
44a830b633
17
examples/princess/Makefile
Normal file
17
examples/princess/Makefile
Normal 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
|
||||||
3
examples/princess/requirements.txt
Normal file
3
examples/princess/requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# retoor <retoor@molodetz.nl>
|
||||||
|
python-dotenv
|
||||||
|
aiosqlite
|
||||||
32
src/devranta/Makefile
Normal file
32
src/devranta/Makefile
Normal 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
BIN
src/devranta/devranta
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user