]> granicus.if.org Git - yasm/commitdiff
Undo part of the tools/re2c flattening. Specifying a re2c_CFLAGS causes
authorPeter Johnson <peter@tortall.net>
Sat, 5 Oct 2002 06:00:37 +0000 (06:00 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 5 Oct 2002 06:00:37 +0000 (06:00 -0000)
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

Makefile.am
tools/re2c/Makefile.inc
tools/re2c/main.c [moved from tools/re2c/re2c.c with 90% similarity]

index 5ce900fb61e2b957db453842220a6247ba446215..a2795384cf38dd7ea9798b78864a3d5d37fb41d3 100644 (file)
@@ -2,10 +2,9 @@
 
 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@
@@ -17,6 +16,8 @@ noinst_PROGRAMS =
 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@
@@ -36,7 +37,6 @@ include src/Makefile.inc
 EXTRA_DIST += \
        out_test.sh \
        test_hd.pl \
-       strsep.c mergesort.c \
        COPYING.LIB-2.0 \
        splint.sh \
        Mkfiles/Makefile.flat \
index e113b6bff1b4ee4ec21fc6e6a57d9b5af43f5b0c..4ea8621a4adbe28db4eebe54d03b814a2b21cd0e 100644 (file)
@@ -2,6 +2,7 @@
 
 noinst_PROGRAMS += re2c
 
+re2c_CFLAGS =
 re2c_SOURCES = \
        tools/re2c/basics.h             \
        tools/re2c/globals.h            \
@@ -11,7 +12,7 @@ re2c_SOURCES = \
        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            \
similarity index 90%
rename from tools/re2c/re2c.c
rename to tools/re2c/main.c
index 412e59e3ea440f650f3e9815e020dd40e566d534..4537bca6b31a989a208475125f857e74354af66c 100644 (file)
@@ -3,9 +3,9 @@
 #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;