X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2FMakefile.am;h=a1b46f853bbdc5733756c7f050a8bf53d08f723f;hp=ece4018370b088352cf69ebd50e7e63b91b50c10;hb=HEAD;hpb=838cd58e24a18102b8a140df9fa993fe65706828 diff --git a/src/flash/Makefile.am b/src/flash/Makefile.am index ece4018370..c5eb2482b2 100644 --- a/src/flash/Makefile.am +++ b/src/flash/Makefile.am @@ -1,23 +1,14 @@ -include $(top_srcdir)/common.mk +# SPDX-License-Identifier: GPL-2.0-or-later -SUBDIRS = \ - nor \ - nand +noinst_LTLIBRARIES += %D%/libflash.la +%C%_libflash_la_SOURCES = \ + %D%/common.c %D%/common.h -METASOURCES = AUTO -noinst_LTLIBRARIES = libflash.la -libflash_la_SOURCES = \ - common.c \ - mflash.c +%C%_libflash_la_LIBADD = \ + %D%/nor/libocdflashnor.la \ + %D%/nand/libocdflashnand.la -libflash_la_LIBADD = \ - $(top_builddir)/src/flash/nor/libocdflashnor.la \ - $(top_builddir)/src/flash/nand/libocdflashnand.la +STARTUP_TCL_SRCS += %D%/startup.tcl -noinst_HEADERS = \ - common.h \ - mflash.h - -EXTRA_DIST = startup.tcl - -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in +include %D%/nor/Makefile.am +include %D%/nand/Makefile.am