home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.muug.mb.ca
/
2014.06.ftp.muug.mb.ca.tar
/
ftp.muug.mb.ca
/
pub
/
src
/
gopher
/
gopher1.01
/
misc
/
go500
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-04-09
|
1KB
|
52 lines
#-----------------------------------------------------------------------------
# Copyright (c) 1990 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
# gopher x.500 whitepages server makefile
#
#-----------------------------------------------------------------------------
SRCS = main.c detach.c
OBJS = main.o detach.o
CFLAGS = -g -I.
LIBS = -ldixie
all: go500
go500: $(OBJS) version.o
cc -o $@ $(OBJS) version.o $(LIBS)
version.c: Version.c
(u=$${USER-root} d=`pwd` h=`hostname` t=`date`; \
sed -e "s|%WHEN%|$${t}|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< Version.c > version.c)
install: $(ETCDIR)/go500
$(ETCDIR)/go500: go500
install -c -m 755 go500 $(ETCDIR)
lint:;
lint -I. $(SRCS)
5lint:;
/usr/5bin/lint -I. $(SRCS)
clean:;
rm -f *.o core a.out version.c version.o
depend:;
../mkdep $(CFLAGS) $(SRCS)
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.