| 1 | # $Id: Makefile.in,v 1.2 2000/07/25 01:10:25 lord Exp $ |
| 2 | |
| 3 | CC=@CC@ |
| 4 | CFLAGS=@CFLAGS@ @DEFS@ |
| 5 | LIBS=@LIBS@ |
| 6 | top_srcdir=@top_srcdir@ |
| 7 | srcdir=@srcdir@ |
| 8 | prefix=@prefix@ |
| 9 | exec_prefix=@exec_prefix@ |
| 10 | sbindir=@sbindir@ |
| 11 | mandir=@mandir@ |
| 12 | INSTALL = @INSTALL@ |
| 13 | |
| 14 | OBJS=icmpmonitor.o cfg.o |
| 15 | |
| 16 | VERSION=1.0 |
| 17 | |
| 18 | all: icmpmonitor |
| 19 | |
| 20 | icmpmonitor: $(OBJS) Makefile |
| 21 | $(CC) $(CFLAGS) $(OBJS) -o icmpmonitor $(LIBS) |
| 22 | |
| 23 | icmpmonitor.o: icmpmonitor.c cfg.h Makefile |
| 24 | cfg.o: cfg.c cfg.h Makefile |
| 25 | |
| 26 | clean: |
| 27 | rm -f *.o icmpmonitor core |
| 28 | |
| 29 | distclean: clean |
| 30 | rm -f config.log config.cache config.status Makefile |
| 31 | |
| 32 | tar: distclean |
| 33 | (cd ..; \ |
| 34 | rm -f icmpmonitor*.tar icmpmonitor*.tar.gz; \ |
| 35 | tar --exclude CVS -cvf icmpmonitor-$(VERSION).tar icmpmonitor; \ |
| 36 | gzip -9 icmpmonitor-$(VERSION).tar) |
| 37 | |
| 38 | install: icmpmonitor icmpmonitor.man |
| 39 | $(top_srcdir)/mkinstalldirs $(sbindir) |
| 40 | $(INSTALL) icmpmonitor $(sbindir) |
| 41 | $(top_srcdir)/mkinstalldirs $(mandir)/man1 |
| 42 | $(INSTALL) icmpmonitor.man $(mandir)/man1/icmpmonitor.1 |