"Fossies" - the Fresh Open Source Software Archive

Member "ngrep-1_47/Makefile.in" (7 Sep 2017, 3020 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. See also the latest Fossies "Diffs" side-by-side code changes reports for "Makefile.in": 1_45_vs_1_47 or 1_46_1_vs_1_47.

    1 #
    2 # Copyright (c) 2017  Jordan Ritter <jpr5@darkridge.com>
    3 #
    4 # Please refer to the LICENSE file for more information.
    5 
    6 CC=@CC@
    7 
    8 CPPFLAGS = @DEFS@ -D@OS@ @EXTRA_DEFINES@ @CPPFLAGS@
    9 CFLAGS   = @EXTRA_INCLUDES@ @CFLAGS@ 
   10 LDFLAGS  = @EXTRA_LDFLAGS@ @LDFLAGS@
   11 LIBS     = @LIBS@ @EXTRA_LIBS@
   12 
   13 STRIPFLAG=@STRIPFLAG@
   14 
   15 OBJS=ngrep.o @EXTRA_OBJS@
   16 TARGET=ngrep
   17 MANPAGE=ngrep.8
   18 
   19 prefix      = @prefix@
   20 exec_prefix = @exec_prefix@
   21 
   22 bindir      = $(prefix)/bin
   23 datadir     = $(prefix)/share
   24 mandir      = $(datadir)/man
   25 
   26 BINDIR_INSTALL = $(prefix)/bin
   27 MANDIR_INSTALL = $(mandir)/man8
   28 
   29 INSTALL = ./install-sh
   30 
   31 REGEX_OBJS=@REGEX_OBJS@
   32 REGEX_DIR=@REGEX_DIR@
   33 
   34 
   35 all: $(TARGET)
   36 
   37 $(TARGET): $(REGEX_OBJS) $(OBJS)
   38 	$(CC) $(STRIPFLAG) -o $(TARGET) $(OBJS) $(REGEX_OBJS) $(LDFLAGS) $(LIBS)
   39 
   40 debug: $(REGEX_OBJS) $(OBJS)
   41 	$(CC) -g -o $(TARGET) $(OBJS) $(REGEX_OBJS) $(LDFLAGS) $(LIBS)
   42 
   43 static: $(REGEX_OBJS) $(OBJS)
   44 	$(CC) $(STRIPFLAG) -static -o $(TARGET).static $(OBJS) $(REGEX_OBJS) $(LDFLAGS) $(LIBS)
   45 
   46 install: $(TARGET)
   47 	$(INSTALL) -c -m 0755 $(TARGET)  $(DESTDIR)/$(BINDIR_INSTALL)/$(TARGET)
   48 	$(INSTALL) -c -m 0644 $(MANPAGE) $(DESTDIR)/$(MANDIR_INSTALL)/$(MANPAGE)
   49 
   50 .c.o:
   51 	$(CC) $(CPPFLAGS) $(CFLAGS) -g -c $<
   52 
   53 clean:
   54 	test -n "$(REGEX_DIR)" && $(MAKE) -C $(REGEX_DIR) clean || exit 0
   55 	rm -f *~ $(OBJS) $(REGEX_OBJS) $(TARGET) $(TARGET).static
   56 
   57 distclean: clean
   58 	test -n "$(REGEX_DIR)" && $(MAKE) -C $(REGEX_DIR) distclean || exit 0
   59 	rm -f config.status config.cache config.log config.h Makefile
   60 
   61 $(REGEX_OBJS): $(REGEX_OBJS:.o=.c) $(REGEX_DIR)/*.h
   62 	$(MAKE) $(MAKEFLAGS) -C $(REGEX_DIR) $(notdir $(REGEX_OBJS))
   63 
   64 $(OBJS): Makefile $(OBJS:.o=.c) $(OBJS:.o=.h)
   65 
   66 tardist:
   67 	@( VERSION=`perl -ne '/VERSION\s+"(.*)"/ && print "$$1\n"' ngrep.h` ; \
   68        PKG="ngrep-$$VERSION"                                            ; \
   69        TMPDIR="/tmp"                                                    ; \
   70        DESTDIR="$$TMPDIR/$$PKG"                                         ; \
   71        echo                                                             ; \
   72        echo "Building package $$PKG ... "                               ; \
   73        echo                                                             ; \
   74        sleep 2                                                          ; \
   75        rm -rf $$DESTDIR && mkdir $$DESTDIR                             && \
   76        make distclean                                                  && \
   77        tar --exclude "CVS" -cf - . | tar xf - -C $$DESTDIR             && \
   78        find $$DESTDIR -name "*~" -o -name ".*#*" | xargs rm -f         && \
   79        cd $$TMPDIR && tar zcf $$PKG.tar.gz $$PKG                        ; \
   80            rm -rf $$DESTDIR                                             ; \
   81            cd $$TMPDIR && gpg -ba $$PKG.tar.gz                          ; \
   82        echo                                                             ; \
   83        ls -l $$TMPDIR/$$PKG.tar.gz $$TMPDIR/$$PKG.tar.gz.asc            ; \
   84        echo                                                             ; \
   85     )