###############################################################################
# Instructions to Make, for compilation of ISODE NTP over ROS
###############################################################################
###############################################################################
# $Header: /f/osi/others/ntp/RCS/Makefile,v 7.2 91/02/22 09:33:33 mrose Interim $
# Revision 7.2 91/02/22 09:33:33 mrose
# Revision 7.1 90/12/23 18:44:45 mrose
# Revision 7.0 90/12/10 17:21:14 mrose
# *** empty log message ***
###############################################################################
###############################################################################
# Acquisition, use, and distribution of this module and related
# materials are subject to the restrictions of a license agreement.
# Consult the Preface in the User's Manual for the full terms of
###############################################################################
###############################################################################
# Generation Rules for program modules
###############################################################################
.c.o
:; $(CC
) $(CFLAGS
) -c
$*.c
###############################################################################
###############################################################################
LIBES
= $(TOPDIR
)libisode.a
LLIBS
= $(TOPDIR
)llib-lisode
###############################################################################
###############################################################################
HFILES
= ntp-config.h ntp.h patchlevel.h
CFILES
= ntp.c ntp.c ntp_adjust.c ntp_osi.c ntp_proto.c ntp_sock.c \
ntpd.c ntpdc.c ntpsubs.c ntq.c read_local.c read_psti.c
test.c
##################################################################
##################################################################
all: ntpd ntp ntpdc ntq ntest
inst-all
: inst-ntpd inst-ntp inst-ntpdc inst-ntq manuals
lint
: l-ntpd l-ntp l-ntpdc l-ntq
#################################################################
#################################################################
NTPDOBJ
= ntpd.o ntpsubs.o ntp_proto.o ntp_sock.o ntp_adjust.o read_local.o \
read_psti.o ntp_osi.o NTP-ops.o NTP-stubs.o NTP-types.o NTP-print.o
NTPDSRC
= ntpd.o ntpsubs.o ntp_proto.o ntp_sock.o ntp_adjust.o read_local.o \
read_psti.o ntp_osi.o NTP-ops.o NTP-stubs.o NTP-types.o NTP-print.o
inst-ntpd
: $(SBINDIR
)ntpd
$(CC
) $(LDFLAGS
) -o
$@
${NTPDOBJ} $(LIBES
)
$(LINT
) $(LINTFLAGS
) ${DEFINES} ${FEATURES} ${INCPATH} \
| grep
-v
"warning: possible pointer alignment problem"
#################################################################
#################################################################
$(LDCC
) $(LDFLAGS
) -o
$@
$(NTPOBJ
) $(LIBES
) $(LSOCKET
)
$(LINT
) $(LFLAGS
) $(NTPSRC
) $(LLIBS
) \
| grep
-v
"warning: possible pointer alignment problem"
#################################################################
#################################################################
inst-ntpdc
: $(SBINDIR
)ntpdc
$(LDCC
) $(LDFLAGS
) -o
$@
$(NTPDCOBJ
) $(LIBES
) $(LSOCKET
)
$(LINT
) $(LFLAGS
) $(NTPDCSRC
) $(LLIBS
) \
| grep
-v
"warning: possible pointer alignment problem"
#################################################################
#################################################################
NTQOBJ
= NTP-types.o NTP-stubs.o NTP-ops.o ntq.o
NTQSRC
= NTP-types.c NTP-stubs.c NTP-ops.c ntq.c
$(LDCC
) $(LDFLAGS
) -o
$@
$(NTQOBJ
) $(LIBES
) $(LSOCKET
)
$(LINT
) $(LFLAGS
) $(NTPQSRC
) $(LLIBS
) \
| grep
-v
"warning: possible pointer alignment problem"
#################################################################
#################################################################
$(LDCC
) $(LDFLAGS
) -o ntest
test.o ntpsubs.o
$(LIBES
)
$(LDCC
) $(LDFLAGS
) -DTEST
-o sock_test ntp_sock.c
$(LIBES
)
################################################################
################################################################
MANUALS
= ntp
.8 ntpd
.8 ntpdc
.8
manuals
:; @
$(UTILDIR
)inst-man.sh
$(MANOPTS
) $(MANUALS
)
################################################################
################################################################
clean:; rm -f
*.o
*.a NTP
* x
* ntest sock_test z
* _
* core
grind
:; iprint READ-ME Makefile
tgrind
-lc
$(HFILES
) $(CFILES
)
tgrind
-lpepy
-d
$(TOPDIR
)pepy
/grindefs
$(RYFILES
)
sed
-e
"s%.*%itroff -man &%" | \
#################################################################
#################################################################
ntp.o
: ntp.h ntp-config.h ntp.c
ntp_adjust.o
: ntp.h ntp-config.h ntp_adjust.c
ntp_osi.o
: ntp.h ntp-config.h NTP-ops.h NTP-types.h ntp_osi.c
ntp_proto.o
: ntp.h ntp-config.h ntp_proto.c
ntp_sock.o
: ntp.h ntp-config.h ntp_sock.c
ntpd.o
: ntp.h ntp-config.h patchlevel.h ntpd.c
ntpdc.o
: ntp.h ntp-config.h ntpdc.c
ntpsubs.o
: ntp.h ntp-config.h ntpsubs.c
read_local.o
: ntp-config.h read_local.c
read_psti.o
: ntp-config.h read_psti.c
test.o
: ntp.h ntp-config.h
test.c
NTP-ops.o
: NTP-ops.c NTP-ops.h NTP-types.h
$(CC
) $(CFLAGS
) -c
-DPERFORMER
-DINVOKER NTP-ops.c
$(TOPDIR
)pepy
/xpepy
-S PRINT
-o
$@
-a PY_advise NTP-asn.py
$(TOPDIR
)pepy
/xposy
-f
-h
-o
$@ NTP-asn.py
NTP-types.h
: NTP-types.py
$(TOPDIR
)rosy
/xrosy
-o
$@ ntp.ry
NTP-types.o
: NTP-types.c NTP-types.h
NTP-types.c
: NTP-types.py
$(TOPDIR
)pepy
/xpepy
-a PY_advise
-A NTP-types.py