1# Makefile for sntp 2# N.M. Maclaren, October 2000. 3 4# Take a look at README for the various preprocessor symbols, but they are 5# extremely unlikely to be needed on newer systems. You may prefer to change 6# LOCKNAME and SAVENAME to use /var/run (or even /tmp) rather than /etc. Note 7# that not all of the following system settings have been tested recently. 8 9AUTOMAKE_OPTIONS = foreign 10 11# Compiling this sort of ANSI C under SunOS 4.1 is a mug's game, because Sun's 12# Unix headers make GNU C vomit even in compatibility mode, but the following 13# will compile main.c and unix.c. At least two people have got it to work. 14# CC = gcc -ansi 15# CFLAGS = -O -DNONBLOCK_BROKEN 16# LDFLAGS = 17# LIBS = -lm 18 19# The following settings can be used under Linux. While adjtime is present, 20# it is completely broken (i.e. it will work only if xntp is running), so it 21# is a good idea to add -DADJTIME_MISSING. 22# CC = cc -DADJTIME_MISSING 23# CFLAGS = -O 24# LDFLAGS = 25# LIBS = -lm 26 27bin_PROGRAMS = sntp 28sntp_SOURCES = \ 29 header.h \ 30 internet.c \ 31 internet.h \ 32 kludges.h \ 33 main.c \ 34 socket.c \ 35 timing.c \ 36 unix.c \ 37 $(EMPTY) 38 39