summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/util/Makefile.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/util/Makefile.tmpl')
-rw-r--r--usr.sbin/xntpd/util/Makefile.tmpl62
1 files changed, 62 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/util/Makefile.tmpl b/usr.sbin/xntpd/util/Makefile.tmpl
new file mode 100644
index 0000000..1115ef8
--- /dev/null
+++ b/usr.sbin/xntpd/util/Makefile.tmpl
@@ -0,0 +1,62 @@
+#
+# Makefile.tmpl,v 3.1 1993/07/06 01:10:58 jbj Exp
+#
+PROGRAM= tickadj
+#
+# Makefile for utilities
+#
+COMPILER= cc
+COPTS= -O
+BINDIR= /usr/local
+INSTALL= install
+DEFS=
+DEFS_OPT=
+DEFS_LOCAL=
+DAEMONLIBS=
+RESLIB=
+COMPAT=
+#
+INCL= -I../include
+CFLAGS= $(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL)
+CC= $(COMPILER)
+LIB= ../lib/libntp.a
+LINTLIB= ../lib/llib-llibntp.ln
+MAKE= make
+TOP=../
+#
+SOURCE= tickadj.c ntptime.c
+TKOBJS= tickadj.o
+NTOBJS= ntptime.o
+EXECS= ntptime jitter timetrim kern byteorder longsize precision
+
+all: $(PROGRAM)
+
+tickadj: $(TKOBJS)
+ $(CC) $(COPTS) -o $@ $(TKOBJS) $(DAEMONLIBS) $(RESLIB) $(COMPAT)
+
+ntptime: $(NTOBJS)
+ $(CC) $(COPTS) -o $@ $(NTOBJS) $(LIB)
+
+precision: precision.o
+ $(CC) $(COPTS) -o $@ $@.o
+
+install: $(BINDIR)/$(PROGRAM)
+
+$(BINDIR)/$(PROGRAM): $(PROGRAM)
+ $(INSTALL) -c -m 0755 $(PROGRAM) $(BINDIR)
+
+tags:
+ ctags *.c *.h
+
+depend:
+ mkdep $(CFLAGS) $(SOURCE)
+
+clean:
+ -@rm -f $(PROGRAM) $(EXECS) *.o *.out tags make.log Makefile.bak lint.errs
+
+distclean: clean
+ -@rm -f *.orig *.rej .version Makefile
+
+../lib/libntp.a:
+ cd ../lib && $(MAKE) $(MFLAGS) $(MFLAGS) MFLAGS="$(MFLAGS)"
+
OpenPOWER on IntegriCloud