"Fossies" - the Fresh Open Source Software Archive

Member "ngrep-1_47/regex-0.12/Makefile.in" (7 Sep 2017, 3173 Bytes) of package /linux/misc/ngrep-1_47.tar.gz:


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.12
   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 = @srcdir@
   39 VPATH = @srcdir@
   40 
   41 CC = @CC@
   42 DEFS = @DEFS@
   43 
   44 SHELL = /bin/sh
   45 
   46 subdirs = doc test
   47 
   48 default all:: regex.o
   49 .PHONY: default all
   50 
   51 regex.o: regex.c regex.h
   52 	$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
   53 
   54 configure: configure.in
   55 	autoconf
   56 
   57 config.status: configure
   58 	sh configure --no-create
   59 
   60 Makefile: Makefile.in config.status
   61 	sh config.status
   62 
   63 makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
   64 DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
   65 
   66 default all install TAGS check::
   67 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   68 
   69 # 11/15/06 jpr5: effort to force this makefile to clean up completely
   70 #                re-organized the clean statements
   71 #                added config.cache and config.log to targets                 
   72 
   73 clean mostlyclean:
   74 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   75 	rm -f *.o
   76 
   77 extraclean realclean distclean:
   78 	for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
   79 	rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
   80 	rm -f Makefile config.status config.cache config.log regex.o
   81 
   82 .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
   83 
   84 
   85 # Prevent GNU make 3 from overflowing arg limit on system V.
   86 .NOEXPORT:
   87 
   88 distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
   89             *.in configure regex.c regex.h 
   90 distdir = regex-$(version)
   91 distargs = version=$(version) distdir=../$(distdir)/$$d
   92 dist: TAGS configure
   93 	@echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
   94 	@echo "  regex.c, regex.h,"
   95 	@echo "  and doc/xregex.texi (if modified)."
   96 	rm -rf $(distdir)
   97 	mkdir $(distdir)
   98 	ln $(distfiles) $(distdir)
   99 	for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
  100 	tar czhf $(distdir).tar.Z $(distdir)
  101 	rm -rf $(distdir)
  102 .PHONY: dist