Annotation of embedaddon/trafshow/Makefile.in, revision 1.1

1.1     ! misho       1: #
        !             2: #      Copyright (c) 1993-2004 Rinet Corp., Novosibirsk, Russia
        !             3: #
        !             4: # Redistribution and use in source forms, with and without modification,
        !             5: # are permitted provided that this entire comment appears intact.
        !             6: # Redistribution in binary form may occur without any restrictions.
        !             7: #
        !             8: # THIS SOFTWARE IS PROVIDED ``AS IS'' WITHOUT ANY WARRANTIES OF ANY KIND.
        !             9: #
        !            10: 
        !            11: #
        !            12: # Makefile.in -- template for Makefile
        !            13: # Process this file with `./configure' to produce Makefile
        !            14: #      remember to edit Makefile.in, not Makefile
        !            15: #
        !            16: 
        !            17: # Top level hierarchy
        !            18: prefix = @prefix@
        !            19: exec_prefix = @exec_prefix@
        !            20: # Pathname of directory to install the binary
        !            21: BINDEST = @bindir@
        !            22: # Pathname of directory to install the man page
        !            23: MANDEST = @mandir@
        !            24: 
        !            25: #
        !            26: # You shouldn't need to edit anything below here.
        !            27: #
        !            28: 
        !            29: PROG = trafshow
        !            30: CC = @PTHREAD_CC@
        !            31: CFLAGS = @CFLAGS@ -Wall -I. @DEFS@ @PTHREAD_CFLAGS@
        !            32: YACC = @YACC@
        !            33: YFLAGS = -d -p `echo $@ | sed -e 's/\..*/_/'`
        !            34: LEX = @LEX@
        !            35: LEXLIB = @LEXLIB@
        !            36: LFLAGS =
        !            37: LDFLAGS = @LDFLAGS@
        !            38: LIBS = @PTHREAD_LIBS@ @LIBS@
        !            39: 
        !            40: # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
        !            41: # Also, gcc does not remove the .o before forking 'as', which can be a
        !            42: # problem if you don't own the file but can write to the directory.
        !            43: .c.o:
        !            44:        @rm -f $@
        !            45:        $(CC) $(CFLAGS) -c $*.c
        !            46: 
        !            47: CSRC   = trafshow.c screen.c colormask.c getkey.c selector.c \
        !            48:        events.c session.c show_if.c show_stat.c show_dump.c \
        !            49:        parse_dl.c parse_ip.c netstat.c cisco_netflow.c addrtoname.c \
        !            50:        hashtab.c lookupa.c recycle.c util.c help_page.c domain_resolver.c
        !            51: YSRC   =
        !            52: LSRC   =
        !            53: GENSRC = version.c
        !            54: SRC    = $(CSRC) $(YSRC) $(LSRC) $(GENSRC)
        !            55: 
        !            56: # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
        !            57: # hack the extra indirection
        !            58: OBJ    = $(CSRC:.c=.o) $(YSRC:.y=.o) $(LSRC:.l=.o) $(GENSRC:.c=.o) @LIBOBJS@
        !            59: 
        !            60: CLEANFILES = $(PROG) $(OBJ) $(GENSRC) y.tab.h
        !            61: 
        !            62: $(PROG): $(OBJ)
        !            63:        @rm -f $@
        !            64:        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
        !            65: 
        !            66: $(OBJ): config.h trafshow.h Makefile
        !            67: version.o: version.c
        !            68: version.c: VERSION Makefile
        !            69:        @rm -f $@
        !            70:        @sed -e 's/.*/char package[] = "&";/' PACKAGE > $@
        !            71:        @sed -e 's/.*/char version[] = "&";/' VERSION >> $@
        !            72:        @echo 'char target[] = "@target@";' >> $@
        !            73:        @echo 'char compiled[] = "$(CC) $(CFLAGS) $(LIBS)";' >> $@
        !            74: 
        !            75: install:
        !            76:        ./install-sh -c -s -m 555 -o bin -g bin $(PROG) $(BINDEST)/$(PROG)
        !            77:        ./install-sh -c -m 444 -o bin -g bin $(PROG).1 $(MANDEST)/man1/$(PROG).1
        !            78:        [ -f /etc/$(PROG) ] || ./install-sh -c -m 444 .trafshow /etc/$(PROG)
        !            79: 
        !            80: clean:
        !            81:        rm -f $(CLEANFILES)
        !            82: 
        !            83: distclean:
        !            84:        rm -f $(CLEANFILES) Makefile config.h \
        !            85:                config.cache config.log config.status autom4te.cache
        !            86: 
        !            87: tar:
        !            88:        @cwd=`pwd`; dir=`basename $$cwd`; name=`cat PACKAGE`-`cat VERSION`; \
        !            89:        list=""; tar="tar cvf"; \
        !            90:        for i in `cat FILES`; do list="$$list $$name/$$i"; done; \
        !            91:        rm -f ../$$name; ln -s $$dir ../$$name; \
        !            92:        (cd ..; $$tar - $$list) | gzip -c > /tmp/$$name.tgz; \
        !            93:        rm -f ../$$name
        !            94: 
        !            95: depend:        $(GENSRC)
        !            96:        mkdep $(CFLAGS) $(SRC)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>