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 19

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 14 nyawn
# with the -L command.
5 4 nyawn
#CFLAGS = -g -O2 -Wall
6
#CC = gcc
7 14 nyawn
#LIBS = -lusb -lpthread
8 13 nyawn
#INCLUDEDIRS = -I/usr/local/include/libusb-1.0/ -I/usr/local/include/
9 4 nyawn
 
10 14 nyawn
# These are for cygwin.  It assumes libusb.a is in the current directory.
11 4 nyawn
CFLAGS = -g -O2 -Wall
12
CC = gcc
13
LIBS = -L. -lioperm -lusb -lpthread
14 13 nyawn
INCLUDEDIRS = -I/usr/local/include/
15 4 nyawn
 
16 14 nyawn
# Uncomment the following line if you want to build for the legacy debug unit ('debug_if' core),
17
# leave commented out if you are building for the Advanced Debug Unit.
18
#CFLAGS +=  -D__LEGACY__
19 4 nyawn
 
20
 
21
PROGRAMS = adv_jtag_bridge
22
 
23 14 nyawn
HEADERS = adv_jtag_bridge.h chain_commands.h opencores_tap.h \
24 13 nyawn
        altera_virtual_jtag.h rsp-server.h bsdl.h or32_selftest.c cable_common.h \
25 4 nyawn
        cable_parallel.h cable_sim.h cable_usbblaster.h cable_xpc_dlc9.h \
26 14 nyawn
        bsdl_parse.h errcodes.h spr-defs.h except.h adv_dbg_commands.h dbg_api.h \
27
        legacy_dbg_commands.h
28 4 nyawn
 
29
SOURCES = adv_jtag_bridge.c rsp-server.c chain_commands.c cable_common.c bsdl.c \
30
        or32_selftest.c cable_parallel.c cable_sim.c cable_usbblaster.c cable_xpc_dlc9.c \
31 14 nyawn
        bsdl_parse.c errcodes.c adv_dbg_commands.c dbg_api.c legacy_dbg_commands.c
32 4 nyawn
 
33
OBJECTS = adv_jtag_bridge.o rsp-server.o chain_commands.o cable_common.o bsdl.o \
34
        or32_selftest.o cable_parallel.o cable_sim.o cable_usbblaster.o cable_xpc_dlc9.o \
35 14 nyawn
        bsdl_parse.o errcodes.o adv_dbg_commands.o dbg_api.o legacy_dbg_commands.o
36 4 nyawn
 
37
all: $(PROGRAMS)
38
 
39
default: $(PROGRAMS)
40
 
41
.c.o:
42
        $(CC) $(CFLAGS) -c $<
43
 
44 13 nyawn
adv_jtag_bridge: Makefile $(OBJECTS) $(HEADERS)
45 4 nyawn
        rm -f $@
46 13 nyawn
        $(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LIBS) $(INCLUDEDIRS)
47 4 nyawn
 
48
 
49
install: all
50
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
51
        for p in $(PROGRAMS) ; do \
52
            /bin/rm -f $(prefix)/bin/$$p; \
53
            /bin/cp -p $$p $(prefix)/bin/$$p; \
54
        done
55
 
56
clean: Makefile
57
        rm -f $(PROGRAMS) *.o *~

powered by: WebSVN 2.1.0

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