Convert to non-recursive make
[openocd.git] / src / flash / Makefile.am
index 646889e..a1b46f8 100644 (file)
@@ -1,24 +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 \
-       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 = \
-       common.h \
-       mflash.h
-
-EXTRA_DIST = startup.tcl
-
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
+include %D%/nor/Makefile.am
+include %D%/nand/Makefile.am