pass -x c to gcc so it doesn't try to pass the .gc files as linker input

* configure.in: pass -x c to gcc so it doesn't try to
pass the .gc files as linker input

* Makefile.am: use builtin automake rules for yacc/lex

-Yosh
This commit is contained in:
Manish Singh
1999-01-10 00:02:45 +00:00
parent 4cdd6ba12f
commit 42c76a1805
3 changed files with 34 additions and 33 deletions

View File

@ -1,3 +1,10 @@
Sat Jan 9 16:00:22 PST 1999 Manish Singh <yosh@gimp.org>
* configure.in: pass -x c to gcc so it doesn't try to
pass the .gc files as linker input
* Makefile.am: use builtin automake rules for yacc/lex
Thu Jan 7 15:50:21 PST 1999 Manish Singh <yosh@gimp.org> Thu Jan 7 15:50:21 PST 1999 Manish Singh <yosh@gimp.org>
* configure.in * configure.in

View File

@ -1,40 +1,22 @@
noinst_PROGRAMS = gcg noinst_PROGRAMS = gcg
CPP=cpp -nostdinc -I /usr/share/gcg -I /usr/local/share/gcg -I . # CPP=cpp -nostdinc -I /usr/share/gcg -I /usr/local/share/gcg -I .
CFLAGS=-g -Wall -W "-DCPP=\"$(CPP)\"" CPPFLAGS = -DCPP_SEARCH=\"" -I $(datadir)/gcg -I ."\"
INCLUDES = @GLIB_CFLAGS@ INCLUDES = @GLIB_CFLAGS@
YFLAGS = -d -v YFLAGS = -d -v
LFLAGS = -d LFLAGS = -d
LIBS = @GLIB_LIBS@ LIBS = @GLIB_LIBS@
lexer.c: $(srcdir)/lexer.l
@rm -f $@
$(LEX) $(LFLAGS) -t $< >$@
parser.c parser.h: $(srcdir)/parser.y
$(YACC) $(YFLAGS) $<
test -f y.tab.c && mv -f y.tab.c parser.c
test -f y.tab.h && mv -f y.tab.h parser.h
MOSTLYCLEANFILES = parser.output y.output
DISTCLEANFILES = parser.c parser.h lexer.c
EXTRA_DIST = parser.y lexer.l
BUILT_SOURCES = lexer.c parser.c parser.h
gcg_SOURCES = \ gcg_SOURCES = \
gcg.c \ gcg.c \
parser.c \ parser.y \
lexer.c \ lexer.l \
output.c \ output.c \
pnode.c \ pnode.c \
db.c \ db.c \
output_enum.c \ output_enum.c \
output_flags.c \ output_flags.c \
output_object.c \ output_object.c \
fp.c \ fp.c \
marshall.c \ marshall.c
parser.h
gcg_DEPENDS = parser.h

View File

@ -1,11 +1,23 @@
AC_INIT(gcg.c) AC_INIT(gcg.c)
AM_INIT_AUTOMAKE(gcg, 0.1) AM_INIT_AUTOMAKE(gcg, 0.1)
AM_MAINTAINER_MODE
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_CPP AC_PROG_CPP
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PROG_YACC AC_PROG_YACC
AM_PROG_LEX AM_PROG_LEX
AM_PATH_GLIB(1.0.0,,AC_ERROR(need at least Glib version 1.0)) AM_PATH_GLIB(1.0.0,,AC_ERROR(need at least Glib version 1.0))
CPP_PROGRAM="$CPP" CPP_PROGRAM="$CPP"
AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP") if test "x$GCC" = "xyes"; then
AC_OUTPUT([Makefile ex/Makefile]) CPP_PROGRAM="$CPP_PROGRAM -x c"
fi
AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP_PROGRAM")
AC_OUTPUT([
Makefile
ex/Makefile])