File: Makefile

package info (click to toggle)
icmpinfo 1.11-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 216 kB
  • ctags: 217
  • sloc: ansic: 1,024; makefile: 50
file content (41 lines) | stat: -rw-r--r-- 854 bytes parent folder | download
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
#
# Minimal makefile for 'icmpinfo'
#   a tool to look at the icmp you receive
#   modified from BSD ping by Laurent Demailly
#				<dl@hplyot.obspm.fr>
#
# see man page & README (Installation section at least)

VERS = 1.11

# You may need to add libraries here :
# like for Solaris, uncomment next line :
#LDLIBS= -lsocket -lnsl

# To override default compiler flags :
#CFLAGS=-O2 -s

# To change default compiler
#CC=gcc

RM = rm -f

#LDFLAGS= $(CFLAGS)

OBJECTS= recvping.o print.o err.o icmpinfo.o pid.o
TARGET = icmpinfo

$(TARGET):  $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)

tgz: clean
	rm -f CHECKSUMS.asc
	md5sum * > ../CHECKSUMS
	mv ../CHECKSUMS .
	pgp -asw CHECKSUMS
	chmod 444 CHECKSUMS.asc
	cd .. ; tar cvf icmpinfo-$(VERS).tar icmpinfo-$(VERS) ; gzip icmpinfo-$(VERS).tar

clean:
	$(RM) $(OBJECTS) $(TARGET) core *~