mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-19 01:11:05 +01:00
63 lines
1.1 KiB
Cheetah
63 lines
1.1 KiB
Cheetah
#
|
|
# Makefile.tmpl
|
|
#
|
|
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) $(LIB) $(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)"
|
|
|