openocd: build: add SPDX tag
[fw/openocd] / src / jtag / aice / Makefile.am
index 7b9469d86f33761ebd6d034df3f8ebf3bf475e0d..bc5dac1e24367436ff6587af0c33da12881aa862 100644 (file)
@@ -1,27 +1,16 @@
-include $(top_srcdir)/common.mk
+# SPDX-License-Identifier: GPL-2.0-or-later
 
-AM_CPPFLAGS += -I$(top_srcdir)/src/jtag/drivers $(LIBUSB1_CFLAGS) $(LIBUSB0_CFLAGS)
+noinst_LTLIBRARIES += %D%/libocdaice.la
 
-noinst_LTLIBRARIES = libocdaice.la
-
-libocdaice_la_SOURCES = \
-       $(AICEFILES)
-
-AICEFILES =
-
-if AICE
-AICEFILES += aice_transport.c
-AICEFILES += aice_interface.c
-AICEFILES += aice_port.c
-AICEFILES += aice_usb.c
-AICEFILES += aice_pipe.c
-endif
-
-noinst_HEADERS = \
-       aice_transport.h \
-       aice_interface.h \
-       aice_port.h \
-       aice_usb.h \
-       aice_pipe.h
-
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+%C%_libocdaice_la_CPPFLAGS = -I$(top_srcdir)/src/jtag/drivers $(AM_CPPFLAGS) $(LIBUSB1_CFLAGS)
+%C%_libocdaice_la_SOURCES = \
+       %D%/aice_transport.c \
+       %D%/aice_interface.c \
+       %D%/aice_port.c \
+       %D%/aice_usb.c \
+       %D%/aice_pipe.c \
+       %D%/aice_transport.h \
+       %D%/aice_interface.h \
+       %D%/aice_port.h \
+       %D%/aice_usb.h \
+       %D%/aice_pipe.h