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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [jtag/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log

prefix = /usr/local

CFLAGS = -g -O2
#CFLAGS = -g -O2 -DDEBUG2 -DDEBUG
CC = gcc

PROGRAMS = jp2

all: $(PROGRAMS)

.c.o:
        $(CC) $(CFLAGS) -c $<

jp2: Makefile jp2.o gdb2.o jp2.h jp-io.o jp.h
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp2.o jp-io.o gdb2.o

jp-io-vpi.vpi: jp-io-vpi.c
        iverilog-vpi jp-io-vpi.c

vpi: jp-io-vpi.vpi Makefile

install: all
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
        for p in $(PROGRAMS) ; do \
            /bin/rm -f $(prefix)/bin/$$p; \
            /bin/cp -p $$p $(prefix)/bin/$$p; \
        done

clean: Makefile
        rm -f $(PROGRAMS) jp-io-vpi.vpi *.o *~

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.