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 >
Makefile  |  1992-04-09  |  1KB  |  52 lines

  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 1990 Regents of the University of Michigan.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that this notice is preserved and that due credit is given
  7. # to the University of Michigan at Ann Arbor. The name of the University
  8. # may not be used to endorse or promote products derived from this
  9. # software without specific prior written permission. This software
  10. # is provided ``as is'' without express or implied warranty.
  11. #
  12. #       gopher x.500 whitepages server makefile
  13. #
  14. #-----------------------------------------------------------------------------
  15.  
  16. SRCS    = main.c detach.c
  17. OBJS    = main.o detach.o
  18.  
  19. CFLAGS    = -g -I.
  20. LIBS    = -ldixie
  21.  
  22. all:    go500
  23.  
  24. go500:    $(OBJS) version.o
  25.     cc -o $@ $(OBJS) version.o $(LIBS)
  26.  
  27. version.c: Version.c
  28.     (u=$${USER-root} d=`pwd` h=`hostname` t=`date`; \
  29.     sed -e "s|%WHEN%|$${t}|" \
  30.     -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
  31.     < Version.c > version.c)
  32.  
  33. install:    $(ETCDIR)/go500
  34.  
  35. $(ETCDIR)/go500:    go500
  36.     install -c -m 755 go500 $(ETCDIR)
  37.  
  38. lint:;
  39.     lint -I. $(SRCS)
  40.  
  41. 5lint:;
  42.     /usr/5bin/lint -I. $(SRCS)
  43.  
  44. clean:;
  45.     rm -f *.o core a.out version.c version.o
  46.  
  47. depend:;
  48.     ../mkdep $(CFLAGS) $(SRCS)
  49.  
  50. # DO NOT DELETE THIS LINE -- mkdep uses it.
  51. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  52.