1 0 stevel # 2 9751 james # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3 0 stevel # Use is subject to license terms. 4 0 stevel # 5 0 stevel # cmd/cmd-inet/usr.bin/pppd/Makefile 6 0 stevel # 7 0 stevel 8 0 stevel include ../../../Makefile.cmd 9 0 stevel include Makefile.def 10 0 stevel 11 0 stevel PROG= pppd 12 0 stevel SUBDIRS= plugins 13 0 stevel OBJS= auth.o ccp.o chap.o demand.o fsm.o ipcp.o ipv6cp.o \ 14 0 stevel lcp.o magic.o main.o options.o sys-solaris.o upap.o utils.o \ 15 0 stevel multilink.o cbcp.o 16 0 stevel 17 0 stevel # Object tdb.o used only for Multilink; not supported yet. 18 0 stevel 19 0 stevel all:= TARGET= all 20 0 stevel install:= TARGET= install 21 0 stevel clean:= TARGET= clean 22 0 stevel clobber:= TARGET= clobber 23 0 stevel lint:= TARGET= lint 24 0 stevel 25 6631 ss150715 LDLIBS += -lpam -lmd -lsocket -lnsl -ldlpi 26 0 stevel 27 0 stevel # 28 0 stevel # We need absolute path to /etc/ppp/plugins and /usr/lib/inet/ppp, not 29 0 stevel # that of the proto area 30 0 stevel # 31 0 stevel LDFLAGS += -R$(ETCPPPPLUGINDIR_ABS) -R$(LIBPPPPLUGINDIR_ABS) 32 0 stevel 33 0 stevel CPPFLAGS += -DPLUGIN -DSVR4 -DSOL2 -DINET6 34 0 stevel CPPFLAGS += -D_PATH_VARRUN='"/var/run/"' 35 0 stevel CPPFLAGS += -DNEGOTIATE_FCS -DCBCP_SUPPORT -DALLOW_PAM -DHAS_SHADOW 36 0 stevel CPPFLAGS += -DHAVE_MMAP -DCOMP_TUNE -DMUX_FRAME 37 0 stevel $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 38 0 stevel 39 0 stevel .KEEP_STATE: 40 0 stevel 41 0 stevel .PARALLEL: $(SUBDIRS) 42 0 stevel 43 0 stevel all: $(PROG) $(SUBDIRS) 44 0 stevel 45 0 stevel # MS-CHAP support 46 5619 darrenm CPPFLAGS += -DHAVE_CRYPT_H -DUSE_CRYPT -DHAVE_LIBMD 47 0 stevel CPPFLAGS += -DCHAPMS -DMSLANMAN 48 0 stevel CPPFLAGS += -DCHAPMSV2 49 1694 darrenm OBJS += chap_ms.o 50 0 stevel EXOBJS += mschap_test.o 51 0 stevel CLOBBERFILES += mschap_test 52 0 stevel 53 0 stevel # This is used *only* for testing the portability of the libraries 54 0 stevel # required for MS-CHAPv1. It is not needed in any normal system and 55 0 stevel # is not built by default. 56 1694 darrenm mschap_test: mschap_test.o chap_ms.o 57 5619 darrenm $(LINK.c) -o mschap_test mschap_test.o chap_ms.o $(LDFLAGS) -lmd 58 0 stevel @echo "Run with 'mschap_test 00000000000000000000000000000000 hello'" 59 0 stevel @echo 60 0 stevel @echo "Output should be:" 61 0 stevel @echo 62 0 stevel @echo " MS-CHAPv1 with LAN Manager -- 49 bytes:" 63 0 stevel @echo " C9 CA EE 9B 1C A7 87 04" 64 0 stevel @echo " 79 36 8C 55 AB 88 EC 5A" 65 0 stevel @echo " 57 E9 A1 B7 95 40 C3 74" 66 0 stevel @echo " F4 D9 9D AF 82 64 DC 3C" 67 0 stevel @echo " 53 F9 BC 92 14 B5 5D 9E" 68 0 stevel @echo " 78 C4 21 48 9D B7 A8 B4" 69 0 stevel @echo " 01" 70 0 stevel @echo " MS-CHAPv2 -- 49 bytes:" 71 0 stevel @echo " xx xx xx xx xx xx xx xx" 72 0 stevel @echo " xx xx xx xx xx xx xx xx" 73 0 stevel @echo " 00 00 00 00 00 00 00 00" 74 0 stevel @echo " xx xx xx xx xx xx xx xx" 75 0 stevel @echo " xx xx xx xx xx xx xx xx" 76 0 stevel @echo " xx xx xx xx xx xx xx xx" 77 0 stevel @echo " 00" 78 0 stevel 79 0 stevel LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 80 0 stevel 81 0 stevel SRCS= $(OBJS:%.o=%.c) 82 0 stevel 83 0 stevel .PARALLEL: $(OBJS) 84 0 stevel 85 0 stevel $(PROG): $(OBJS) 86 0 stevel $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 87 0 stevel $(POST_PROCESS) 88 0 stevel 89 0 stevel $(ROOTPROG):= FILEMODE = 04555 90 0 stevel 91 0 stevel ASPPP2PPPD= $(ROOTUSRSBIN)/asppp2pppd 92 0 stevel $(ASPPP2PPPD):= FILEMODE = 0550 93 0 stevel 94 0 stevel install: $(PROG) .WAIT $(SUBDIRS) $(ROOTPROG) $(ETCPPPDIR) $(ASPPP2PPPD) 95 0 stevel 96 0 stevel $(ETCPPPDIR)/%: % 97 0 stevel $(INS.file) 98 0 stevel 99 0 stevel $(ETCPPPDIR): 100 0 stevel $(INS.dir) 101 0 stevel 102 0 stevel $(SUBDIRS): FRC 103 0 stevel @cd $@; pwd; $(MAKE) $(TARGET) 104 0 stevel 105 0 stevel FRC: 106 0 stevel 107 0 stevel LINTOBJS=$(OBJS:%.o=%.ln) 108 0 stevel CLOBBERFILES += $(LINTOBJS) 109 0 stevel 110 0 stevel clean: $(SUBDIRS) 111 0 stevel $(RM) $(OBJS) $(EXOBJS) 112 0 stevel 113 0 stevel sha1.ln:= LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED 114 0 stevel 115 0 stevel # Not using the default lint target here so that we can disable 116 0 stevel # warnings per module as needed. 117 0 stevel lint: $(SUBDIRS) $(LINTOBJS) 118 0 stevel $(LINT.c) $(LINTOBJS) $(LDLIBS) 119 0 stevel 120 0 stevel clobber: $(SUBDIRS) 121 0 stevel 122 0 stevel include ../../../Makefile.targ 123