## Where will the generated files like config.h be included from?
## This is also why you _must_ use <...> instead of "..."
## when #include'ing generated files.
-cppflags = -Demacs -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS)
+cppflags = -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS)
cflags = $(CFLAGS) $(cppflags) $(c_switch_general)
ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general)
${CC} -c $(cflags) ${srcdir}/../src/alloca.c
regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h
- $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \
+ $(CC) -c $(cflags) \
-DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c
etags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/etags.c \
$(CC) $(cflags) ${srcdir}/make-docfile.c $(ldflags) -o $@
digest-doc: ${srcdir}/digest-doc.c
- $(CC) $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@
+ $(CC) -Demacs $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@
sorted-doc: ${srcdir}/sorted-doc.c
$(CC) $(cflags) ${srcdir}/sorted-doc.c $(ldflags) -o $@
## because XEmacs provides built-in timer facilities.
make-path: ${srcdir}/make-path.c ../src/config.h
- $(CC) $(cflags) ${srcdir}/make-path.c -o $@
+ $(CC) -Demacs $(cflags) ${srcdir}/make-path.c -o $@
## These are NOT included in INSTALLABLES or UTILITIES.
## See ../src/Makefile.in.in.