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

Subversion Repositories adv_debug_sys

[/] [adv_debug_sys/] [tags/] [ADS_RELEASE_1_1_0/] [Software/] [adv_jtag_bridge/] [Makefile] - Blame information for rev 13

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

Line No. Rev Author Line
1 4 nyawn
prefix = /usr/local
2
 
3
# These are for native Linux.  You may need to put the path to libusb.a into the LIBS variable
4 13 nyawn
# with the -L command.  You may also need to add the path to usb.h in INCLUDEDIRS -
5
# the default install location is already listed.
6 4 nyawn
#CFLAGS = -g -O2 -Wall
7
#CC = gcc
8 13 nyawn
#LIBS = -lusb -lpthread
9
#INCLUDEDIRS = -I/usr/local/include/libusb-1.0/ -I/usr/local/include/
10 4 nyawn
 
11 13 nyawn
# These are for cygwin.  It assumes libusb.a  and usb.h are in the current directory.
12 4 nyawn
CFLAGS = -g -O2 -Wall
13
CC = gcc
14
LIBS = -L. -lioperm -lusb -lpthread
15 13 nyawn
INCLUDEDIRS = -I/usr/local/include/
16 4 nyawn
 
17
 
18
 
19
 
20
PROGRAMS = adv_jtag_bridge
21
 
22
HEADERS = adv_jtag_bridge.h adv_debug_module.h chain_commands.h opencores_tap.h \
23 13 nyawn
        altera_virtual_jtag.h rsp-server.h bsdl.h or32_selftest.c cable_common.h \
24 4 nyawn
        cable_parallel.h cable_sim.h cable_usbblaster.h cable_xpc_dlc9.h \
25
        bsdl_parse.h errcodes.h spr-defs.h except.h
26
 
27
SOURCES = adv_jtag_bridge.c rsp-server.c chain_commands.c cable_common.c bsdl.c \
28
        or32_selftest.c cable_parallel.c cable_sim.c cable_usbblaster.c cable_xpc_dlc9.c \
29
        bsdl_parse.c errcodes.c
30
 
31
OBJECTS = adv_jtag_bridge.o rsp-server.o chain_commands.o cable_common.o bsdl.o \
32
        or32_selftest.o cable_parallel.o cable_sim.o cable_usbblaster.o cable_xpc_dlc9.o \
33
        bsdl_parse.o errcodes.o
34
 
35
all: $(PROGRAMS)
36
 
37
default: $(PROGRAMS)
38
 
39
.c.o:
40
        $(CC) $(CFLAGS) -c $<
41
 
42 13 nyawn
adv_jtag_bridge: Makefile $(OBJECTS) $(HEADERS)
43 4 nyawn
        rm -f $@
44 13 nyawn
        $(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LIBS) $(INCLUDEDIRS)
45 4 nyawn
 
46
 
47
install: all
48
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
49
        for p in $(PROGRAMS) ; do \
50
            /bin/rm -f $(prefix)/bin/$$p; \
51
            /bin/cp -p $$p $(prefix)/bin/$$p; \
52
        done
53
 
54
clean: Makefile
55
        rm -f $(PROGRAMS) *.o *~

powered by: WebSVN 2.1.0

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