home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sources / misc / 4248 / Makefile < prev    next >
Encoding:
Makefile  |  1993-01-10  |  1.7 KB  |  77 lines

  1. # This is the Makefile for building the clock synchronisation daemons.
  2. # Currently, we support SUNOS, Ultrix, Amiga Unix (SYSVR4) and AIX.
  3. # This software should also work on other Unix flavors
  4. # without or with only small adaptions.
  5. #
  6. # Author: Silvano Maffeis, maffeis@ifi.unizh.ch 1992
  7.  
  8.  
  9. #CC=gcc
  10. CC=cc
  11.  
  12. # Some defaults
  13. INSTALL = install
  14.  
  15. # no extra flags necessary for SunOS 4
  16.  
  17. # uncomment this for SYSV (Amiga)
  18. #LDLIBS=-lbsd43    
  19. #STD_DEFINES = -DSYSV
  20.  
  21. # uncomment this for IRIX 4.0.X (SiliconGraphics)
  22. #LDLIBS=-lsun
  23. #STD_DEFINES = -DSYSV
  24. #CCOPTIONS = -cckr
  25. #INSTALL = /usr/bin/X11/bsdinst.sh
  26.  
  27. # uncomment this for Ultrix
  28. #STD_DEFINES = -DSYSV
  29.  
  30. #uncomment this for AIX
  31. #LDLIBS=-lbsd
  32. #STD_DEFINES = -DSYSV
  33.  
  34. # where binaries go:
  35. BINDIR=/usr/local/etc
  36.  
  37. # path of the config file:
  38. CONF_FILE=/usr/local/etc/synclockd.conf
  39.  
  40. # path of the log file:
  41. LOG_FILE=/usr/local/etc/synclockd.log
  42.  
  43. # add -DPORT=number to 'DEFINES=' below to hardcode a udp port number 
  44. # and avoid using /etc/services
  45.  
  46. DEFINES=-DCONF=\"$(CONF_FILE)\" -DLOG_FILE=\"$(LOG_FILE)\" #-DPORT=9000
  47. CDEBUGFLAGS = -O
  48. CCLDFLAGS=
  49.  
  50. # ------------You probably need not edit below this line ----------------------
  51.  
  52. CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(DEFINES) $(STD_DEFINES)
  53.  
  54. all:        synclockd synservd
  55.  
  56. synclockd:    synclockd.o getrtime.o
  57.         $(CC) $(CCLDFLAGS) -o synclockd synclockd.o getrtime.o $(LDLIBS)
  58.         rm -f synmon
  59.         ln -s synclockd synmon
  60.  
  61. synservd:    synservd.o
  62.         $(CC) $(CCLDFLAGS) -o synservd synservd.o $(LDLIBS)
  63.  
  64.  
  65. install:    synclockd
  66.         $(INSTALL) -m 1755 -s synclockd $(BINDIR)
  67.         $(INSTALL) -m 1755 -s synservd $(BINDIR)
  68.         rm -f $(BINDIR)/synmon
  69.         ln -s $(BINDIR)/synclockd $(BINDIR)/synmon
  70.         
  71.  
  72. clean:    
  73.         rm -f core *.o *% *~
  74.  
  75. realclean:    clean
  76.         rm -f synclockd synservd cs synmon
  77.