2025-01-04 06:00:03 +01:00
|
|
|
all: build run
|
|
|
|
|
2025-03-20 02:57:47 +01:00
|
|
|
# Variables for compiler and flags
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Ofast -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm
|
2025-03-19 18:04:32 +01:00
|
|
|
|
2025-03-20 02:57:47 +01:00
|
|
|
# Targets
|
|
|
|
build:
|
|
|
|
$(CC) main.c $(CFLAGS) -o r
|
2025-01-05 22:59:51 +01:00
|
|
|
publish r
|
|
|
|
|
2025-03-20 02:57:47 +01:00
|
|
|
build_free:
|
|
|
|
$(CC) main.c -DFREE_VERSION $(CFLAGS) -o rf
|
2025-01-05 22:59:51 +01:00
|
|
|
publish rf
|
2025-01-04 06:00:03 +01:00
|
|
|
|
2025-03-20 02:57:47 +01:00
|
|
|
build_rpylib:
|
|
|
|
$(CC) -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl
|
|
|
|
|
|
|
|
run:
|
2025-01-04 06:00:03 +01:00
|
|
|
./r
|