head	1.3;
access;
symbols;
locks
	dan:1.3; strict;
comment	@# @;


1.3
date	2001.07.02.07.39.17;	author dan;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.28.04.25.32;	author dan;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.24.22.05.51;	author dan;	state Exp;
branches;
next	;


desc
@makefile
@


1.3
log
@makefile
@
text
@#
# Makefile for in.swhoisd
#
# $Id: Makefile,v 1.2 2001/06/28 04:25:32 dan Exp dan $
#

CC=gcc
CFLAGS=
LDFLAGS=
CO=co -T

# Linux:
#TARGETDIR=/usr/sbin
#LOCALEDIR='"/usr/share/locale"'
LIBS= -lpthread

# Solaris:
#TARGETDIR=/usr/local/sbin
#LOCALEDIR='"/usr/lib/locale"'
#LIBS=-lnsl -lsocket -lpthread

OBJS=in.swhoisd.o sysutils.o rfc1431.o strlcpy.o
SRCS=$(CSRCS) \
	CHANGES \
	COPYRIGHT \
	INSTALL \
	INTERNATIONALIZATION \
	PORTING \
	README \
	TODO \
	pkginfo \
	prototype \
	swhoisd.footer \
	swhoisd.header \
	whois.php \
	whois.xinetd

all:	in.swhoisd swhoisd.po in.swhoisd.txt src doc

src:	.FRC
	cd src; make

doc:	.FRC
	cd doc; make

.FRC:

#
# I18N on Linux:
#
swhoisd.po: $(CSRCS)
	cd po; make swhoisd.pot

# Same as above (GNU), but kludge for Solaris xgettext:
# Run before "make all" to prevent the stanza above from running:
solaris.po:
	cd po; make solaris.po

install: in.swhoisd
	cp -p in.swhoisd ${TARGETDIR}
	chown root:root ${TARGETDIR}/in.swhoisd
	chmod go-w ${TARGETDIR}/in.swhoisd
	chown root:root /etc/swhoisd.header /etc/swhoisd.footer
	chmod go-w /etc/swhoisd.header /etc/swhoisd.footer

clean:	
	rm -f core *.core *.BAK *~ *.out

clobber: clean	
	rm -f in.swhoisd whois

#
# RCS rules
#
CHANGES:	RCS/CHANGES,v
	$(CO) $@@
COPYRIGHT:	RCS/COPYRIGHT,v
	$(CO) $@@
INSTALL:	RCS/INSTALL,v
	$(CO) $@@
INTERNATIONALIZATION:	RCS/INTERNATIONALIZATION,v
	$(CO) $@@
pkginfo:	RCS/pkginfo,v
	$(CO) $@@
PORTING:	RCS/PORTING,v
	$(CO) $@@
prototype:	RCS/prototype,v
	$(CO) $@@
README:	RCS/	README,v
	$(CO) $@@
swhoisd.footer:	RCS/swhoisd.footer,v
	$(CO) $@@
swhoisd.header:	RCS/swhoisd.header,v
	$(CO) $@@
TODO:	RCS/	TODO,v
	$(CO) $@@
whois.php:	RCS/whois.php,v
	$(CO) $@@
whois.xinetd:	RCS/whois.xinetd,v
	$(CO) $@@
@


1.2
log
@logging.
@
text
@d4 1
a4 1
# $Id$
d10 1
d15 1
a19 4

# Linux:
LIBS= -lpthread
# Solaris:
d22 17
a38 2
OBJS=in.swhoisd.o sysutils.o rfc1431.o strlcpy.c
SRCS=in.swhoisd.c sysutils.c whois.c rfc1431.c strlcpy.c
d40 2
a41 1
all:	in.swhoisd whois swhoisd.po in.swhoisd.txt
d43 2
a44 3
whois: whois.c
	$(CC) -o $@@ $(CFLAGS) $(LDFLAGS) $(LIBS) $@@.c
	strip $@@
d46 1
a46 15
in.swhoisd.o: in.swhoisd.c in.swhoisd.h
	$(CC) -c $(CFLAGS) in.swhoisd.c

sysutils.o: sysutils.c in.swhoisd.h
	$(CC) -c $(CFLAGS) sysutils.c

rfc1431.o: rfc1431.c
	$(CC) -c $(CFLAGS) rfc1431.c

in.swhoisd: ${OBJS}
	$(CC) -o $@@ $(LDFLAGS) $(LIBS) $(OBJS)
	strip $@@

in.swhoisd.txt: in.swhoisd.8
	nroff -man $? | sed 's/.//g' >$@@
d48 1
d50 2
a51 1
swhoisd.po: $(SRCS)
a58 5
ctags:	tags

tags:	$(SRCS)
	ctags $?

a62 1
	cp -p swhoisd.header swhoisd.footer swhoisd.conf.sample /etc
a63 1
	chown root:root /etc/swhoisd.conf.sample
a64 1
	chmod go-w /etc/swhoisd.conf.sample
d67 1
a67 1
	rm -f core *.core *.o *.BAK *~ *.out
d71 30
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
# $Header$
d6 6
d13 5
a17 1
TARGETDIR=/usr/local/sbin
d20 1
a20 1
#LIBS=
d22 4
a25 1
#LIBS=-lnsl -lsocket
d27 1
a27 1
all:	in.swhoisd whois
d30 1
a30 1
	gcc -o $@@ $(LIBS) $@@.c
d33 11
a43 2
in.swhoisd: in.swhoisd.c
	gcc -o $@@ $(LIBS) $@@.c
d46 17
a77 2


@
