mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
- Move src/target/{interface,target,board,test}/ into src/tcl/
- Remove existing rules in src/Makefile.am and src/target/Makefile.am.
- Add Makefile.am handling of *.cfg and *.tcl files in top Makefile.am:
- Add dist-hook to include such files under src/tcl in the distribution.
- Add install-data-hook to install contents of '$(top_srcdir)/src/tcl/'.
- Add uninstall-hook to remove the installed script files.
- Change paths to (un)install script files in '$(pkgdatadir)/scripts'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1918 b42882b7-edfa-0310-969c-e2dbd0fdcd60
96 lines
1.8 KiB
Makefile
96 lines
1.8 KiB
Makefile
SUBDIRS = helper jtag xsvf svf target server flash pld
|
|
|
|
lib_LTLIBRARIES = libopenocd.la
|
|
bin_PROGRAMS = openocd
|
|
|
|
if ECOSBOARD
|
|
MAINFILE = ecosboard.c
|
|
else
|
|
MAINFILE = main.c
|
|
endif
|
|
|
|
openocd_SOURCES = $(MAINFILE)
|
|
openocd_LDADD = libopenocd.la
|
|
|
|
libopenocd_la_SOURCES = openocd.c
|
|
|
|
# set the include path found by configure
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/src/helper \
|
|
-I$(top_srcdir)/src/jtag \
|
|
-I$(top_srcdir)/src/target \
|
|
-I$(top_srcdir)/src/xsvf \
|
|
-I$(top_srcdir)/src/svf \
|
|
-I$(top_srcdir)/src/server \
|
|
-I$(top_srcdir)/src/flash \
|
|
-I$(top_srcdir)/src/pld
|
|
|
|
# pass path to prefix path
|
|
libopenocd_la_CPPFLAGS = \
|
|
-DPKGLIBDIR=\"$(pkglibdir)\" \
|
|
-DPKGBLDDATE=\"`date +%F-%R`\"
|
|
|
|
if RELEASE
|
|
libopenocd_la_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\"
|
|
else
|
|
libopenocd_la_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
|
|
endif
|
|
|
|
# add default CPPFLAGS
|
|
libopenocd_la_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS)
|
|
|
|
# the library search path.
|
|
libopenocd_la_LDFLAGS = $(all_libraries)
|
|
|
|
if IS_MINGW
|
|
MINGWLDADD = -lwsock32
|
|
else
|
|
MINGWLDADD =
|
|
endif
|
|
|
|
if FT2232_LIBFTDI
|
|
FTDI2232LIB = -lftdi -lusb
|
|
else
|
|
if PRESTO_LIBFTDI
|
|
FTDI2232LIB = -lftdi -lusb
|
|
else
|
|
FTDI2232LIB =
|
|
endif
|
|
endif
|
|
|
|
if USBPROG
|
|
LIBUSB = -lusb
|
|
else
|
|
if JLINK
|
|
LIBUSB = -lusb
|
|
else
|
|
if RLINK
|
|
LIBUSB = -lusb
|
|
else
|
|
if VSLLINK
|
|
LIBUSB = -lusb
|
|
else
|
|
LIBUSB =
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
libopenocd_la_LIBADD = \
|
|
$(top_builddir)/src/xsvf/libxsvf.la \
|
|
$(top_builddir)/src/svf/libsvf.la \
|
|
$(top_builddir)/src/pld/libpld.la \
|
|
$(top_builddir)/src/jtag/libjtag.la \
|
|
$(top_builddir)/src/flash/libflash.la \
|
|
$(top_builddir)/src/target/libtarget.la \
|
|
$(top_builddir)/src/server/libserver.la \
|
|
$(top_builddir)/src/helper/libhelper.la \
|
|
$(FTDI2232LIB) $(MINGWLDADD) $(LIBUSB)
|
|
|
|
if HTTPD
|
|
libopenocd_la_LIBADD += -lmicrohttpd
|
|
endif
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|