| all: build run
 | |
| 
 | |
| # Variables for compiler and flags
 | |
| CC = gcc
 | |
| CFLAGS = -Ofast -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm
 | |
| 
 | |
| # Targets
 | |
| build: 
 | |
| 	$(CC) main.c $(CFLAGS) -o r
 | |
| 	publish r
 | |
| 
 | |
| build_free: 
 | |
| 	$(CC) main.c -DFREE_VERSION $(CFLAGS) -o rf
 | |
| 	publish rf
 | |
| 
 | |
| build_rpylib:
 | |
| 	$(CC) -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl
 | |
| 
 | |
| run: 
 | |
| 	./r
 |