mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-22 21:37:58 +02:00
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# 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
|