X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2FMakefile.am;h=a1b46f853bbdc5733756c7f050a8bf53d08f723f;hp=ba44adb3846a36c42feee244157456df5bcde96e;hb=5be455a710c57bbbbd49c2d671b42098db7be5dc;hpb=f3e6f584f12dbde9ba9806ed4a412db0524d438c diff --git a/src/flash/Makefile.am b/src/flash/Makefile.am index ba44adb384..a1b46f853b 100644 --- a/src/flash/Makefile.am +++ b/src/flash/Makefile.am @@ -1,30 +1,13 @@ -SUBDIRS = \ - nor \ - nand +noinst_LTLIBRARIES += %D%/libflash.la +%C%_libflash_la_SOURCES = \ + %D%/common.c %D%/common.h \ + %D%/mflash.c %D%/mflash.h -AM_CPPFLAGS = \ - -I$(top_srcdir)/src +%C%_libflash_la_LIBADD = \ + %D%/nor/libocdflashnor.la \ + %D%/nand/libocdflashnand.la -METASOURCES = AUTO -noinst_LTLIBRARIES = libflash.la -libflash_la_SOURCES = \ - common.c \ - arm_nandio.c \ - nand_ecc.c \ - nand_ecc_kw.c \ - nand.c \ - mflash.c +STARTUP_TCL_SRCS += %D%/startup.tcl -libflash_la_LIBADD = \ - $(top_builddir)/src/flash/nor/libocdflashnor.la \ - $(top_builddir)/src/flash/nand/libocdflashnand.la - -noinst_HEADERS = \ - arm_nandio.h \ - common.h \ - mflash.h \ - nand.h - -EXTRA_DIST = startup.tcl - -MAINTAINERCLEANFILES = $(srcdir)/Makefile.in +include %D%/nor/Makefile.am +include %D%/nand/Makefile.am