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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [Makefile] - Rev 1281

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

prefix = /usr/local

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

PROGRAMS = jp1-xess jp1-xilinx jp1-rtl_sim jp2-xess jp2-xilinx jp2-rtl_sim

all: $(PROGRAMS)

jp1-rtl_sim: Makefile jp1.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp1.c -DRTL_SIM

jp1-xilinx: Makefile jp1.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp1.c -DXILINX_PARALLEL_CABLE_III

jp1-xess: Makefile jp1.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp1.c -DXESS_PARALLEL_CABLE

jp2-rtl_sim: Makefile jp2.c gdb2.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp2.c gdb2.c -DRTL_SIM

jp2-xilinx: Makefile jp2.c gdb2.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp2.c gdb2.c -DXILINX_PARALLEL_CABLE_III

jp2-xess: Makefile jp2.c gdb2.c
        rm -f $@
        $(CC) -o $@ $(CFLAGS) jp2.c gdb2.c -DXESS_PARALLEL_CABLE

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) *.o *~

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.