2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # cmd/cmd-inet/usr.bin/pppd/Makefile
7 # Copyright (c) 2019, Joyent, Inc.
9 include ..
/..
/..
/Makefile.cmd
14 OBJS
= auth.o ccp.o chap.o demand.o fsm.o ipcp.o ipv6cp.o \
15 lcp.o magic.o main.o options.o sys-solaris.o upap.o utils.o \
18 # Object tdb.o used only for Multilink; not supported yet.
21 install:= TARGET
= install
23 clobber:= TARGET
= clobber
25 LDLIBS
+= -lpam
-lmd
-ldlpi
28 # We need absolute path to /etc/ppp/plugins and /usr/lib/inet/ppp, not
29 # that of the proto area
31 LDFLAGS
+= -R
$(ETCPPPPLUGINDIR_ABS
) -R
$(LIBPPPPLUGINDIR_ABS
)
33 CPPFLAGS
+= -DPLUGIN
-DSVR4
-DSOL2
-DINET6
34 CPPFLAGS
+= -D_PATH_VARRUN
='"/var/run/"'
35 CPPFLAGS
+= -DNEGOTIATE_FCS
-DCBCP_SUPPORT
-DALLOW_PAM
-DHAS_SHADOW
36 CPPFLAGS
+= -DHAVE_MMAP
-DCOMP_TUNE
-DMUX_FRAME
37 $(NOT_RELEASE_BUILD
)CPPFLAGS
+= -DDEBUG
43 all: $(PROG
) $(SUBDIRS
)
46 CPPFLAGS
+= -DHAVE_CRYPT_H
-DUSE_CRYPT
-DHAVE_LIBMD
47 CPPFLAGS
+= -DCHAPMS
-DMSLANMAN
48 CPPFLAGS
+= -DCHAPMSV2
50 EXOBJS
+= mschap_test.o
51 CLOBBERFILES
+= mschap_test
53 CERRWARN
+= -Wno-uninitialized
55 # main() is too hairy for smatch
58 # This is used *only* for testing the portability of the libraries
59 # required for MS-CHAPv1. It is not needed in any normal system and
60 # is not built by default.
61 mschap_test
: mschap_test.o chap_ms.o
62 $(LINK.c
) -o mschap_test mschap_test.o chap_ms.o
$(LDFLAGS
) -lmd
63 @echo
"Run with 'mschap_test 00000000000000000000000000000000 hello'"
65 @echo
"Output should be:"
67 @echo
" MS-CHAPv1 with LAN Manager -- 49 bytes:"
68 @echo
" C9 CA EE 9B 1C A7 87 04"
69 @echo
" 79 36 8C 55 AB 88 EC 5A"
70 @echo
" 57 E9 A1 B7 95 40 C3 74"
71 @echo
" F4 D9 9D AF 82 64 DC 3C"
72 @echo
" 53 F9 BC 92 14 B5 5D 9E"
73 @echo
" 78 C4 21 48 9D B7 A8 B4"
75 @echo
" MS-CHAPv2 -- 49 bytes:"
76 @echo
" xx xx xx xx xx xx xx xx"
77 @echo
" xx xx xx xx xx xx xx xx"
78 @echo
" 00 00 00 00 00 00 00 00"
79 @echo
" xx xx xx xx xx xx xx xx"
80 @echo
" xx xx xx xx xx xx xx xx"
81 @echo
" xx xx xx xx xx xx xx xx"
90 $(LINK.c
) $(OBJS
) -o
$@
$(LDLIBS
)
93 $(ROOTPROG
):= FILEMODE
= 04555
95 ASPPP2PPPD
= $(ROOTUSRSBIN
)/asppp2pppd
96 $(ASPPP2PPPD
):= FILEMODE
= 0550
98 install: $(PROG
) .WAIT
$(SUBDIRS
) $(ROOTPROG
) $(ETCPPPDIR
) $(ASPPP2PPPD
)
107 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
112 $(RM
) $(OBJS
) $(EXOBJS
)
116 include ..
/..
/..
/Makefile.targ