checkpatch: adapt shell script to the tool's new version
[fw/openocd] / src / Makefile.am
index 07981aa67ec2faea9f58fdd19d3081d9396b14c1..6d79cd6311b04a972a8e7e153740865dbaa06f15 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 noinst_LTLIBRARIES += %D%/libopenocd.la
 bin_PROGRAMS += %D%/openocd
 
@@ -53,7 +55,8 @@ endif
        %D%/target/libtarget.la \
        %D%/server/libserver.la \
        %D%/rtos/librtos.la \
-       %D%/helper/libhelper.la
+       %D%/helper/libhelper.la \
+       %D%/rtt/librtt.la
 
 BIN2C = $(srcdir)/%D%/helper/bin2char.sh
 
@@ -64,6 +67,7 @@ BUILT_SOURCES += %D%/startup_tcl.inc
 
 # Convert .tcl to c-array
 %D%/startup_tcl.inc: $(STARTUP_TCL_SRCS)
+       mkdir -p %D%
        cat $^ | $(BIN2C) > $@ || { rm -f $@; false; }
 
 # add generated files to make clean list
@@ -83,3 +87,4 @@ include %D%/rtos/Makefile.am
 include %D%/server/Makefile.am
 include %D%/flash/Makefile.am
 include %D%/pld/Makefile.am
+include %D%/rtt/Makefile.am