| 1 | ## -*- text -*- ####################################################
|
|---|
| 2 | # #
|
|---|
| 3 | # Makefile for the GNU Glob Library. #
|
|---|
| 4 | # #
|
|---|
| 5 | ####################################################################
|
|---|
| 6 | #
|
|---|
| 7 | # Copyright (C) 1996-2005 Free Software Foundation, Inc.
|
|---|
| 8 |
|
|---|
| 9 | # This program is free software; you can redistribute it and/or modify
|
|---|
| 10 | # it under the terms of the GNU General Public License as published by
|
|---|
| 11 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 12 | # any later version.
|
|---|
| 13 |
|
|---|
| 14 | # This program is distributed in the hope that it will be useful,
|
|---|
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 17 | # GNU General Public License for more details.
|
|---|
| 18 |
|
|---|
| 19 | # You should have received a copy of the GNU General Public License
|
|---|
| 20 | # along with this program; if not, write to the Free Software
|
|---|
| 21 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|---|
| 22 |
|
|---|
| 23 | srcdir = @srcdir@
|
|---|
| 24 | VPATH = .;@srcdir@
|
|---|
| 25 | topdir = @top_srcdir@
|
|---|
| 26 | BUILD_DIR = @BUILD_DIR@
|
|---|
| 27 |
|
|---|
| 28 | INSTALL = @INSTALL@
|
|---|
| 29 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|---|
| 30 | INSTALL_DATA = @INSTALL_DATA@
|
|---|
| 31 |
|
|---|
| 32 | CC = @CC@
|
|---|
| 33 | RANLIB = @RANLIB@
|
|---|
| 34 | AR = @AR@
|
|---|
| 35 | ARFLAGS = @ARFLAGS@
|
|---|
| 36 | RM = rm
|
|---|
| 37 | CP = cp
|
|---|
| 38 | MV = mv
|
|---|
| 39 |
|
|---|
| 40 | SHELL = @MAKE_SHELL@
|
|---|
| 41 |
|
|---|
| 42 | PROFILE_FLAGS = @PROFILE_FLAGS@
|
|---|
| 43 |
|
|---|
| 44 | CFLAGS = @CFLAGS@
|
|---|
| 45 | LOCAL_CFLAGS = @LOCAL_CFLAGS@
|
|---|
| 46 | CPPFLAGS = @CPPFLAGS@
|
|---|
| 47 | LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@
|
|---|
| 48 |
|
|---|
| 49 | DEFS = @DEFS@
|
|---|
| 50 | LOCAL_DEFS = @LOCAL_DEFS@
|
|---|
| 51 |
|
|---|
| 52 | BASHINCDIR = ${topdir}/include
|
|---|
| 53 |
|
|---|
| 54 | INCLUDES = -I. -I../.. -I$(topdir) -I$(BASHINCDIR) -I$(topdir)/lib
|
|---|
| 55 |
|
|---|
| 56 | CCFLAGS = $(PROFILE_FLAGS) $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) ${INCLUDES} \
|
|---|
| 57 | $(LOCAL_CFLAGS) $(CFLAGS)
|
|---|
| 58 |
|
|---|
| 59 | # Here is a rule for making .o files from .c files that doesn't force
|
|---|
| 60 | # the type of the machine (like -sun3) into the flags.
|
|---|
| 61 | .c.o:
|
|---|
| 62 | $(CC) -c $(CCFLAGS) $<
|
|---|
| 63 |
|
|---|
| 64 | # The name of the library target.
|
|---|
| 65 | LIBRARY_NAME = libglob.a
|
|---|
| 66 |
|
|---|
| 67 | # The C code source files for this library.
|
|---|
| 68 | CSOURCES = $(srcdir)/glob.c $(srcdir)/strmatch.c $(srcdir)/smatch.c \
|
|---|
| 69 | $(srcdir)/xmbsrtowcs.c
|
|---|
| 70 |
|
|---|
| 71 | # The header files for this library.
|
|---|
| 72 | HSOURCES = $(srcdir)/strmatch.h
|
|---|
| 73 |
|
|---|
| 74 | OBJECTS = glob.o strmatch.o smatch.o xmbsrtowcs.o
|
|---|
| 75 |
|
|---|
| 76 | # The texinfo files which document this library.
|
|---|
| 77 | DOCSOURCE = doc/glob.texi
|
|---|
| 78 | DOCOBJECT = doc/glob.dvi
|
|---|
| 79 | DOCSUPPORT = doc/Makefile
|
|---|
| 80 | DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT)
|
|---|
| 81 |
|
|---|
| 82 | SUPPORT = Makefile ChangeLog $(DOCSUPPORT)
|
|---|
| 83 |
|
|---|
|
|---|