From 62e0b497a0eaed5b8f226e0f74b0cbb955b7e2ee Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 20 Mar 2025 01:57:47 +0000 Subject: [PATCH] chore: remove trailing whitespace from README.md line 42 --- Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 7e695ca..1fecf82 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,20 @@ all: build run +# Variables for compiler and flags +CC = gcc +CFLAGS = -Ofast -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm -build_rpylib: - gcc -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl - - -build: - # -lpython3.14 -I/usr/include/python3.14 - gcc main.c -Ofast -o r -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm +# Targets +build: + $(CC) main.c $(CFLAGS) -o r publish r -build_free: - gcc main.c -lcurl -DFREE_VERSION -lssl -lcrypto -ljson-c -Ofast -o rf -Werror -Wall -lreadline -lncurses -lm +build_free: + $(CC) main.c -DFREE_VERSION $(CFLAGS) -o rf publish rf -run: +build_rpylib: + $(CC) -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl + +run: ./r