mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Added additional tests.
This commit is contained in:
		
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @@ -2,13 +2,16 @@ CCFLAGS = -ansi -Wall -Wshadow -O2 | ||||
| LFLAGS = -lm | ||||
|  | ||||
|  | ||||
| all: test bench example example2 example3 | ||||
| all: test test_pr bench example example2 example3 | ||||
|  | ||||
|  | ||||
| test: test.o tinyexpr.o | ||||
| test: test.c tinyexpr.c | ||||
| 	$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS) | ||||
| 	./$@ | ||||
|  | ||||
| test_pr: test.c tinyexpr.c | ||||
| 	$(CC) $(CCFLAGS) -DTE_POW_FROM_RIGHT -DTE_NAT_LOG -o $@ $^ $(LFLAGS) | ||||
| 	./$@ | ||||
|  | ||||
| bench: benchmark.o tinyexpr.o | ||||
| 	$(CC) $(CCFLAGS) -o $@ $^ $(LFLAGS) | ||||
| @@ -25,7 +28,6 @@ example3: example3.o tinyexpr.o | ||||
| .c.o: | ||||
| 	$(CC) -c $(CCFLAGS) $< -o $@ | ||||
|  | ||||
|  | ||||
| clean: | ||||
| 	rm *.o | ||||
| 	rm *.exe | ||||
|   | ||||
		Reference in New Issue
	
	Block a user