Makefile revision fb60e41df3cdb2164356bc09f05d3b842c1a8365
970N/A#
1450N/A# ident "%Z%%M% %I% %E% SMI"
970N/A#
970N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
970N/A# Use is subject to license terms.
970N/A#
970N/A# cmd/cmd-inet/usr.bin/pppd/Makefile
970N/A#
970N/A
970N/Ainclude ../../../Makefile.cmd
970N/Ainclude Makefile.def
970N/A
970N/APROG= pppd
970N/ASUBDIRS= plugins
970N/AOBJS= auth.o ccp.o chap.o demand.o fsm.o ipcp.o ipv6cp.o \
970N/A lcp.o magic.o main.o options.o sys-solaris.o upap.o utils.o \
970N/A multilink.o cbcp.o
970N/A
970N/A# Object tdb.o used only for Multilink; not supported yet.
970N/A
970N/Aall:= TARGET= all
970N/Ainstall:= TARGET= install
970N/Aclean:= TARGET= clean
970N/Aclobber:= TARGET= clobber
970N/Alint:= TARGET= lint
970N/A
970N/ALDLIBS += -lpam -lmd -lsocket -lnsl -ldlpi
970N/A
970N/A#
970N/A# We need absolute path to /etc/ppp/plugins and /usr/lib/inet/ppp, not
970N/A# that of the proto area
970N/A#
970N/ALDFLAGS += -R$(ETCPPPPLUGINDIR_ABS) -R$(LIBPPPPLUGINDIR_ABS)
1172N/A
1172N/ACPPFLAGS += -DPLUGIN -DSVR4 -DSOL2 -DINET6
1172N/ACPPFLAGS += -D_PATH_VARRUN='"/var/run/"'
1172N/ACPPFLAGS += -DNEGOTIATE_FCS -DCBCP_SUPPORT -DALLOW_PAM -DHAS_SHADOW
970N/ACPPFLAGS += -DHAVE_MMAP -DCOMP_TUNE -DMUX_FRAME
1172N/A$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
970N/A
970N/A.KEEP_STATE:
1450N/A
1450N/A.PARALLEL: $(SUBDIRS)
1450N/A
1450N/Aall: $(PROG) $(SUBDIRS)
1450N/A
1450N/A# MS-CHAP support
1450N/ACPPFLAGS += -DHAVE_CRYPT_H -DUSE_CRYPT -DHAVE_LIBMD
1450N/ACPPFLAGS += -DCHAPMS -DMSLANMAN
1450N/ACPPFLAGS += -DCHAPMSV2
970N/AOBJS += chap_ms.o
970N/AEXOBJS += mschap_test.o
970N/ACLOBBERFILES += mschap_test
970N/A
970N/A# This is used *only* for testing the portability of the libraries
970N/A# required for MS-CHAPv1. It is not needed in any normal system and
970N/A# is not built by default.
970N/Amschap_test: mschap_test.o chap_ms.o
970N/A $(LINK.c) -o mschap_test mschap_test.o chap_ms.o $(LDFLAGS) -lmd
970N/A @echo "Run with 'mschap_test 00000000000000000000000000000000 hello'"
1003N/A @echo
970N/A @echo "Output should be:"
970N/A @echo
970N/A @echo " MS-CHAPv1 with LAN Manager -- 49 bytes:"
970N/A @echo " C9 CA EE 9B 1C A7 87 04"
970N/A @echo " 79 36 8C 55 AB 88 EC 5A"
970N/A @echo " 57 E9 A1 B7 95 40 C3 74"
1450N/A @echo " F4 D9 9D AF 82 64 DC 3C"
1450N/A @echo " 53 F9 BC 92 14 B5 5D 9E"
1450N/A @echo " 78 C4 21 48 9D B7 A8 B4"
1450N/A @echo " 01"
1450N/A @echo " MS-CHAPv2 -- 49 bytes:"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " 00 00 00 00 00 00 00 00"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " xx xx xx xx xx xx xx xx"
@echo " 00"
LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
LINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2
LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
SRCS= $(OBJS:%.o=%.c)
.PARALLEL: $(OBJS)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
$(ROOTPROG):= FILEMODE = 04555
$(ROOTPROG):= OWNER = root
ASPPP2PPPD= $(ROOTUSRSBIN)/asppp2pppd
$(ASPPP2PPPD):= OWNER=root
$(ASPPP2PPPD):= GROUP=bin
$(ASPPP2PPPD):= FILEMODE = 0550
install: $(PROG) .WAIT $(SUBDIRS) $(ROOTPROG) $(ETCPPPDIR) $(ASPPP2PPPD)
$(ETCPPPDIR)/%: %
$(INS.file)
$(ETCPPPDIR):
$(INS.dir)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
LINTOBJS=$(OBJS:%.o=%.ln)
CLOBBERFILES += $(LINTOBJS)
clean: $(SUBDIRS)
$(RM) $(OBJS) $(EXOBJS)
sha1.ln:= LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
# Not using the default lint target here so that we can disable
# warnings per module as needed.
lint: $(SUBDIRS) $(LINTOBJS)
$(LINT.c) $(LINTOBJS) $(LDLIBS)
clobber: $(SUBDIRS)
include ../../../Makefile.targ