URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [jtag/] [Makefile] - Rev 1767
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 jp2
all: $(PROGRAMS)
.c.o:
$(CC) $(CFLAGS) -c $<
jp1: Makefile jp1.o jp-io.o jp.h
rm -f $@
$(CC) -o $@ $(CFLAGS) jp1.o jp-io.o
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 *~
Go to most recent revision | Compare with Previous | Blame | View Log