diff --git a/src/Makefile.am b/src/Makefile.am index 1653321..3ccc865 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,10 +8,10 @@ # to the appropriate directories specified by --prefix # during configure -AUTOMAKE_OPTIONS = subdir-objects no-dependencies +AUTOMAKE_OPTIONS = subdir-objects no-dependencies nostdinc # Compilation Flags -CFLAGS += $(DEBUG) $(OPTIM) $(X_CFLAGS) -I$(top_srcdir)/inc +AM_CFLAGS = $(DEBUG) $(OPTIM) $(X_CFLAGS) -I$(top_srcdir)/inc # Compiled Programs bin_PROGRAMS = sac @@ -46,7 +46,7 @@ sac_LDADD += $(X_PRE_LIBS) $(X_EXTRA_LIBS) $(X_LIBS) -lX11 # Readline/Editline Dependencies (Default = ON) if EDITLINE sac_LDADD += ../libedit/lib/libedit.a -CFLAGS += -I../libedit/include +AM_CFLAGS += -I../libedit/include endif EXTRA_DIST = describedirs gd3.x11/sac.bitmap \ diff --git a/utils/Makefile.am b/utils/Makefile.am index 6657d58..9268d51 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -1,8 +1,8 @@ # Do not create dependencies while compiling -AUTOMAKE_OPTIONS = no-dependencies +AUTOMAKE_OPTIONS = no-dependencies nostdinc -CFLAGS += $(DEBUG) $(OPTIM) +AM_CFLAGS = $(DEBUG) $(OPTIM) # Compiled programs to install bin_PROGRAMS = sgftops saclst sacswap bbfswap unvis