Blame src/Makefile.am

Packit f00812
AM_YFLAGS = -d
Packit f00812
localedir = $(datadir)/locale
Packit f00812
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl
Packit f00812
LIBS = @LIBS@
Packit f00812
Packit f00812
m4 = @M4@
Packit f00812
Packit f00812
bin_PROGRAMS = flex
Packit f00812
noinst_PROGRAMS = stage1flex
Packit f00812
lib_LTLIBRARIES = \
Packit f00812
	libfl.la \
Packit f00812
	libfl_pic.la
Packit f00812
Packit f00812
stage1flex_SOURCES = \
Packit f00812
	scan.l \
Packit f00812
	$(COMMON_SOURCES)
Packit f00812
Packit f00812
flex_SOURCES = \
Packit f00812
	stage1scan.l \
Packit f00812
	$(COMMON_SOURCES)
Packit f00812
Packit f00812
COMMON_SOURCES = \
Packit f00812
	buf.c \
Packit f00812
	ccl.c \
Packit f00812
	dfa.c \
Packit f00812
	ecs.c \
Packit f00812
	filter.c \
Packit f00812
	gen.c \
Packit f00812
	main.c \
Packit f00812
	misc.c \
Packit f00812
	nfa.c \
Packit f00812
	options.c \
Packit f00812
	parse.y \
Packit f00812
	regex.c \
Packit f00812
	scanflags.c \
Packit f00812
	scanopt.c \
Packit f00812
	skel.c \
Packit f00812
	sym.c \
Packit f00812
	tables.c \
Packit f00812
	tables_shared.c \
Packit f00812
	tblcmp.c \
Packit f00812
	yylex.c
Packit f00812
Packit f00812
LDADD = ../lib/libcompat.la @LIBINTL@
Packit f00812
Packit f00812
libfl_la_SOURCES = \
Packit f00812
	libmain.c \
Packit f00812
	libyywrap.c
Packit f00812
Packit f00812
libfl_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
Packit f00812
Packit f00812
libfl_pic_la_SOURCES = \
Packit f00812
	libmain.c \
Packit f00812
	libyywrap.c
Packit f00812
Packit f00812
libfl_pic_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
Packit f00812
Packit f00812
noinst_HEADERS = \
Packit f00812
	flexdef.h \
Packit f00812
	flexint.h \
Packit f00812
	version.h \
Packit f00812
	options.h \
Packit f00812
	scanopt.h \
Packit f00812
	tables.h \
Packit f00812
	tables_shared.h
Packit f00812
Packit f00812
include_HEADERS = \
Packit f00812
	FlexLexer.h
Packit f00812
Packit f00812
EXTRA_DIST = \
Packit f00812
	flex.skl \
Packit f00812
	mkskel.sh \
Packit f00812
	gettext.h
Packit f00812
Packit f00812
DISTCLEANFILES = stage1scan.c
Packit f00812
Packit f00812
MAINTAINERCLEANFILES = skel.c
Packit f00812
Packit f00812
$(srcdir)/skel.c: flex.skl mkskel.sh flexint.h tables_shared.h
Packit f00812
	sed 's/m4_/m4postproc_/g; s/m4preproc_/m4_/g' $(srcdir)/flex.skl | \
Packit f00812
	  $(m4) -P -I $(srcdir)						   \
Packit f00812
	    -DFLEX_MAJOR_VERSION=`   echo $(VERSION)|cut -f 1 -d .`	   \
Packit f00812
	    -DFLEX_MINOR_VERSION=`   echo $(VERSION)|cut -f 2 -d .`	   \
Packit f00812
	    -DFLEX_SUBMINOR_VERSION=`echo $(VERSION)|cut -f 3 -d .` |	   \
Packit f00812
	  sed 's/m4postproc_/m4_/g' |					   \
Packit f00812
	  $(SHELL) $(srcdir)/mkskel.sh >skel.c.tmp
Packit f00812
	mv skel.c.tmp $(srcdir)/skel.c
Packit f00812
Packit f00812
stage1scan.l: scan.l
Packit f00812
	cp $(srcdir)/scan.l $(srcdir)/stage1scan.l
