Commit 42c76a18 authored by Manish Singh's avatar Manish Singh
Browse files

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
parent 4cdd6ba1
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>
* configure.in
......
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@
YFLAGS = -d -v
LFLAGS = -d
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.c \
parser.c \
lexer.c \
output.c \
pnode.c \
db.c \
output_enum.c \
output_flags.c \
output_object.c \
fp.c \
marshall.c \
parser.h
gcg_DEPENDS = parser.h
gcg.c \
parser.y \
lexer.l \
output.c \
pnode.c \
db.c \
output_enum.c \
output_flags.c \
output_object.c \
fp.c \
marshall.c
AC_INIT(gcg.c)
AM_INIT_AUTOMAKE(gcg, 0.1)
AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_CPP
AC_PROG_RANLIB
AC_PROG_YACC
AM_PROG_LEX
AM_PATH_GLIB(1.0.0,,AC_ERROR(need at least Glib version 1.0))
CPP_PROGRAM="$CPP"
AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP")
AC_OUTPUT([Makefile ex/Makefile])
if test "x$GCC" = "xyes"; then
CPP_PROGRAM="$CPP_PROGRAM -x c"
fi
AC_DEFINE_UNQUOTED(CPP_PROGRAM, "$CPP_PROGRAM")
AC_OUTPUT([
Makefile
ex/Makefile])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment