URL
https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk
Subversion Repositories adv_debug_sys
[/] [adv_debug_sys/] [tags/] [ADS_RELEASE_1_0_0/] [Software/] [adv_jtag_bridge/] [Makefile] - Rev 66
Go to most recent revision | Compare with Previous | Blame | View Log
prefix = /usr/local
# These are for native Linux. You may need to put the path to libusb.a into the LIBS variable
# with the -L<dir> command.
#CFLAGS = -g -O2 -Wall
#CC = gcc
#LIBS = -lusb -lpthread
# These are for cygwin. It assumes libusb.a is in the current directory.
CFLAGS = -g -O2 -Wall
CC = gcc
LIBS = -L. -lioperm -lusb -lpthread
PROGRAMS = adv_jtag_bridge
HEADERS = adv_jtag_bridge.h adv_debug_module.h chain_commands.h opencores_tap.h \
altera_virtual_jtag.h rsp-server.h bsdl.h usb.h or32_selftest.c cable_common.h \
cable_parallel.h cable_sim.h cable_usbblaster.h cable_xpc_dlc9.h \
bsdl_parse.h errcodes.h spr-defs.h except.h
SOURCES = adv_jtag_bridge.c rsp-server.c chain_commands.c cable_common.c bsdl.c \
or32_selftest.c cable_parallel.c cable_sim.c cable_usbblaster.c cable_xpc_dlc9.c \
bsdl_parse.c errcodes.c
OBJECTS = adv_jtag_bridge.o rsp-server.o chain_commands.o cable_common.o bsdl.o \
or32_selftest.o cable_parallel.o cable_sim.o cable_usbblaster.o cable_xpc_dlc9.o \
bsdl_parse.o errcodes.o
all: $(PROGRAMS)
default: $(PROGRAMS)
.c.o:
$(CC) $(CFLAGS) -c $<
adv_jtag_bridge: Makefile $(OBJECTS) $(HEADERS) libusb.a
rm -f $@
$(CC) -o $@ $(CFLAGS) $(OBJECTS) $(LIBS)
install: all
[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
for p in $(PROGRAMS) ; do \
/bin/rm -f $(prefix)/bin/$$p; \
/bin/cp -p $$p $(prefix)/bin/$$p; \
done
clean: Makefile
rm -f $(PROGRAMS) *.o *~
Go to most recent revision | Compare with Previous | Blame | View Log