home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-01-10 | 1.7 KB | 77 lines |
- # This is the Makefile for building the clock synchronisation daemons.
- # Currently, we support SUNOS, Ultrix, Amiga Unix (SYSVR4) and AIX.
- # This software should also work on other Unix flavors
- # without or with only small adaptions.
- #
- # Author: Silvano Maffeis, maffeis@ifi.unizh.ch 1992
-
-
- #CC=gcc
- CC=cc
-
- # Some defaults
- INSTALL = install
-
- # no extra flags necessary for SunOS 4
-
- # uncomment this for SYSV (Amiga)
- #LDLIBS=-lbsd43
- #STD_DEFINES = -DSYSV
-
- # uncomment this for IRIX 4.0.X (SiliconGraphics)
- #LDLIBS=-lsun
- #STD_DEFINES = -DSYSV
- #CCOPTIONS = -cckr
- #INSTALL = /usr/bin/X11/bsdinst.sh
-
- # uncomment this for Ultrix
- #STD_DEFINES = -DSYSV
-
- #uncomment this for AIX
- #LDLIBS=-lbsd
- #STD_DEFINES = -DSYSV
-
- # where binaries go:
- BINDIR=/usr/local/etc
-
- # path of the config file:
- CONF_FILE=/usr/local/etc/synclockd.conf
-
- # path of the log file:
- LOG_FILE=/usr/local/etc/synclockd.log
-
- # add -DPORT=number to 'DEFINES=' below to hardcode a udp port number
- # and avoid using /etc/services
-
- DEFINES=-DCONF=\"$(CONF_FILE)\" -DLOG_FILE=\"$(LOG_FILE)\" #-DPORT=9000
- CDEBUGFLAGS = -O
- CCLDFLAGS=
-
- # ------------You probably need not edit below this line ----------------------
-
- CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(DEFINES) $(STD_DEFINES)
-
- all: synclockd synservd
-
- synclockd: synclockd.o getrtime.o
- $(CC) $(CCLDFLAGS) -o synclockd synclockd.o getrtime.o $(LDLIBS)
- rm -f synmon
- ln -s synclockd synmon
-
- synservd: synservd.o
- $(CC) $(CCLDFLAGS) -o synservd synservd.o $(LDLIBS)
-
-
- install: synclockd
- $(INSTALL) -m 1755 -s synclockd $(BINDIR)
- $(INSTALL) -m 1755 -s synservd $(BINDIR)
- rm -f $(BINDIR)/synmon
- ln -s $(BINDIR)/synclockd $(BINDIR)/synmon
-
-
- clean:
- rm -f core *.o *% *~
-
- realclean: clean
- rm -f synclockd synservd cs synmon
-