Packit f00812
Packit f00812
stage1scan.c: stage1scan.l stage1flex$(EXEEXT)
Packit f00812
	$(top_builddir)/src/stage1flex$(EXEEXT) -o $@ $<
Packit f00812
Packit f00812
# Explicitly describe dependencies.
Packit f00812
# You can recreate this with `gcc -I. -MM *.c'
Packit f00812
buf.o: buf.c flexdef.h flexint.h
Packit f00812
ccl.o: ccl.c flexdef.h flexint.h
Packit f00812
dfa.o: dfa.c flexdef.h flexint.h tables.h tables_shared.h
Packit f00812
ecs.o: ecs.c flexdef.h flexint.h
Packit f00812
scanflags.o: scanflags.c flexdef.h flexint.h
Packit f00812
gen.o: gen.c flexdef.h flexint.h tables.h tables_shared.h
Packit f00812
libmain.o: libmain.c
Packit f00812
libyywrap.o: libyywrap.c
Packit f00812
main.o: main.c flexdef.h flexint.h version.h options.h scanopt.h \
Packit f00812
 tables.h tables_shared.h
Packit f00812
misc.o: misc.c flexdef.h flexint.h tables.h tables_shared.h
Packit f00812
nfa.o: nfa.c flexdef.h flexint.h
Packit f00812
options.o: options.c options.h scanopt.h flexdef.h flexint.h
Packit f00812
parse.o: parse.c flexdef.h flexint.h tables.h tables_shared.h
Packit f00812
scan.o: scan.c flexdef.h flexint.h parse.h
Packit f00812
scanopt.o: scanopt.c flexdef.h flexint.h scanopt.h
Packit f00812
skel.o: skel.c flexdef.h flexint.h
Packit f00812
sym.o: sym.c flexdef.h flexint.h
Packit f00812
tables.o: tables.c flexdef.h flexint.h tables.h tables_shared.h
Packit f00812
tables_shared.o: tables_shared.c flexdef.h flexint.h tables.h \
Packit f00812
 tables_shared.h
Packit f00812
tblcmp.o: tblcmp.c flexdef.h flexint.h
Packit f00812
yylex.o: yylex.c flexdef.h flexint.h parse.h
Packit f00812
filter.o: filter.c flexdef.h flexint.h
Packit f00812
Packit f00812
# Run GNU indent on sources. Don't run this unless all the sources compile cleanly.
Packit f00812
#
Packit f00812
# Whole idea:
Packit f00812
#   1. Check for .indent.pro, otherwise indent will use unknown
Packit f00812
#      settings, or worse, the GNU defaults.)
Packit f00812
#   2. Check that this is GNU indent.
Packit f00812
#   3. Make sure to process only the NON-generated .c and .h files.
Packit f00812
#   4. Run indent twice per file. The first time is a test.
Packit f00812
#      Otherwise, indent overwrites your file even if it fails!
Packit f00812
indentfiles = \
Packit f00812
	buf.c \
Packit f00812
	ccl.c \
Packit f00812
	dfa.c \
Packit f00812
	ecs.c \
Packit f00812
	scanflags.c \
Packit f00812
	filter.c \
Packit f00812
	flexdef.h \
Packit f00812
	gen.c \
Packit f00812
	libmain.c \
Packit f00812
	libyywrap.c \
Packit f00812
	main.c \
Packit f00812
	misc.c \
Packit f00812
	nfa.c \
Packit f00812
	options.c \
Packit f00812
	options.h \
Packit f00812
	regex.c \
Packit f00812
	scanopt.c \
Packit f00812
	scanopt.h \
Packit f00812
	sym.c \
Packit f00812
	tables.c \
Packit f00812
	tables.h \
Packit f00812
	tables_shared.c \
Packit f00812
	tables_shared.h \
Packit f00812
	tblcmp.c
Packit f00812
Packit f00812
indent:
Packit f00812
	if [ -f .indent.pro ] ; then \
Packit f00812
	for f in $(indentfiles);\
Packit f00812
	do\
Packit f00812
		echo indenting $$f ;\
Packit f00812
		$(indent) < $$f >/dev/null && indent $$f || echo $$f FAILED to indent ;\
Packit f00812
	done \
Packit f00812
	fi