mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			573 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			573 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| # Makefile
 | |
| 
 | |
| CC     = gcc
 | |
| CFLAGS = -O3
 | |
| LIBS   = -lm
 | |
| LFLAGS = -L. 
 | |
| # Link against the riscv-isa-sim version of SoftFloat rather than 
 | |
| # the regular version to get RISC-V NaN behavior
 | |
| IFLAGS   = -I$(RISCV)/riscv-isa-sim/softfloat
 | |
| LIBS   = $(RISCV)/riscv-isa-sim/build/libsoftfloat.a
 | |
| #IFLAGS = -I../../../addins/SoftFloat-3e/source/include/
 | |
| #LIBS   = ../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC/softfloat.a
 | |
| SRCS   = $(wildcard *.c)
 | |
| 
 | |
| PROGS = $(patsubst %.c,%,$(SRCS))
 | |
| 
 | |
| all:	$(PROGS)
 | |
| 
 | |
| %: %.c
 | |
| 	$(CC) $(CFLAGS) $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS)
 | |
| 
 | |
| clean: 
 | |
| 	rm -f $(PROGS)
 |