"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "trafshow-3.1/Makefile.in" of archive trafshow-3.1.tgz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 #
2 # Copyright (c) 1997 JSC Rinet, 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 = @CC@
31 CCOPT = @V_CCOPT@
32 INCLS = -I. @V_INCLS@
33 DEFS = @DEFS@
34
35 CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
36 LDFLAGS = @LDFLAGS@
37 LIBS = @LIBS@
38
39 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
40 # Also, gcc does not remove the .o before forking 'as', which can be a
41 # problem if you don't own the file but can write to the directory.
42 .c.o:
43 @rm -f $@
44 $(CC) $(CFLAGS) -c $*.c
45
46 CSRC = trafshow.c display.c keyb.c color.c interfaces.c addrtoname.c \
47 machdep.c util.c getarptab.c
48 GENSRC = version.c
49
50 SRC = $(CSRC) $(GENSRC)
51
52 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
53 # hack the extra indirection
54 OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
55
56 CLEANFILES = $(PROG) $(OBJ) $(GENSRC)
57
58 $(PROG): $(OBJ) @V_PCAPDEP@
59 @rm -f $@
60 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
61
62 version.o: version.c
63 version.c: VERSION Makefile
64 @rm -f $@
65 @sed -e 's/.*/char version[] = "&";/' VERSION > $@
66 @echo 'char compiled[] = "$(CC) $(CFLAGS) $(LIBS)";' >> $@
67 @echo 'char target[] = "@target@";' >> $@
68 @echo 'char libpcap[] = "@V_PCAPVER@";' >> $@
69
70 install: force
71 ./install-sh -c -s -m 550 -o bin -g @V_GROUP@ $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
72 ./install-sh -c -m 444 -o bin -g bin $(PROG).1 $(DESTDIR)$(MANDEST)/man1/$(PROG).1
73 ./install-sh -c -o root -m 644 .trafshow /etc/$(PROG)
74
75 clean:
76 rm -f $(CLEANFILES)
77
78 distclean:
79 rm -f $(CLEANFILES) Makefile config.h \
80 config.cache config.log config.status
81
82 tar: force
83 @cwd=`pwd`; dir=`basename $$cwd`; name=$(PROG)-`cat VERSION`; \
84 list=""; tar="tar cvf"; \
85 for i in `cat FILES`; do list="$$list $$name/$$i"; done; \
86 rm -f ../$$name; ln -s $$dir ../$$name; \
87 (cd ..; $$tar - $$list) | gzip -c > /tmp/$$name.tgz; \
88 rm -f ../$$name
89
90 force: /tmp
91 depend: $(GENSRC) force
92 mkdep $(CFLAGS) $(SRC)