Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
550N/A#
550N/A# CDDL HEADER START
1356N/A#
550N/A# The contents of this file are subject to the terms of the
1515N/A# Common Development and Distribution License, Version 1.0 only
550N/A# (the "License"). You may not use this file except in compliance
550N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# ident "%Z%%M% %I% %E% SMI"
919N/A#
550N/A# Copyright (c) 1999,2001 by Sun Microsystems, Inc.
550N/A# All rights reserved.
550N/A#
550N/A# cmd/cmd-inet/usr.sbin/mipagentconfig/Makefile
550N/A#
550N/A
970N/Ainclude $(SRC)/cmd/Makefile.cmd
977N/Ainclude $(SRC)/cmd/cmd-inet/Makefile.cmd-inet
970N/A
970N/APROG= mipagentconfig
1356N/A
1356N/ALCLOBJS=addr.o \
1356N/A general.o \
1356N/A gsp.o \
1356N/A utils.o \
1356N/A advertisements.o \
1356N/A spi.o \
1515N/A pool.o \
1356N/A mipagentconfig.o
550N/A
550N/ACOMOBJS= conflib.o
550N/A
550N/AHDRS= addr.h \
550N/A advertisements.h \
550N/A general.h \
550N/A gsp.h \
1451N/A mipagentconfig.h \
550N/A pool.h \
550N/A spi.h \
1466N/A utils.h
1466N/A
550N/A
550N/AOBJS= $(LCLOBJS) $(COMOBJS)
550N/A
1466N/A# Currently used only for linting and style checking
1466N/ASRCS=$(LCLOBJS:%.o=%.c) $(COMOBJS:%.o=$(CMDINETCOMMONDIR)/%.c)
1466N/A
1466N/A# I18n
550N/APOFILE=$(PROG)_prog.po
970N/APOFILES=$(LCLOBJS:%.o=%.po)
970N/A
970N/ACPPFLAGS += -I$(CMDINETCOMMONDIR) -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
550N/ACLOBBERFILES += $(PROG)
# Only root should be able to run mipagentconfig
FILEMODE= 500
.KEEP_STATE:
.PARALLEL: $(OBJS)
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
clean:
$(RM) *.o
check: $(HDRS:%.h=%.hcheck) $(SRCS:%.c=%.check)
%.hcheck: %.h
$(DOT_H_CHECK)
%.check: %.c
$(DOT_C_CHECK)
install: all $(ROOTUSRSBINPROG)
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
include $(SRC)/cmd/Makefile.targ
lint: lint_SRCS