summaryrefslogtreecommitdiff
path: root/lib/doc-support/Makefile.in
blob: 86007941a71c5f6dace4d22dbbb4d37f84235b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# simple makefile to create texindex
#
# Copyright (C) 1996-2005 Free Software Foundation, Inc.     

#   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, either version 3 of the License, or
#   (at your option) any later version.

#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.

#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.

topdir = @top_srcdir@
srcdir = @srcdir@
VPATH = .:@srcdir@
BUILD_DIR = @BUILD_DIR@

CC = @CC@
RM = rm

SHELL = @MAKE_SHELL@

DEFS = @DEFS@
CFLAGS = @CFLAGS@ @LOCAL_CFLAGS@
LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
CPPFLAGS = @CPPFLAGS@

INCLUDES = -I. -I../.. -I$(topdir)

CCFLAGS = $(CFLAGS) $(DEFS) $(CPPFLAGS) ${INCLUDES}

.c.o:
	$(RM) -f $@
	$(CC) $(CCFLAGS) -c $<

OBJECTS = texindex.o getopt.o getopt1.o
SOURCES = texindex.c getopt.c getopt1.c

all: texindex

texindex: $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)

clean:
	$(RM) $(OBJECTS) texindex

distclean mostlyclean realclean maintainer-clean: clean
	$(RM) Makefile