Makefile revision 6ba597c56d749c61b4f783157f63196d7b2445f0
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# CDDL HEADER START
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# The contents of this file are subject to the terms of the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Common Development and Distribution License (the "License").
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# You may not use this file except in compliance with the License.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# or http://www.opensolaris.org/os/licensing.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# See the License for the specific language governing permissions
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# and limitations under the License.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# When distributing Covered Code, include this CDDL HEADER in each
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# If applicable, add the following below this CDDL HEADER, with the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# CDDL HEADER END
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Use is subject to license terms.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# usr/src/cmd/cmd-inet/lib/nwamd/Makefile
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Needed for ROOTFS_LIBDIR definition
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncinclude ../../../../lib/Makefile.lib
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPROG= nwamd
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncOBJS= conditions.o dlpi_events.o door_if.o enm.o\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync events.o known_wlans.o llp.o loc.o logging.o\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync routing_events.o sysevent_events.o util.o
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncSRCS= $(OBJS:%.o=%.c)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncHEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync objects.h
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncLOCFILES= create_loc_auto create_loc_nonet
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncNONETLOCFILES= ipf.conf.dfl ipf6.conf.dfl
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncROOTCFGDIR= $(ROOTETC)/nwam
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncROOTLOCDIR= $(ROOTCFGDIR)/loc
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncNONETLOCDIR= $(ROOTLOCDIR)/NoNet
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncLOCDIRS= $(NONETLOCDIR)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncROOTCFGFILES= $(LOCFILES:%=$(ROOTLOCDIR)/%) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(NONETLOCFILES:%=$(NONETLOCDIR)/%)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncinclude ../../../Makefile.cmd
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync$(ROOTCFGFILES) := FILEMODE= 644
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncPOFILE= $(PROG).po
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncROOTCMDDIR= $(ROOTFS_LIBDIR)/inet
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncLDLIBS += -ldhcpagent -ldhcputil -ldladm -ldlpi -lgen \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync -linetcfg -linetutil -lkstat -lnsl -lnvpair -lnwam \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync -lsecdb -lscf -lsocket -lsysevent -lumem -luutil
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsync# Instrument with CTF data to ease debugging.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncCTFCONVERT_HOOK = && $(CTFCONVERT_O)
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync$(OBJS) := CFLAGS += $(CTF_FLAGS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync.KEEP_STATE:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync.PARALLEL:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncall: $(PROG)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync$(PROG): $(OBJS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(POST_PROCESS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncinstall: $(ROOTCMD) $(ROOTLOCDIR) $(ROOTCFGFILES)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsynccheck: $(SRCS) $(HEADERS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync $(CSTYLE) -cpP $(SRCS) $(HEADERS)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
$(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