Update.
This commit is contained in:
		
							parent
							
								
									307fdaefae
								
							
						
					
					
						commit
						c645645155
					
				
							
								
								
									
										22
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,18 +1,20 @@ | |||||||
| all: build run | all: build run | ||||||
| 
 | 
 | ||||||
|  | # Variables for compiler and flags
 | ||||||
|  | CC = gcc | ||||||
|  | CFLAGS = -Ofast -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm | ||||||
| 
 | 
 | ||||||
| build_rpylib: | # Targets
 | ||||||
| 	 gcc -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl | build:  | ||||||
| 
 | 	$(CC) main.c $(CFLAGS) -o r | ||||||
| 
 |  | ||||||
| build:	 |  | ||||||
| 	# -lpython3.14 -I/usr/include/python3.14 |  | ||||||
| 	gcc main.c -Ofast -o r -Werror -Wall -lreadline -lncurses -lcurl -lssl -lcrypto -ljson-c -lm  |  | ||||||
| 	publish r | 	publish r | ||||||
| 
 | 
 | ||||||
| build_free: | build_free:  | ||||||
| 	gcc main.c -lcurl -DFREE_VERSION -lssl -lcrypto -ljson-c -Ofast -o rf -Werror -Wall -lreadline -lncurses -lm   | 	$(CC) main.c -DFREE_VERSION $(CFLAGS) -o rf | ||||||
| 	publish 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 | 	./r | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user