1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/AMINCONN = minconn.so
1N/APASSPROMPT = passprompt.so
1N/APPPOE = pppoe.so
1N/A
1N/ALIBRARIES = minconn.so passprompt.so pppoe.so
1N/AOBJECTS = minconn.o passprompt.o pppoe.o
1N/A
1N/A# The rest of the sources are GPL
1N/ALINTSRCS = pppoe.c
1N/A
1N/Ainclude $(SRC)/lib/Makefile.lib
1N/Ainclude ../Makefile.def
1N/A
1N/A# Express objects in terms of "pics" thus triggering the appropriate CPPFLAGS,
1N/A# CFLAGS and DYNFLAGS settings from lib/Makefile.lib to build shared objects.
1N/A$(MINCONN):= PICS = pics/minconn.o
1N/A$(PASSPROMPT):= PICS = pics/passprompt.o
1N/A$(PPPOE):= PICS = pics/pppoe.o
1N/A
1N/A# Suppress -h setting from DYNFLAGS as these libraries aren't linked against.
1N/A# Establish external references through mapfiles and dependencies to allow
1N/A# use of -zdefs.
1N/AHSONAME=
1N/A$(MINCONN):= MAPFILES = mapfile-minconn
1N/A$(PASSPROMPT):= MAPFILES = mapfile-passprompt
1N/A$(PPPOE):= MAPFILES = mapfile-pppoe
1N/A
1N/A# A bug in pmake causes redundancy when '+=' is conditionally assigned, so
1N/A# '=' is used with extra variables.
1N/AXXXLDLIBS =
1N/A$(PASSPROMPT):= XXXLDLIBS = -lc
1N/ALDLIBS += $(XXXLDLIBS)
1N/A
1N/ACPPFLAGS += -I.. -I$(SRC)/uts/common
1N/A# XX64 -- this should not be needed -- fix me
1N/ADYNFLAGS += -_gcc=-nostdlib -xnolib
1N/A
1N/ACLOBBERFILES += $(LIBRARIES)
1N/A
1N/ALIBPPPPLUGIN= $(LIBRARIES:%=$(LIBPPPPLUGINDIR)/%)
1N/A
1N/A$(LIBPPPPLUGIN):= FILEMODE = 0544
1N/A
1N/A$(LIBPPPPLUGINDIR):= FILEMODE = 0755
1N/A
1N/A# This is needed because install doesn't handle -g well.
1N/AUTILDIR= $(ROOT)/usr/share/src/ppputil
1N/AROOTSRC= $(UTILDIR)/plugins
1N/ASRCFILES= Makefile minconn.c passprompt.c pppd.h
1N/AROOTSRCFILES= $(SRCFILES:%=$(ROOTSRC)/%)
1N/A$(ROOTSRCFILES):= FILEMODE= 0444
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: $(LIBRARIES)
1N/A
1N/A$(MINCONN): pics .WAIT $$(PICS)
1N/A $(BUILD.SO)
1N/A $(POST_PROCESS_SO)
1N/A
1N/A$(PASSPROMPT): pics .WAIT $$(PICS)
1N/A $(BUILD.SO)
1N/A $(POST_PROCESS_SO)
1N/A
1N/A$(PPPOE): pics .WAIT $$(PICS)
1N/A $(BUILD.SO)
1N/A $(POST_PROCESS_SO)
1N/A
1N/Ainstall: all $(LIBPPPPLUGINDIR) $(LIBPPPPLUGIN) install_src
1N/A
1N/A$(LIBPPPPLUGINDIR):
1N/A $(INS.dir)
1N/A
1N/A$(LIBPPPPLUGINDIR)/%: %
1N/A $(INS.file)
1N/A
1N/A$(UTILDIR) $(ROOTSRC):
1N/A $(INS.dir)
1N/A
1N/A$(ROOTSRC)/Makefile%: Makefile%.dist
1N/A $(INS.rename)
1N/A
1N/A$(ROOTSRC)/%.h: ../%.h
1N/A $(INS.file)
1N/A
1N/A$(ROOTSRC)/%: %
1N/A $(INS.file)
1N/A
1N/Ainstall_src: $(UTILDIR) .WAIT $(ROOTSRC) .WAIT $(ROOTSRCFILES)
1N/A
1N/Alint:
1N/A $(LINT.c) $(LINTSRCS) $(LDLIBS)
1N/A
1N/Ainclude $(SRC)/lib/Makefile.targ