mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	add simple REPL
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ LFLAGS = -lm | ||||
|  | ||||
| .PHONY = all clean | ||||
|  | ||||
| all: smoke smoke_pr bench example example2 example3 | ||||
| all: smoke smoke_pr repl bench example example2 example3 | ||||
|  | ||||
|  | ||||
| smoke: smoke.c tinyexpr.c | ||||
| @@ -15,6 +15,9 @@ smoke_pr: smoke.c tinyexpr.c | ||||
| 	$(CC) $(CCFLAGS) -DTE_POW_FROM_RIGHT -DTE_NAT_LOG -o $@ $^ $(LFLAGS) | ||||
| 	./$@ | ||||
|  | ||||
| repl: repl.o tinyexpr.o | ||||
| 	$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS) -lreadline | ||||
|  | ||||
| bench: benchmark.o tinyexpr.o | ||||
| 	$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS) | ||||
|  | ||||
| @@ -31,4 +34,4 @@ example3: example3.o tinyexpr.o | ||||
| 	$(CC) -c $(CCFLAGS) $< -o $@ | ||||
|  | ||||
| clean: | ||||
| 	rm -f *.o *.exe example example2 example3 bench smoke_pr smoke | ||||
| 	rm -f *.o *.exe example example2 example3 bench repl smoke_pr smoke | ||||
|   | ||||
		Reference in New Issue
	
	Block a user