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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [jtag/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1581 jcastillo
prefix = /usr/local
2
 
3
CFLAGS = -g -O2
4
#CFLAGS = -g -O2 -DDEBUG2 -DDEBUG
5
CC = gcc
6
 
7
PROGRAMS = jp2
8
 
9
all: $(PROGRAMS)
10
 
11
.c.o:
12
        $(CC) $(CFLAGS) -c $<
13
 
14
jp2: Makefile jp2.o gdb2.o jp2.h jp-io.o jp.h
15
        rm -f $@
16
        $(CC) -o $@ $(CFLAGS) jp2.o jp-io.o gdb2.o
17
 
18
jp-io-vpi.vpi: jp-io-vpi.c
19
        iverilog-vpi jp-io-vpi.c
20
 
21
vpi: jp-io-vpi.vpi Makefile
22
 
23
install: all
24
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
25
        for p in $(PROGRAMS) ; do \
26
            /bin/rm -f $(prefix)/bin/$$p; \
27
            /bin/cp -p $$p $(prefix)/bin/$$p; \
28
        done
29
 
30
clean: Makefile
31
        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.