cleanup of makefiles
This commit is contained in:
		| @@ -1,14 +1,16 @@ | ||||
|  | ||||
| TARGET = hello | ||||
| C_SRCS += $(wildcard *.c)  | ||||
| TARGET  = hello | ||||
| C_SRCS  = $(wildcard *.c)  | ||||
| #HEADERS = $(wildcard *.h) | ||||
| #CFLAGS += -O2  | ||||
| #-fno-builtin-printf | ||||
|  | ||||
| BOARD=freedom-e300-hifive1 | ||||
| LINK_TARGET=link | ||||
| RISCV_ARCH=rv32imac | ||||
| RISCV_ABI=ilp32 | ||||
|  | ||||
| LDFLAGS = -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=medany | ||||
|  | ||||
| TOOL_DIR?=/opt/riscv/FreedomStudio/20180122/SiFive/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin | ||||
| BSP_BASE = ./bsp | ||||
| include $(BSP_BASE)/env/common.mk | ||||
|   | ||||
							
								
								
									
										3
									
								
								hello-world/bsp/env/common.mk
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								hello-world/bsp/env/common.mk
									
									
									
									
										vendored
									
									
								
							| @@ -44,6 +44,7 @@ TRIPLET?=riscv64-unknown-elf | ||||
| CXX=$(TOOL_DIR)/$(TRIPLET)-c++ | ||||
| CC=$(TOOL_DIR)/$(TRIPLET)-gcc | ||||
| LD=$(TOOL_DIR)/$(TRIPLET)-gcc | ||||
| AR=$(TOOL_DIR)/$(TRIPLET)-ar | ||||
|  | ||||
|  | ||||
| $(TARGET): $(LINK_OBJS) $(LINK_DEPS) | ||||
| @@ -60,6 +61,6 @@ $(CXX_OBJS): %.o: %.cpp $(HEADERS) | ||||
|  | ||||
| .PHONY: clean | ||||
| clean: | ||||
| 	rm -f $(CLEAN_OBJS) | ||||
| 	rm -f $(CLEAN_OBJS) $(LIBWRAP) | ||||
|  | ||||
| endif # _SIFIVE_MK_COMMON | ||||
|   | ||||
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user