# Generated automatically from Makefile.in by configure.
#
# This Makefile includes modification done by me,
# Ioannis Tambouras <ioannis@debian.org>, on work credited to
# Christopher Lott <lott@informatik.uni-kl.de>. All the hard work is his.
# Though my changes were many, they were only minor and were done to suit my
# tastes. Always send your thanks to Christopher, not to me. 
#
# Christopher Lott <lott@informatik.uni-kl.de>. 
# FB Informatik - Bau 57 / Universitaet KL / D--67653 Kaiserslautern / Germany
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation.  See the file COPYING for details.
#

# An ANSI C compiler is required because of function prototypes
# Flex is required.  Lex refuses to accept the file scan.l

#
CC	= gcc
DEFS	= 
CFLAGS	= -O
LDFLAGS = 
LIBS    = 
LEX	= flex

#
# how to install program and man page
#
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

#
# where to install the program and man page
#

prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
mandir = $(prefix)/man/man1

CPPFLAGS = -I. -I$(srcdir) $(DEFS)

.c.o:
	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

.l.c:
	$(LEX) -t $< > $@


#
# files needed to build the program
# the $U macro will be empty if the compiler supports prototypes,
# and have just an underscore if it does not - see targets below
#

SRCS	= scan.l csize.c
OBJS	= scan.o csize.o
HDRS	= scan.h
LIBS	=


all: csize

csize:	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)


$(OBJS): csize.h
scan.o: scan.h




install: csize
	$(INSTALL_PROGRAM) csize     $(bindir)
	$(INSTALL_DATA)    csize.1   $(mandir)




scan.c.flex: scan.c
	mv $? $@

clean:
	rm -f scan.c _csize.c _scan.c *.o csize



#
# for configuration etc.
#
Makefile: Makefile.in config.status
	$(SHELL) config.status
config.status: configure
	$(SHELL) config.status --recheck
configure: configure.in
	cd $(srcdir); autoconf
