diff options
Diffstat (limited to 'usr.sbin/xntpd/kernel/Makefile.tmpl')
-rw-r--r-- | usr.sbin/xntpd/kernel/Makefile.tmpl | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/usr.sbin/xntpd/kernel/Makefile.tmpl b/usr.sbin/xntpd/kernel/Makefile.tmpl index c40f810..8b40f4a 100644 --- a/usr.sbin/xntpd/kernel/Makefile.tmpl +++ b/usr.sbin/xntpd/kernel/Makefile.tmpl @@ -13,9 +13,10 @@ CLOCKDEFS= DEFS= DEFS_OPT= DEFS_LOCAL= -# +CLK_VDOBJS=clkinit.o tty_clk_STREAMS.o +CHU_VDOBJS=chuinit.o tty_chu_STREAMS.o INCL=-I../include -CFLAGS= $(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL) +CFLAGS= $(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL) -DKERNEL CC= $(COMPILER) # @@ -30,6 +31,26 @@ all: print "### The parse refclock implementation has their own support in"; \ print "### parse/*."; } }' +loadable: clk.o chu.o + +clk.o: ${CLK_VDOBJS} + ld -r ${OBJS} -o clk.o + +clk.h: + echo "#define NCLK 2" > clk.h + +tty_clk_STREAMS.o: clk.h tty_clk_STREAMS.c + cc ${CFLAGS} tty_clk_STREAMS.c -c tty_clk_STREAMS.o + +chu.o: ${CHU_VDOBJS} + ld -r ${OBJS} -o chu.o + +chu.h: + echo "#define NCHU 2" > chu.h + +tty_chu_STREAMS.o: chu.h tty_chu_STREAMS.c + cc ${CFLAGS} tty_chu_STREAMS.c -c tty_chu_STREAMS.o + clean: -@rm -f *~ *.o *.out *.ln make.log Makefile.bak \ lintlib.errs lint.errs |