From 838cd58e24a18102b8a140df9fa993fe65706828 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Fri, 12 Nov 2010 11:41:55 +0000 Subject: build: add common.mk Rather than specifying common makefile variables move them all to a common.mk. Signed-off-by: Spencer Oliver --- src/flash/Makefile.am | 6 ++---- src/flash/nand/Makefile.am | 4 +--- src/flash/nor/Makefile.am | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src/flash') diff --git a/src/flash/Makefile.am b/src/flash/Makefile.am index 9d983a8d..ece40183 100644 --- a/src/flash/Makefile.am +++ b/src/flash/Makefile.am @@ -1,11 +1,9 @@ +include $(top_srcdir)/common.mk + SUBDIRS = \ nor \ nand -AM_CPPFLAGS = \ - -I$(top_srcdir)/src \ - -I$(top_builddir)/src - METASOURCES = AUTO noinst_LTLIBRARIES = libflash.la libflash_la_SOURCES = \ diff --git a/src/flash/nand/Makefile.am b/src/flash/nand/Makefile.am index 8ea7b362..9aa0e69f 100644 --- a/src/flash/nand/Makefile.am +++ b/src/flash/nand/Makefile.am @@ -1,6 +1,4 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src \ - -I$(top_builddir)/src +include $(top_srcdir)/common.mk noinst_LTLIBRARIES = libocdflashnand.la diff --git a/src/flash/nor/Makefile.am b/src/flash/nor/Makefile.am index 852c0a37..e281c22b 100644 --- a/src/flash/nor/Makefile.am +++ b/src/flash/nor/Makefile.am @@ -1,6 +1,4 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src \ - -I$(top_builddir)/src +include $(top_srcdir)/common.mk noinst_LTLIBRARIES = libocdflashnor.la libocdflashnor_la_SOURCES = \ -- cgit v1.2.3