URL
https://opencores.org/ocsvn/potato/potato/trunk
Subversion Repositories potato
[/] [potato/] [trunk/] [benchmarks/] [sha256/] [Makefile] - Rev 45
Go to most recent revision | Compare with Previous | Blame | View Log
# The Potato Processor Benchmark Applications# (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net># Report bugs and issues on <http://opencores.org/project,potato,bugtracker>.PHONY: all cleanTARGET_PREFIX ?= riscv64-unknown-elfTARGET_CC := $(TARGET_PREFIX)-gccTARGET_LD := $(TARGET_PREFIX)-ldTARGET_SIZE := $(TARGET_PREFIX)-sizeTARGET_OBJCOPY := $(TARGET_PREFIX)-objcopyHEXDUMP ?= hexdumpTARGET_CFLAGS += -m32 -march=RV32I -Wall -Os -fomit-frame-pointer \-ffreestanding -fno-builtin -I.. -std=gnu99TARGET_LDFLAGS += -m elf32lriscv -T../benchmark.ldOBJECTS := gpio.o main.o sha256.o start.o timer.o uart.o utilities.oall: sha256.coesha256.elf: $(OBJECTS)$(TARGET_LD) -o sha256.elf $(TARGET_LDFLAGS) $(OBJECTS)$(TARGET_SIZE) sha256.elfsha256.bin: sha256.elf$(TARGET_OBJCOPY) -j .text -j .data -O binary sha256.elf sha256.binsha256.coe: sha256.binecho "memory_initialization_radix=16;" > sha256.coeecho "memory_initialization_vector=" >> sha256.coe$(HEXDUMP) -v -e '1/4 "%08x\n"' sha256.bin >> sha256.coeecho ";" >> sha256.coeclean:-$(RM) $(OBJECTS)-$(RM) sha256.elf sha256.bin sha256.coe# Object file rules:gpio.o: gpio.c gpio.h ../platform.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<main.o: main.c gpio.h timer.h sha256.h ../platform.h ../potato.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<sha256.o: sha256.c sha256.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<start.o: ../start.S ../platform.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<timer.o: timer.c timer.h ../platform.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<uart.o: uart.c uart.h ../platform.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<utilities.o: utilities.c utilities.h$(TARGET_CC) -c -o $@ $(TARGET_CFLAGS) $<
Go to most recent revision | Compare with Previous | Blame | View Log
