| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | ## -*- text -*- ####################################################
 | 
					
						
							|  |  |  | #								   #
 | 
					
						
							|  |  |  | # Makefile for the GNU Glob Library.				   #
 | 
					
						
							|  |  |  | #								   #
 | 
					
						
							|  |  |  | ####################################################################
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | srcdir = @srcdir@ | 
					
						
							|  |  |  | VPATH = .:@srcdir@ | 
					
						
							|  |  |  | topdir = @top_srcdir@ | 
					
						
							|  |  |  | BUILD_DIR = @BUILD_DIR@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | INSTALL = @INSTALL@ | 
					
						
							|  |  |  | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | 
					
						
							|  |  |  | INSTALL_DATA = @INSTALL_DATA@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CC = @CC@ | 
					
						
							|  |  |  | RANLIB = @RANLIB@ | 
					
						
							|  |  |  | AR = @AR@ | 
					
						
							|  |  |  | RM = rm | 
					
						
							|  |  |  | CP = cp | 
					
						
							|  |  |  | MV = mv | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CFLAGS = @CFLAGS@ | 
					
						
							|  |  |  | LOCAL_CFLAGS = @LOCAL_CFLAGS@ | 
					
						
							|  |  |  | CPPFLAGS = @CPPFLAGS@ | 
					
						
							|  |  |  | LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEFS = @DEFS@ | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | LOCAL_DEFS = @LOCAL_DEFS@ | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | INCLUDES = -I. -I../.. -I$(topdir) -I$(topdir)/lib | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) ${INCLUDES} $(LOCAL_CFLAGS) $(CFLAGS) | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Here is a rule for making .o files from .c files that doesn't force
 | 
					
						
							|  |  |  | # the type of the machine (like -sun3) into the flags.
 | 
					
						
							|  |  |  | .c.o: | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	$(CC) -c $(CCFLAGS) $< | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # The name of the library target.
 | 
					
						
							|  |  |  | LIBRARY_NAME = libglob.a | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The C code source files for this library.
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | CSOURCES = $(srcdir)/glob.c $(srcdir)/fnmatch.c | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # The header files for this library.
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | HSOURCES = $(srcdir)/fnmatch.h | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | OBJECTS = glob.o fnmatch.o | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The texinfo files which document this library.
 | 
					
						
							|  |  |  | DOCSOURCE = doc/glob.texi | 
					
						
							|  |  |  | DOCOBJECT = doc/glob.dvi | 
					
						
							|  |  |  | DOCSUPPORT = doc/Makefile | 
					
						
							|  |  |  | DOCUMENTATION = $(DOCSOURCE) $(DOCOBJECT) $(DOCSUPPORT) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SUPPORT = Makefile ChangeLog $(DOCSUPPORT) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SOURCES  = $(CSOURCES) $(HSOURCES) $(DOCSOURCE) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | THINGS_TO_TAR = $(SOURCES) $(SUPPORT) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ######################################################################
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all: $(LIBRARY_NAME) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $(LIBRARY_NAME): $(OBJECTS) | 
					
						
							|  |  |  | 	$(RM) -f $@ | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	$(AR) cr $@ $(OBJECTS) | 
					
						
							|  |  |  | 	-test -n "$(RANLIB)" && $(RANLIB) $@ | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | what-tar: | 
					
						
							|  |  |  | 	@for file in $(THINGS_TO_TAR); do \
 | 
					
						
							|  |  |  | 	  echo $(selfdir)$$file; \
 | 
					
						
							|  |  |  | 	done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | documentation: force | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	-(cd doc; $(MAKE) $(MFLAGS)) | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | force: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # The rule for 'includes' is written funny so that the if statement
 | 
					
						
							|  |  |  | # always returns TRUE unless there really was an error installing the
 | 
					
						
							|  |  |  | # include files.
 | 
					
						
							|  |  |  | install: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	rm -f $(OBJECTS) $(LIBRARY_NAME) | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | 	-(cd doc && $(MAKE) $(MFLAGS) $@ ) | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | realclean distclean maintainer-clean: clean | 
					
						
							|  |  |  | 	-( cd doc && $(MAKE) $(MFLAGS) $@ ) | 
					
						
							|  |  |  | 	$(RM) -f Makefile | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mostlyclean: clean | 
					
						
							|  |  |  | 	-( cd doc && $(MAKE) $(MFLAGS) $@ ) | 
					
						
							| 
									
										
										
										
											1996-08-26 18:22:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ######################################################################
 | 
					
						
							|  |  |  | #								     #
 | 
					
						
							|  |  |  | #  Dependencies for the object files which make up this library.     #
 | 
					
						
							|  |  |  | #								     #
 | 
					
						
							|  |  |  | ######################################################################
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | fnmatch.o: fnmatch.h | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | fnmatch.o: $(BUILD_DIR)/config.h | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1996-12-23 17:02:34 +00:00
										 |  |  | glob.o: $(BUILD_DIR)/config.h | 
					
						
							| 
									
										
										
										
											1997-06-05 14:59:13 +00:00
										 |  |  | glob.o: $(topdir)/bashtypes.h $(topdir)/ansi_stdlib.h $(topdir)/bashansi.h | 
					
						
							|  |  |  | glob.o: $(topdir)/posixstat.h $(topdir)/memalloc.h | 
					
						
							|  |  |  | glob.o: fnmatch.h | 
					
						
							| 
									
										
										
										
											1997-09-22 20:22:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Rules for deficient makes, like SunOS and Solaris
 | 
					
						
							|  |  |  | fnmatch.o: fnmatch.c | 
					
						
							|  |  |  | glob.o: glob.c |