dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / lib / nwamd / Makefile
blob095a34e63e19713ed7b48c5a72c8b355863b2986
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 # usr/src/cmd/cmd-inet/lib/nwamd/Makefile
27 # Needed for ROOTFS_LIBDIR definition
28 include ../../../../lib/Makefile.lib
30 PROG= nwamd
31 OBJS= conditions.o dlpi_events.o door_if.o enm.o\
32 events.o known_wlans.o llp.o loc.o logging.o\
33 main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\
34 routing_events.o sysevent_events.o util.o
35 SRCS= $(OBJS:%.o=%.c)
36 HEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
37 objects.h
38 LOCFILES= create_loc_auto create_loc_nonet
39 NONETLOCFILES= ipf.conf.dfl ipf6.conf.dfl
41 ROOTCFGDIR= $(ROOTETC)/nwam
42 ROOTLOCDIR= $(ROOTCFGDIR)/loc
43 NONETLOCDIR= $(ROOTLOCDIR)/NoNet
44 LOCDIRS= $(NONETLOCDIR)
45 ROOTCFGFILES= $(LOCFILES:%=$(ROOTLOCDIR)/%) \
46 $(NONETLOCFILES:%=$(NONETLOCDIR)/%)
48 include ../../../Makefile.cmd
50 $(ROOTCFGFILES) := FILEMODE= 644
52 ROOTCMDDIR= $(ROOTFS_LIBDIR)/inet
54 LDLIBS += -ldhcpagent -ldhcputil -ldladm -ldlpi -lgen \
55 -linetutil -lipadm -lkstat -lnvpair -lnwam \
56 -lsecdb -lscf -lsysevent -lumem -luutil
58 CERRWARN += -Wno-uninitialized
59 CERRWARN += -Wno-parentheses
60 CERRWARN += -Wno-switch
61 CERRWARN += -Wno-unused-label
64 # Instrument with CTF data to ease debugging.
66 CTFCONVERT_HOOK = && $(CTFCONVERT_O)
67 CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
68 $(OBJS) := CFLAGS += $(CTF_FLAGS)
70 .KEEP_STATE:
72 .PARALLEL:
74 all: $(PROG)
76 $(PROG): $(OBJS)
77 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
78 $(POST_PROCESS)
80 install: $(ROOTCMD) $(ROOTLOCDIR) $(ROOTCFGFILES)
82 check: $(SRCS) $(HEADERS)
83 $(CSTYLE) -cpP $(SRCS) $(HEADERS)
85 $(ROOTCMD): all
87 clean:
88 $(RM) $(OBJS)
91 $(ROOTCFGDIR):
92 $(INS.dir)
94 $(ROOTLOCDIR): $(ROOTCFGDIR)
95 $(INS.dir)
97 $(LOCDIRS): $(ROOTLOCDIR)
98 $(INS.dir)
100 $(ROOTLOCDIR)/%: $(ROOTLOCDIR) %
101 $(INS.file)
103 $(NONETLOCDIR)/%: $(NONETLOCDIR) %
104 $(INS.file)
106 include ../../../Makefile.targ