X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2FMakefile.am;h=3cbfd3e49e3c4ae3da1dc893deea4e7979782c6b;hb=950f7e3cd95ffbda3d8f59314777de000e518fba;hp=30b67f2693215ea90f2cf69cfb01fd6fe278dc17;hpb=15b4be1c9c8abff091a9c6048b3bb5bea256dce9;p=openocd.git diff --git a/src/Makefile.am b/src/Makefile.am index 30b67f2693..3cbfd3e49e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,9 +9,16 @@ endif openocd_SOURCES = $(MAINFILE) openocd.c # set the include path found by configure -INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/helper \ - -I$(top_srcdir)/src/jtag -I$(top_srcdir)/src/target -I$(top_srcdir)/src/xsvf -I$(top_srcdir)/src/svf \ - -I$(top_srcdir)/src/server -I$(top_srcdir)/src/flash -I$(top_srcdir)/src/pld $(all_includes) +AM_CPPFLAGS = \ + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/helper \ + -I$(top_srcdir)/src/jtag \ + -I$(top_srcdir)/src/target \ + -I$(top_srcdir)/src/xsvf \ + -I$(top_srcdir)/src/svf \ + -I$(top_srcdir)/src/server \ + -I$(top_srcdir)/src/flash \ + -I$(top_srcdir)/src/pld # pass path to prefix path openocd_CPPFLAGS = \ @@ -21,11 +28,11 @@ openocd_CPPFLAGS = \ if RELEASE openocd_CPPFLAGS += -DRELSTR=\"Release\" -DPKGBLDREV=\"\" else -openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh`\" +openocd_CPPFLAGS += -DRELSTR=\"svn:\" -DPKGBLDREV=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\" endif # add default CPPFLAGS -openocd_CPPFLAGS += @CPPFLAGS@ +openocd_CPPFLAGS += $(AM_CPPFLAGS) $(CPPFLAGS) # the library search path. openocd_LDFLAGS = $(all_libraries)