mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-30 23:13:35 +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.
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# pppd makefile for AIX 4.1
|
|
# $Id: Makefile.aix4,v 1.4 1999/04/12 06:24:44 paulus Exp $
|
|
#
|
|
#ifndef BINDIR
|
|
BINDIR = /usr/sbin
|
|
#endif
|
|
#ifndef MANDIR
|
|
MANDIR = /usr/man
|
|
#ENDIF
|
|
|
|
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-aix4.c \
|
|
gencode.c grammar.c scanner.c nametoaddr.c optimize.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-aix4.o \
|
|
gencode.o grammar.o scanner.o nametoaddr.o optimize.o
|
|
|
|
CC = xlc
|
|
DEBUG_FLAGS = -DDEBUGALL
|
|
# SECURE_FLAGS = -DREQ_SYSOPTIONS=1
|
|
COMPILE_FLAGS = -DSTREAMS
|
|
COPTS = -O
|
|
LIBS= -bI:/lib/pse.exp
|
|
LOCK_PREFIX=\"/var/locks/LCK..\"
|
|
|
|
CFLAGS = -I ../include $(COPTS) $(DEBUG_FLAGS) $(COMPILE_FLAGS) $(SECURE_FLAGS)
|
|
|
|
all: pppd
|
|
|
|
pppd: $(PPPDOBJS)
|
|
$(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS)
|
|
|
|
install: all
|
|
install -M 4555 -O root -G system -f $(BINDIR) pppd
|
|
install -M 555 -O root -f $(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)
|