76 lines
2.4 KiB
Cheetah
76 lines
2.4 KiB
Cheetah
#
|
|
# Makefile.tmpl,v 3.1 1993/07/06 01:07:38 jbj Exp
|
|
#
|
|
LIBNAME= libntp
|
|
#
|
|
# xntp routines which are used a lot of places
|
|
#
|
|
COMPILER= cc
|
|
COPTS= -O
|
|
AUTHDEFS=-DDES
|
|
LIBDEFS= -DBIG_ENDIAN
|
|
RANLIB= ranlib
|
|
INSTALL= install
|
|
CLOCKDEFS=
|
|
DEFS=
|
|
DEFS_OPT=
|
|
DEFS_LOCAL=
|
|
#
|
|
INCL=-I../include
|
|
CFLAGS= $(COPTS) $(AUTHDEFS) $(LIBDEFS) $(DEFS) $(DEFS_LOCAL) $(INCL)
|
|
CC= $(COMPILER)
|
|
#
|
|
SOURCE= atoint.c atolfp.c atouint.c auth12crypt.c authdecrypt.c authdes.c \
|
|
authencrypt.c authkeys.c authparity.c authreadkeys.c authusekey.c \
|
|
buftvtots.c caljulian.c calleapwhen.c caltontp.c calyearstart.c \
|
|
clocktime.c dofptoa.c dolfptoa.c emalloc.c fptoa.c fptoms.c getopt.c \
|
|
gettstamp.c hextoint.c hextolfp.c humandate.c inttoa.c \
|
|
lib_strbuf.c mfptoa.c mfptoms.c modetoa.c mstolfp.c \
|
|
msutotsf.c numtoa.c refnumtoa.c numtohost.c octtoint.c \
|
|
prettydate.c ranny.c tsftomsu.c tstotv.c tvtoa.c tvtots.c \
|
|
uglydate.c uinttoa.c utvtoa.c machines.c clocktypes.c \
|
|
md5.c a_md5encrypt.c a_md5decrypt.c \
|
|
a_md512crypt.c decodenetnum.c systime.c msyslog.c syssignal.c \
|
|
findconfig.c netof.c
|
|
|
|
OBJS= atoint.o atolfp.o atouint.o auth12crypt.o authdecrypt.o authdes.o \
|
|
authencrypt.o authkeys.o authparity.o authreadkeys.o authusekey.o \
|
|
buftvtots.o caljulian.o calleapwhen.o caltontp.o calyearstart.o \
|
|
clocktime.o dofptoa.o dolfptoa.o emalloc.o fptoa.o fptoms.o getopt.o \
|
|
gettstamp.o hextoint.o hextolfp.o humandate.o inttoa.o \
|
|
lib_strbuf.o mfptoa.o mfptoms.o modetoa.o mstolfp.o \
|
|
msutotsf.o numtoa.o refnumtoa.o numtohost.o octtoint.o \
|
|
prettydate.o ranny.o tsftomsu.o tstotv.o tvtoa.o tvtots.o \
|
|
uglydate.o uinttoa.o utvtoa.o machines.o clocktypes.o \
|
|
md5.o a_md5encrypt.o a_md5decrypt.o \
|
|
a_md512crypt.o decodenetnum.o systime.o msyslog.o syssignal.o \
|
|
findconfig.o netof.o
|
|
|
|
$(LIBNAME).a: $(OBJS)
|
|
ar rv $@ $?
|
|
-rm -f $?
|
|
@if ( ../scripts/hpadjtime.sh ) > /dev/null 2>&1; then \
|
|
( cd ../adjtime && $(MAKE) $(MFLAGS) MFLAGS="$(MFLAGS)" MAKE="$(MAKE)" ) && ar rv $@ ../adjtime/adjtime.o; \
|
|
else \
|
|
:; \
|
|
fi
|
|
$(RANLIB) $@
|
|
|
|
lintlib: llib-l$(LIBNAME).ln
|
|
|
|
llib-l$(LIBNAME).ln: $(SOURCE)
|
|
lint -C$(LIBNAME) $(INCL) $(CLOCKDEFS) $(AUTHDEFS) $(LIBDEFS) $(SOURCE) >lintlib.errs
|
|
|
|
lint:
|
|
lint -u $(DEFS) $(INCL) $(CLOCKDEFS) $(AUTHDEFS) $(LIBDEFS) $(SOURCE) >lint.errs
|
|
|
|
depend:
|
|
mkdep $(CFLAGS) $(SOURCE)
|
|
|
|
clean:
|
|
-@rm -f $(LIBNAME).a *.o *.out *.ln make.log Makefile.bak \
|
|
lintlib.errs lint.errs
|
|
|
|
distclean: clean
|
|
-@rm -f *.orig *.rej .version Makefile
|