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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [Makefile] - Blame information for rev 1380

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

Line No. Rev Author Line
1 1281 partain
prefix = /usr/local
2
 
3 602 lampret
CFLAGS = -g -O2
4 1274 markom
#CFLAGS = -g -O2 -DDEBUG2 -DDEBUG
5 1280 markom
CC = gcc
6
 
7 1380 phoenix
PROGRAMS = jp1 jp2
8 435 simons
 
9 1281 partain
all: $(PROGRAMS)
10 435 simons
 
11 1380 phoenix
.c.o:
12
        $(CC) $(CFLAGS) -c $<
13 435 simons
 
14 1380 phoenix
jp1: Makefile jp1.o jp-io.o jp.h
15 1281 partain
        rm -f $@
16 1380 phoenix
        $(CC) -o $@ $(CFLAGS) jp1.o jp-io.o
17 602 lampret
 
18 1380 phoenix
jp2: Makefile jp2.o gdb2.o jp2.h jp-io.o jp.h
19 1281 partain
        rm -f $@
20 1380 phoenix
        $(CC) -o $@ $(CFLAGS) jp2.o jp-io.o gdb2.o
21 1246 markom
 
22 1380 phoenix
jp-io-vpi.vpi: jp-io-vpi.c
23
        iverilog-vpi jp-io-vpi.c
24 1246 markom
 
25 1380 phoenix
vpi: jp-io-vpi.vpi Makefile
26 1246 markom
 
27 1281 partain
install: all
28
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
29
        for p in $(PROGRAMS) ; do \
30
            /bin/rm -f $(prefix)/bin/$$p; \
31
            /bin/cp -p $$p $(prefix)/bin/$$p; \
32
        done
33
 
34 1259 markom
clean: Makefile
35 1380 phoenix
        rm -f $(PROGRAMS) jp-io-vpi.vpi *.o *~

powered by: WebSVN 2.1.0

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