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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [boards/] [s3e-500/] [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
      load.c boot.c cpu.c mmu.c getline.c romlib.c \
9
      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 50 hellwig
all:            monitor.bin monitor.mcs
15 16 hellwig
 
16 50 hellwig
install:        monitor.bin monitor.mcs
17 16 hellwig
                mkdir -p $(BUILD)/monitor
18
                cp monitor.bin $(BUILD)/monitor
19 50 hellwig
                cp monitor.mcs $(BUILD)/monitor
20 16 hellwig
 
21 50 hellwig
monitor.mcs:    monitor.bin
22
                $(BUILD)/bin/bin2mcs 0x00000000 monitor.bin monitor.mcs
23 16 hellwig
 
24 63 hellwig
monitor.bin:    $(SRC)
25 50 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 50 hellwig
                rm -f monitor.mcs

powered by: WebSVN 2.1.0

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