From: Adi Masputra Date: Thu, 16 Sep 1999 01:17:00 +0000 (+0000) Subject: Added plugins support for Solaris X-Git-Tag: ppp-2.4.7~630 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=f73f049362626ddb5cf21551eb541ee1635831ca Added plugins support for Solaris --- diff --git a/pppd/Makefile.sol2 b/pppd/Makefile.sol2 index 943fd7b..f5799c7 100644 --- a/pppd/Makefile.sol2 +++ b/pppd/Makefile.sol2 @@ -1,17 +1,26 @@ # # Makefile for pppd under Solaris 2. -# $Id: Makefile.sol2,v 1.12 1999/09/08 01:13:45 masputra Exp $ +# $Id: Makefile.sol2,v 1.13 1999/09/16 01:16:59 masputra Exp $ # include ../svr4/Makedefs -CFLAGS = -DSVR4 -DSOL2 -I../include $(COPTS) -LIBS = -lsocket -lnsl +CFLAGS = -DSVR4 -DSOL2 -I../include $(COPTS) +LIBS = -lsocket -lnsl -all: pppd +OBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o \ + ccp.o auth.o options.o demand.o utils.o sys-svr4.o + +# +# uncomment the following to enable plugins +# +CFLAGS += -DPLUGIN +LIBS += -ldl -OBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o \ - auth.o options.o demand.o utils.o sys-svr4.o +# +# Make targets +# +all: pppd pppd: $(OBJS) $(CC) -o pppd $(OBJS) $(LIBS) diff --git a/pppd/plugins/Makefile.sol2 b/pppd/plugins/Makefile.sol2 new file mode 100644 index 0000000..c1d02e5 --- /dev/null +++ b/pppd/plugins/Makefile.sol2 @@ -0,0 +1,21 @@ +# +# Makefile for plugins on Solaris 2 +# +# $Id: Makefile.sol2,v 1.1 1999/09/16 01:17:00 masputra Exp $ +# + +include ../../svr4/Makedefs + +CFLAGS = -c -O -I.. -I../../include $(COPTS) +LDFLAGS = -G + +all: minconn.so + +minconn.so: minconn.o + ld -o $@ $(LDFLAGS) -h $@ minconn.o + +minconn.o: minconn.c + $(CC) $(CFLAGS) -c $? + +clean: + rm -f *.o *.so