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

Subversion Repositories c16

[/] [c16/] [trunk/] [compiler/] [Makefile] - Rev 2

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


ZAS     := C:/sdcc/bin/as-z80
ZLD     := C:/sdcc/bin/aslink

HDR     :=  ansic_bison.cc.h Node.hh Backend.hh Name.hh
OBJ     := cc80.o ansic_bison.o ansic_flex.o Node.o Name.o Expression.o \
           Statement.o Backend.o
MEMTOP  := 0x2000

all:    test

cc80.exe:       $(OBJ)
        gcc -g -o $@ $(OBJ)

%.o:    %.cc $(HDR)
        gcc -g -c -o $@ $<

ansic_bison.cc: ansic.bison
        bison -d -v -o $@ $<

ansic_bison.cc.h:       ansic.bison
        bison -d -v -o ansi_bison.cc $<

ansic_flex.cc:  ansic.flex ansic_bison.cc.h
        flex -o$@ $<

loader: cc80.exe
        cc80 -l $(MEMTOP) ..\loader.c ..\loader.asm

test:   cc80.exe
        cc80 $(MEMTOP) ..\test.c ..\test.asm

rtos:   cc80.exe
        cc80 $(MEMTOP) ..\rtos.c ..\rtos.asm

clean:

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

powered by: WebSVN 2.1.0

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