Makefile revision 6ba597c56d749c61b4f783157f63196d7b2445f0
729N/A#
729N/A# CDDL HEADER START
729N/A#
729N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
729N/A# You may not use this file except in compliance with the License.
729N/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#
919N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
729N/A#
729N/A# usr/src/cmd/cmd-inet/lib/nwamd/Makefile
729N/A#
729N/A
729N/A# Needed for ROOTFS_LIBDIR definition
729N/Ainclude ../../../../lib/Makefile.lib
729N/A
729N/APROG= nwamd
729N/AOBJS= conditions.o dlpi_events.o door_if.o enm.o\
911N/A events.o known_wlans.o llp.o loc.o logging.o\
911N/A main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
911N/A routing_events.o sysevent_events.o util.o
911N/ASRCS= $(OBJS:%.o=%.c)
729N/AHEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
729N/A objects.h
729N/ALOCFILES= create_loc_auto create_loc_nonet
729N/ANONETLOCFILES= ipf.conf.dfl ipf6.conf.dfl
729N/A
729N/AROOTCFGDIR= $(ROOTETC)/nwam
729N/AROOTLOCDIR= $(ROOTCFGDIR)/loc
729N/ANONETLOCDIR= $(ROOTLOCDIR)/NoNet
729N/ALOCDIRS= $(NONETLOCDIR)
729N/AROOTCFGFILES= $(LOCFILES:%=$(ROOTLOCDIR)/%) \
729N/A $(NONETLOCFILES:%=$(NONETLOCDIR)/%)
729N/A
729N/Ainclude ../../../Makefile.cmd
729N/A
851N/A$(ROOTCFGFILES) := FILEMODE= 644
729N/A
729N/APOFILE= $(PROG).po
729N/A
729N/AROOTCMDDIR= $(ROOTFS_LIBDIR)/inet
851N/A
729N/ALDLIBS += -ldhcpagent -ldhcputil -ldladm -ldlpi -lgen \
729N/A -linetcfg -linetutil -lkstat -lnsl -lnvpair -lnwam \
729N/A -lsecdb -lscf -lsocket -lsysevent -lumem -luutil
851N/A
729N/A#
729N/A# Instrument with CTF data to ease debugging.
729N/A#
729N/ACTFCONVERT_HOOK = && $(CTFCONVERT_O)
729N/ACTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
851N/A$(OBJS) := CFLAGS += $(CTF_FLAGS)
851N/A
963N/A.KEEP_STATE:
851N/A
851N/A.PARALLEL:
851N/A
947N/Aall: $(PROG)
963N/A
963N/A$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
$(POST_PROCESS)
install: $(ROOTCMD) $(ROOTLOCDIR) $(ROOTCFGFILES)
check: $(SRCS) $(HEADERS)
$(CSTYLE) -cpP $(SRCS) $(HEADERS)
$(ROOTCMD): all
clean:
$(RM) $(OBJS)
lint: lint_SRCS
$(ROOTCFGDIR):
$(INS.dir)
$(ROOTLOCDIR): $(ROOTCFGDIR)
$(INS.dir)
$(LOCDIRS): $(ROOTLOCDIR)
$(INS.dir)
$(ROOTLOCDIR)/%: $(ROOTLOCDIR) %
$(INS.file)
$(NONETLOCDIR)/%: $(NONETLOCDIR) %
$(INS.file)
include ../../../Makefile.targ
include ../../Makefile.msg