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

Subversion Repositories tv80

[/] [tv80/] [branches/] [s80_env_devel/] [tests/] [Makefile] - Blame information for rev 6

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

Line No. Rev Author Line
1 2 ghutchis
# Makefile for Z80 C/Assembly files
2
# Assumes that SDCC is installed parallel to TV80 root
3
 
4
SDCC_ROOT=../../sdcc
5
CC=$(SDCC_ROOT)/bin/sdcc -mz80
6
AS=$(SDCC_ROOT)/bin/as-z80
7
LD=$(SDCC_ROOT)/bin/link-z80
8
IHEX2MEM=../scripts/ihex2mem.py
9
LINK_OPTIONS=-- -m -j -x -b_CODE=0x0200 -b_DATA=0x8000 -k$(SDCC_ROOT)/share/sdcc/lib/z80 -k$(SDCC_ROOT)/lib/z80 -lz80
10
AS_LINK_OPTIONS=-bBOOT_VEC=0x0000 -bINT_VEC=0x0038
11
C_LINK_OPTIONS=$(SDCC_ROOT)/share/sdcc/lib/z80/crt0.o
12
 
13
%.vmem : %.ihx
14
        $(IHEX2MEM) $^ $@
15
 
16
%.ihx : %.c
17
        $(CC) $^
18
 
19
%.o   : %.asm
20
        $(AS) -o $*.o $^
21
 
22
%.ihx : %.o
23
        $(LD) $(LINK_OPTIONS) $(AS_LINK_OPTIONS) -i $* $^ -e
24
 
25
clean :
26
        rm -f *.map
27
        rm -f *.mem
28
        rm -f *.rel
29
        rm -f *.rst
30
        rm -f *.sym
31
        rm -f *.o
32
        rm -f *.lnk
33
        rm -f *.ihx
34
        rm -f *.lst
35
        rm -f *.vmem
36
 

powered by: WebSVN 2.1.0

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