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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [utils/] [contributions/] [gpio/] [sw/] [Makefile] - Blame information for rev 129

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

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

powered by: WebSVN 2.1.0

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