OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

[/] [minsoc/] [trunk/] [utils/] [contributions/] [gpio/] [sw/] [old/] [Makefile] - Blame information for rev 105

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 40 rfajardo
include ../support/Makefile.inc
2
cases = gpio-nocache gpio-icdc
3
common = ../support/libsupport.a ../support/except.o
4
 
5
all: $(cases)
6
 
7
gpio-nocache: gpio.o udelay.o ../support/reset-nocache.o $(common)
8
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32
9
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
10
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
11
        ../utils/bin2vmem $@.bin > $@.vmem
12
 
13
 
14
gpio-icdc: gpio.o udelay.o ../support/reset-icdc.o
15
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $(GCC_LIB_OPTS) -T ../support/orp.ld $? -o $@.or32 $(common)
16
        $(OR32_TOOL_PREFIX)-objcopy -O binary $@.or32 $@.bin
17
        ../utils/bin2hex $@.bin 1 -size_word > $@$(FLASH_MEM_HEX_FILE_SUFFIX).hex
18
        ../utils/bin2vmem $@.bin > $@.vmem
19
 
20
 
21
gpio.o: gpio.c
22
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $? -c -o $@
23
 
24
udelay.o: udelay.c
25
        $(OR32_TOOL_PREFIX)-gcc $(GCC_OPT) $? -c -o $@
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.