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 4

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
# with the -L command.
5
#CFLAGS = -g -O2 -Wall
6
#CC = gcc
7
#LIBS = -lusb -lpthread
8
 
9
# These are for cygwin.  It assumes libusb.a is in the current directory.
10
CFLAGS = -g -O2 -Wall
11
CC = gcc
12
LIBS = -L. -lioperm -lusb -lpthread
13
 
14
 
15
 
16
 
17
 
18
PROGRAMS = adv_jtag_bridge
19
 
20
HEADERS = adv_jtag_bridge.h adv_debug_module.h chain_commands.h opencores_tap.h \
21
        altera_virtual_jtag.h rsp-server.h bsdl.h usb.h or32_selftest.c cable_common.h \
22
        cable_parallel.h cable_sim.h cable_usbblaster.h cable_xpc_dlc9.h \
23
        bsdl_parse.h errcodes.h spr-defs.h except.h
24
 
25
SOURCES = adv_jtag_bridge.c rsp-server.c chain_commands.c cable_common.c bsdl.c \
26
        or32_selftest.c cable_parallel.c cable_sim.c cable_usbblaster.c cable_xpc_dlc9.c \
27
        bsdl_parse.c errcodes.c
28
 
29
OBJECTS = adv_jtag_bridge.o rsp-server.o chain_commands.o cable_common.o bsdl.o \
30
        or32_selftest.o cable_parallel.o cable_sim.o cable_usbblaster.o cable_xpc_dlc9.o \
31
        bsdl_parse.o errcodes.o
32
 
33
all: $(PROGRAMS)
34
 
35
default: $(PROGRAMS)
36
 
37
.c.o:
38
        $(CC) $(CFLAGS) -c $<
39
 
40
adv_jtag_bridge: Makefile $(OBJECTS) $(HEADERS) libusb.a
41
        rm -f $@
42
        $(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LIBS)
43
 
44
 
45
install: all
46
        [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
47
        for p in $(PROGRAMS) ; do \
48
            /bin/rm -f $(prefix)/bin/$$p; \
49
            /bin/cp -p $$p $(prefix)/bin/$$p; \
50
        done
51
 
52
clean: Makefile
53
        rm -f $(PROGRAMS) *.o *~

powered by: WebSVN 2.1.0

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