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 132

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 64 hellwig
BUILD = ../../../../build
6 16 hellwig
 
7 64 hellwig
SRC = start.s \
8
      ../../common/main.c \
9
      ../../common/command.c \
10
      ../../common/instr.c \
11
      ../../common/asm.c \
12
      ../../common/disasm.c \
13
      ../../common/load.c \
14
      ../../common/boot.c \
15
      ../../common/cpu.c \
16
      ../../common/mmu.c \
17
      ../../common/getline.c \
18
      ../../common/romlib.c \
19
      ../../common/keyboard.s \
20
      ../../kbdtbls/kbdtbls.s \
21
      ../../common/display.s \
22
      ../../common/serial.s \
23
      ../../common/sctio-ctl.s \
24
      ../../common/sctio-ser.s \
25
      ../../common/end.s
26 16 hellwig
 
27
.PHONY:         all install clean
28
 
29
all:            monitor.bin monitor.exo
30
 
31
install:        monitor.bin monitor.exo
32 64 hellwig
                mkdir -p $(BUILD)/monitor/xsa-xst-3
33
                cp monitor.bin $(BUILD)/monitor/xsa-xst-3
34
                cp monitor.exo $(BUILD)/monitor/xsa-xst-3
35 16 hellwig
 
36
monitor.exo:    monitor.bin
37 39 hellwig
                $(BUILD)/bin/bin2exo -S2 0 monitor.bin monitor.exo
38 16 hellwig
 
39 63 hellwig
monitor.bin:    $(SRC)
40 55 hellwig
                $(BUILD)/bin/lcc -A -Wo-rom -Wl-rc -Wl0xC0000000 \
41
                  -Wl-rd -Wl0xC000C000 \
42
                  -Wl-m -Wlmonitor.map \
43
                  -o prelim.bin $(SRC)
44 64 hellwig
                cat ../../copy/copy.bin prelim.bin >monitor.bin
45 55 hellwig
                rm prelim.bin
46 16 hellwig
 
47
clean:
48
                rm -f *~
49 64 hellwig
                rm -f prelim.bin monitor.map monitor.bin
50 16 hellwig
                rm -f monitor.exo

powered by: WebSVN 2.1.0

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