automake to automatically prepend re2c- to all generated object files,
eliminating the main.o conflict. Also, it prevents extended compilation flags
from applying to the re2c build.
In Makefile.am, also allow automake to automatically include the autoconf
conditionally-included files strsep and mergesort.
svn path=/trunk/yasm/; revision=739
SUBDIRS = libltdl m4 po .
-CFLAGS = @ANSI_CFLAGS@
AM_YFLAGS = -d
-INCLUDES = \
- -I$(top_srcdir) \
+AM_CFLAGS = @ANSI_CFLAGS@
+AM_CPPFLAGS = \
-I$(top_srcdir)/src \
-I$(top_srcdir)/check \
@INCLTDL@
yasm_SOURCES =
yasm_LDFLAGS =
yasm_LDADD = libyasm.la @LIBLTDL@ $(INTLLIBS) @LIBADD_DL@
+#EXTRA_yasm_SOURCES = \
+# strsep.c mergesort.c
lib_LTLIBRARIES = libyasm.la
libyasm_la_LIBADD = @LTLIBOBJS@
EXTRA_DIST += \
out_test.sh \
test_hd.pl \
- strsep.c mergesort.c \
COPYING.LIB-2.0 \
splint.sh \
Mkfiles/Makefile.flat \
noinst_PROGRAMS += re2c
+re2c_CFLAGS =
re2c_SOURCES = \
tools/re2c/basics.h \
tools/re2c/globals.h \
tools/re2c/code.c \
tools/re2c/dfa.h \
tools/re2c/dfa.c \
- tools/re2c/re2c.c \
+ tools/re2c/main.c \
tools/re2c/parse.h \
tools/re2c/re2c-parser.y \
tools/re2c/actions.c \
#include <stdio.h>
#include <stdlib.h>
-#include "tools/re2c/globals.h"
-#include "tools/re2c/parse.h"
-#include "tools/re2c/dfa.h"
+#include "globals.h"
+#include "parse.h"
+#include "dfa.h"
const char *fileName;
int sFlag = 0;