"Fossies" - the Fresh Open Source Software Archive

Member "bed-3.1.1/regex-0.13/Makefile" (20 May 2021, 3623 Bytes) of package /linux/misc/bed-3.1.1.src.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Makefile for regex.
    2 # 
    3 # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
    4 #
    5 # This program is free software; you can redistribute it and/or modify
    6 # it under the terms of the GNU General Public License as published by
    7 # the Free Software Foundation; either version 2, or (at your option)
    8 # any later version.
    9 #
   10 # This program is distributed in the hope that it will be useful,
   11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 # GNU General Public License for more details.
   14 #
   15 # You should have received a copy of the GNU General Public License
   16 # along with this program; if not, write to the Free Software
   17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   18 
   19 version = 0.13
   20 
   21 # You can define CPPFLAGS on the command line.  Aside from system-specific
   22 # flags, you can define:
   23 #   -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
   24 #   -DDEBUG to enable the compiled pattern disassembler and execution
   25 #           tracing; code runs substantially slower.
   26 #   -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
   27 #           the corresponding C procedures).  If not -DDEBUG, the macros
   28 #           are used.
   29 CPPFLAGS = 
   30 
   31 # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
   32 CFLAGS = -g
   33 
   34 # Ditto for LDFLAGS and LOADLIBES.
   35 LDFLAGS =
   36 LOADLIBES =
   37 
   38 srcdir = .
   39 
   40 
   41 CC = gcc
   42 DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA=1
   43 
   44 SHELL = /bin/sh
   45 
   46 subdirs = doc test
   47 
   48 default all:: regex.o
   49 .PHONY: default all
   50 
   51 
   52 regex.o: regex.c xregex.h xregex2.h
   53 	$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
   54 
   55 configure: configure.in
   56 	autoconf
   57 
   58 config.status: configure
   59 	sh configure --no-create
   60 
   61 Makefile: Makefile.in config.status
   62 	sh config.status
   63 
   64 makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
   65 DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
   66 
   67 default all install TAGS check::
   68 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   69 
   70 # 11/15/06 jpr5: effort to force this makefile to clean up completely
   71 #                re-organized the clean statements
   72 #                added config.cache and config.log to targets                 
   73 
   74 clean mostlyclean:
   75 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   76 	rm -f *.o
   77 
   78 extraclean realclean distclean:
   79 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   80 	rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
   81 	rm -f Makefile config.status config.cache config.log regex.o
   82 
   83 .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
   84 
   85 
   86 # Prevent GNU make 3 from overflowing arg limit on system V.
   87 .NOEXPORT:
   88 
   89 distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
   90             *.in configure regex.c regex.h 
   91 distdir = regex-$(version)
   92 distargs = version=$(version) distdir=../$(distdir)/$$d
   93 dist: TAGS configure
   94 	@echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
   95 	@echo "  regex.c, regex.h,"
   96 	@echo "  and doc/xregex.texi (if modified)."
   97 	rm -rf $(distdir)
   98 	mkdir $(distdir)
   99 	ln $(distfiles) $(distdir)
  100 	for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
  101 	tar czhf $(distdir).tar.Z $(distdir)
  102 	rm -rf $(distdir)
  103 .PHONY: dist