X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=d630bd623f08390acad076478ed1f75a3131bb7d;hb=refs%2Fchanges%2F79%2F2079%2F2;hp=3a92fffee3c43bd426a6f22c1001449fef026d7e;hpb=b302344779941f36129f1c09c24c5bbc414c4744;p=openocd.git diff --git a/src/Makefile.am b/src/Makefile.am index 3a92fffee3..d630bd623f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,14 +12,10 @@ SUBDIRS = \ server \ rtos -lib_LTLIBRARIES = libopenocd.la +noinst_LTLIBRARIES = libopenocd.la bin_PROGRAMS = openocd -if ECOSBOARD -MAINFILE = ecosboard.c -else MAINFILE = main.c -endif openocd_SOURCES = $(MAINFILE) openocd_LDADD = libopenocd.la @@ -67,29 +63,6 @@ else MINGWLDADD = endif -if FT2232_LIBFTDI -FTDI2232LIB = -lftdi -lusb -else -if USB_BLASTER_LIBFTDI -FTDI2232LIB = -lftdi -lusb -else -if PRESTO_LIBFTDI -FTDI2232LIB = -lftdi -lusb -else -FTDI2232LIB = -endif -endif -endif - -LIBUSB = -if USE_LIBUSB1 -LIBUSB += -lusb-1.0 -endif - -if USE_LIBUSB0 -LIBUSB += -lusb -endif - libopenocd_la_LIBADD = \ $(top_builddir)/src/xsvf/libxsvf.la \ $(top_builddir)/src/svf/libsvf.la \ @@ -101,7 +74,8 @@ libopenocd_la_LIBADD = \ $(top_builddir)/src/server/libserver.la \ $(top_builddir)/src/rtos/librtos.la \ $(top_builddir)/src/helper/libhelper.la \ - $(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB) + $(LIBFTDI_LIBS) $(MINGWLDADD) \ + $(HIDAPI_LIBS) $(LIBUSB1_LIBS) $(LIBUSB0_LIBS) STARTUP_TCL_SRCS = \ $(srcdir)/helper/startup.tcl \ @@ -129,7 +103,7 @@ CLEANFILES = startup.tcl startup_tcl.c # we do not want generated file in the dist dist-hook: rm -f $(distdir)/startup_tcl.c - + MAINTAINERCLEANFILES = $(srcdir)/Makefile.in # The "quick" target builds executables & reinstalls the executables