1# Makefile.in for indent
2# Based on the original Makefile.
3#
4# Copyright (c) 1987 Regents of the University of California.
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms are permitted
8# provided that the above copyright notice and this paragraph are
9# duplicated in all such forms and that any documentation,
10# advertising materials, and other materials related to such
11# distribution and use acknowledge that the software was developed
12# by the University of California, Berkeley.  The name of the
13# University may not be used to endorse or promote products derived
14# from this software without specific prior written permission.
15# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18#
19
20# The placeholders filled in by configure
21MAKE=make
22SHELL=@CONFIG_SHELL@
23INSTALL=@INSTALL@
24mkinstalldirs=$(SHELL) @top_srcdir@/mkinstalldirs
25
26CC=@CC@
27
28prefix=@prefix@
29exec_prefix=@exec_prefix@
30datarootdir=@datarootdir@
31
32SUBDIRS =
33SED = sed
34
35BINDIR=@bindir@
36MUD_LIB=@libdir@
37ERQ_DIR=@libexecdir@
38
39# ---------------------------------------------------------
40
41CFLAGS=	-g
42
43SRCS=	indent.c io.c lexi.c parse.c pr_comment.c args.c globs.c
44OBJS=	indent.o io.o lexi.o parse.o pr_comment.o args.o globs.o
45HEADERS= indent_globs.h version.h
46MAN=	indent.texinfo ChangeLog Projects
47
48all: indent
49
50indent: ${OBJS} ${LIBC}
51	${CC} -o $@ ${LDFLAGS} ${OBJS}
52
53indent.tar.Z: ${SRCS} Makefile ${MAN} ${HEADERS}
54	tar -c -z -f indent.tar.Z ${SRCS} Makefile ${MAN} ${HEADERS}
55
56${OBJS}: indent_globs.h
57args.o: version.h
58
59clean:
60	rm -f ${OBJS} core indent
61
62install:	indent
63	cp $? ${BINDIR}
64#	$(INSTALL) -c -s $? $(BINDIR)
65
66