Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePROG=ntpq
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall: $(PROG)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../Makefile.cmd
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../Makefile.cmd
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.PARALLEL:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCLOBBERFILES = $(ROOTUSRSBINPROG)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: all $(ROOTUSRSBINPROG)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDLIBS += $(LIBS) ../$(LIBNTP_A)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOBJS= ntpq.o ntpq_ops.o version.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSOURCE= ntpq.c ntpq_ops.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(PROG): $(OBJS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(POST_PROCESS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelint:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(LINT.c) -x -u $(DEFS) $(INCL) $(SOURCE) $(LDLIBS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(RM) $(OBJS) $(PROG) lint.errs
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe