dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / usr.bin / pppd / plugins / Makefile
blob81d33305c4f75d0a60869f85a4f7d5f619c5867a
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 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
28 MINCONN = minconn.so
29 PASSPROMPT = passprompt.so
30 PPPOE = pppoe.so
32 LIBRARIES = minconn.so passprompt.so pppoe.so
33 OBJECTS = minconn.o passprompt.o pppoe.o
35 include $(SRC)/lib/Makefile.lib
36 include ../Makefile.def
38 # Express objects in terms of "pics" thus triggering the appropriate CPPFLAGS,
39 # CFLAGS and DYNFLAGS settings from lib/Makefile.lib to build shared objects.
40 $(MINCONN):= PICS = pics/minconn.o
41 $(PASSPROMPT):= PICS = pics/passprompt.o
42 $(PPPOE):= PICS = pics/pppoe.o
44 # Suppress -h setting from DYNFLAGS as these libraries aren't linked against.
45 # Establish external references through mapfiles and dependencies to allow
46 # use of -zdefs.
47 HSONAME=
48 $(MINCONN):= MAPFILES = mapfile-minconn
49 $(PASSPROMPT):= MAPFILES = mapfile-passprompt
50 $(PPPOE):= MAPFILES = mapfile-pppoe
52 # A bug in pmake causes redundancy when '+=' is conditionally assigned, so
53 # '=' is used with extra variables.
54 XXXLDLIBS =
55 $(PASSPROMPT):= XXXLDLIBS = -lc
56 LDLIBS += $(XXXLDLIBS)
58 CPPFLAGS += -I.. -I$(SRC)/uts/common -I$(SRCTOP)/include
59 # XX64 -- this should not be needed -- fix me
60 DYNFLAGS += -nostdlib
62 CLOBBERFILES += $(LIBRARIES)
64 LIBPPPPLUGIN= $(LIBRARIES:%=$(LIBPPPPLUGINDIR)/%)
66 $(LIBPPPPLUGIN):= FILEMODE = 0544
68 $(LIBPPPPLUGINDIR):= FILEMODE = 0755
70 .KEEP_STATE:
72 all: $(LIBRARIES)
74 $(MINCONN): pics .WAIT $$(PICS)
75 $(BUILD.SO)
76 $(POST_PROCESS_SO)
78 $(PASSPROMPT): pics .WAIT $$(PICS)
79 $(BUILD.SO)
80 $(POST_PROCESS_SO)
82 $(PPPOE): pics .WAIT $$(PICS)
83 $(BUILD.SO)
84 $(POST_PROCESS_SO)
86 install: all $(LIBPPPPLUGINDIR) $(LIBPPPPLUGIN)
88 $(LIBPPPPLUGINDIR):
89 $(INS.dir)
91 $(LIBPPPPLUGINDIR)/%: %
92 $(INS.file)
94 include $(SRC)/lib/Makefile.targ