File: Makefile.in

package info (click to toggle)
ipgrab 0.5-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 268 kB
  • ctags: 169
  • sloc: sh: 1,507; ansic: 1,234; makefile: 56
file content (42 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# try ./configure first to fill in all the definitions corresponding
# to your system, but you always can edit the sections below manually.
#

CC=             @CC@
CFLAGS=         @CFLAGS@
LIBS=           @LIBS@
DEFS=           @DEFS@
INSTALL=        @INSTALL@

prefix=
binprefix =     ${prefix}/sbin


#
# ------------ you shouldn't need to configure below here -----------------
#

TARGET = ipgrab

OBJS = ipgrab.o parse_cl.o error.o open_pcap.o version.o addrtoname.o ethernet.o raw.o slip.o ip.o in_cksum.o udp.o tcp.o arp.o payload.o

.c.o:
	$(CC) -c $(CFLAGS) $(DEFS) $<

$(TARGET): $(OBJS)
	$(CC) -o $@ $(OBJS) $(LIBS)

version.o: version.c
version.c: VERSION
	@rm -f $@
	sed -e 's/.*/char version[] = "&";/' VERSION > $@

install:
	$(INSTALL) $(TARGET) $(binprefix)/$(TARGET)

clean:
	rm -f *.o version.c *~ $(TARGET)

distclean: 
	rm -f *.o version.c *~ $(TARGET) Makefile config.cache config.log config.status config.h