Makefile revision f6da83d4178694e7113b71d1e452f15b296f73d8
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# usr/src/cmd/cmd-inet/lib/nwamd/Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Needed for ROOTFS_LIBDIR definition
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../../../lib/Makefile.lib
cfb941e9ad5276eef7bc8f3eedcd270f30cfec35fuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPROG= nwamd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesOBJS= conditions.o dlpi_events.o door_if.o enm.o\
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes events.o known_wlans.o llp.o loc.o logging.o\
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes routing_events.o sysevent_events.o util.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSRCS= $(OBJS:%.o=%.c)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesHEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes objects.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLOCFILES= create_loc_auto create_loc_nonet
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNONETLOCFILES= ipf.conf.dfl ipf6.conf.dfl
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTCFGDIR= $(ROOTETC)/nwam
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTLOCDIR= $(ROOTCFGDIR)/loc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNONETLOCDIR= $(ROOTLOCDIR)/NoNet
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLOCDIRS= $(NONETLOCDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTCFGFILES= $(LOCFILES:%=$(ROOTLOCDIR)/%) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(NONETLOCFILES:%=$(NONETLOCDIR)/%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../../Makefile.cmd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(ROOTCFGFILES) := FILEMODE= 644
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTCMDDIR= $(ROOTFS_LIBDIR)/inet
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDLIBS += -ldhcpagent -ldhcputil -ldladm -ldlpi -lgen \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -linetutil -lipadm -lkstat -lnsl -lnvpair -lnwam \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -lsecdb -lscf -lsocket -lsysevent -lumem -luutil
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Instrument with CTF data to ease debugging.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCTFCONVERT_HOOK = && $(CTFCONVERT_O)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(OBJS) := CFLAGS += $(CTF_FLAGS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.PARALLEL:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesall: $(PROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PROG): $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(POST_PROCESS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(ROOTCMD) $(ROOTLOCDIR) $(ROOTCFGFILES)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholescheck: $(SRCS) $(HEADERS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CSTYLE) -cpP $(SRCS) $(HEADERS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg$(ROOTCMD): all
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: lint_SRCS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(ROOTCFGDIR):
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(INS.dir)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(ROOTLOCDIR): $(ROOTCFGDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(INS.dir)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(LOCDIRS): $(ROOTLOCDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(INS.dir)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(ROOTLOCDIR)/%: $(ROOTLOCDIR) %
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(INS.file)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(NONETLOCDIR)/%: $(NONETLOCDIR) %
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(INS.file)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankginclude ../../../Makefile.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes