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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [boards/] [xsa-xst-3/] [Makefile] - Blame information for rev 63

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

Line No. Rev Author Line
1 16 hellwig
#
2
# Makefile for ECO32 ROM monitor
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC = start.s main.c command.c instr.c asm.c disasm.c \
8 51 hellwig
      load.c boot.c cpu.c mmu.c getline.c romlib.c \
9 16 hellwig
      keyboard.s ../kbdtbls/kbdtbls.s display.s \
10
      serial.s sctio-ctl.s sctio-ser.s end.s
11
 
12
.PHONY:         all install clean
13
 
14
all:            monitor.bin monitor.exo
15
 
16
install:        monitor.bin monitor.exo
17
                mkdir -p $(BUILD)/monitor
18
                cp monitor.bin $(BUILD)/monitor
19
                cp monitor.exo $(BUILD)/monitor
20
 
21
monitor.exo:    monitor.bin
22 39 hellwig
                $(BUILD)/bin/bin2exo -S2 0 monitor.bin monitor.exo
23 16 hellwig
 
24 63 hellwig
monitor.bin:    $(SRC)
25 55 hellwig
                $(BUILD)/bin/lcc -A -Wo-rom -Wl-rc -Wl0xC0000000 \
26
                  -Wl-rd -Wl0xC000C000 \
27
                  -Wl-m -Wlmonitor.map \
28
                  -o prelim.bin $(SRC)
29
                cat copy/copy.bin prelim.bin >monitor.bin
30
                rm prelim.bin
31 16 hellwig
 
32
clean:
33
                rm -f *~
34
                rm -f monitor.map monitor.bin
35
                rm -f monitor.exo

powered by: WebSVN 2.1.0

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