File: Makefile

package info (click to toggle)
traffic-vis 0.34-3
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 356 kB
  • ctags: 436
  • sloc: ansic: 4,029; makefile: 144; perl: 82; sh: 25
file content (29 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CFLAGS= -DVERSION="\"$(VERSION)\"" $(DEFINES) $(WARNFLAGS) $(DEBUGFLAGS) $(INCLUDES) -I.. $(OPT_FLAGS)
OBJS=htmlfe.o psfe.o textfe.o
TARGETS=traffic-tops traffic-totext traffic-tohtml
LFLAGS=-L..
LIBS=-lpcap -lreport $(GLIB) $(DEBUGLIBS)

all: $(OBJS) $(TARGETS)

traffic-tops: traffic-tops.o psfe.o ../libreport.a
	$(CC) -o $@ traffic-tops.o psfe.o $(LFLAGS) $(LIBS) -lm

traffic-totext: traffic-totext.o textfe.o ../libreport.a
	$(CC) -o $@ traffic-totext.o textfe.o $(LFLAGS) $(LIBS)

traffic-tohtml: traffic-tohtml.o htmlfe.o ../libreport.a
	$(CC) -o $@ traffic-tohtml.o htmlfe.o $(LFLAGS) $(LIBS)

install:
	install -m 755 -o root -g root traffic-tops $(SBINDIR)
	install -m 644 -o root -g root traffic-tops.8 $(MANDIR)/man8/
	install -m 755 -o root -g root traffic-totext $(SBINDIR)
	install -m 644 -o root -g root traffic-totext.8 $(MANDIR)/man8/
	install -m 755 -o root -g root traffic-tohtml $(SBINDIR)
	install -m 644 -o root -g root traffic-tohtml.8 $(MANDIR)/man8/
	install -m 755 -o root -g root traffic-togif $(SBINDIR)
	install -m 644 -o root -g root traffic-togif.8 $(MANDIR)/man8/

clean:
	-rm -f $(TARGETS) *.o core *.ps