mirror of
https://github.com/paulusmack/ppp.git
synced 2024-12-18 16:43:33 +08:00
e8be982dbc
Unified the locking code, added relock(). Revert strlcpy to strncpy when filling in utmp structs. Fixed some bugs in DNS addr option handling. Set PPPLOGNAME with login name of user. Moved daemon() logic into detach(). Fix bug where errno was clobbered by seteuid(). Use pty in sys-linux.c when making a ppp unit.
40 lines
1004 B
Makefile
40 lines
1004 B
Makefile
#
|
|
# pppd makefile for OSF/1 on DEC Alpha
|
|
# $Id: Makefile.osf,v 1.9 1999/04/12 06:24:44 paulus Exp $
|
|
#
|
|
|
|
BINDIR = /usr/local/etc
|
|
MANDIR = /usr/local/man
|
|
|
|
PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c ccp.c \
|
|
auth.c options.c demand.c utils.c sys-osf.c md4.c chap_ms.c
|
|
|
|
PPPDOBJS = 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-osf.o md4.o chap_ms.o
|
|
|
|
CC = cc
|
|
#DEBUG_FLAGS = -DDEBUGALL
|
|
COMPILE_FLAGS = -DSTREAMS -DGIDSET_TYPE=int -D_SOCKADDR_LEN -DCHAPMS \
|
|
-DUSE_CRYPT $(DEBUG_FLAGS) -DLOCK_DIR=\"/usr/spool/locks\"
|
|
#COPTS = -O2
|
|
COPTS = -g
|
|
LIBS =
|
|
|
|
CFLAGS = -I../include $(COPTS) $(COMPILE_FLAGS)
|
|
|
|
all: pppd
|
|
|
|
install: pppd
|
|
installbsd -c -m 4555 -o root -g daemon pppd $(BINDIR)/pppd
|
|
installbsd -c -m 444 -o root pppd.8 $(MANDIR)/man8/pppd.8
|
|
|
|
pppd: $(PPPDOBJS)
|
|
$(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(PPPDOBJS) pppd *~ #* core
|
|
|
|
depend:
|
|
cpp -M $(CFLAGS) $(PPPDSRCS) >.depend
|
|
# makedepend $(CFLAGS) $(PPPDSRCS)
|