1999-03-15 01:38:38 +00:00
|
|
|
--- src/osdep/unix/Makefile.orig Wed Jan 27 01:17:39 1999
|
|
|
|
+++ src/osdep/unix/Makefile Sat Feb 27 17:16:00 1999
|
|
|
|
@@ -100,7 +100,7 @@
|
1998-02-23 23:15:17 +00:00
|
|
|
dummy.o pseudo.o netmsg.o flstring.o fdstring.o \
|
|
|
|
rfc822.o nntp.o smtp.o imap4r1.o pop3.o \
|
|
|
|
unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o
|
|
|
|
-CFLAGS=$(BASECFLAGS) $(EXTRACFLAGS)
|
|
|
|
+CFLAGS+=$(BASECFLAGS) $(EXTRACFLAGS)
|
|
|
|
MAKE=make
|
|
|
|
MV=mv
|
1998-06-04 20:36:37 +00:00
|
|
|
RM=rm -rf
|
1999-03-15 01:38:38 +00:00
|
|
|
@@ -115,6 +115,10 @@
|
|
|
|
PASSWDTYPE=$(PASSWDTYPE)
|
|
|
|
BUILD=$(MAKE) build $(BUILDOPTIONS)
|
1997-11-17 12:34:52 +00:00
|
|
|
|
|
|
|
+# Need this for the shared library rule to work correctly
|
|
|
|
+.SUFFIXES: .o .so
|
1998-02-23 23:15:17 +00:00
|
|
|
+SOFILES=${BINARIES:.o=.so}
|
1997-11-17 12:34:52 +00:00
|
|
|
+
|
1998-02-23 23:15:17 +00:00
|
|
|
# Here if no make argument established
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1998-02-23 23:15:17 +00:00
|
|
|
missing: osdep.h
|
1999-03-15 01:38:38 +00:00
|
|
|
@@ -190,7 +194,7 @@
|
1998-02-23 23:15:17 +00:00
|
|
|
SPOOLDIR=/var \
|
|
|
|
ACTIVEFILE=/usr/local/news/lib/active \
|
|
|
|
RSHPATH=/usr/bin/rsh \
|
|
|
|
- BASECFLAGS="-g -O -pipe -DNFSKLUDGE" \
|
|
|
|
+ BASECFLAGS="-DNFSKLUDGE -DIGNORE_LOCK_EACCES_ERRORS" \
|
|
|
|
BASELDFLAGS="-lcrypt"
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1997-12-07 01:02:52 +00:00
|
|
|
bsi: # BSD/i386
|
1999-03-15 01:38:38 +00:00
|
|
|
@@ -606,19 +610,31 @@
|
1998-11-21 20:01:56 +00:00
|
|
|
|
|
|
|
# Build it!
|
|
|
|
|
|
|
|
-build: clean once $(ARCHIVE)
|
1999-05-04 14:41:38 +00:00
|
|
|
+build: clean once $(ARCHIVE) $(SHLIBNAME)
|
1998-11-21 20:01:56 +00:00
|
|
|
|
|
|
|
-all: $(ARCHIVE)
|
1999-05-04 14:41:38 +00:00
|
|
|
+all: $(ARCHIVE) $(SHLIBNAME)
|
1998-11-21 20:01:56 +00:00
|
|
|
|
|
|
|
$(ARCHIVE): $(BINARIES)
|
|
|
|
sh -c '$(RM) $(ARCHIVE) || true'
|
1998-06-04 20:36:37 +00:00
|
|
|
@cat ARCHIVE
|
|
|
|
@$(SH) ARCHIVE
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1998-11-21 20:01:56 +00:00
|
|
|
+$(SHLIBNAME): $(SOFILES)
|
1998-10-13 23:25:07 +00:00
|
|
|
+.if $(PORTOBJFORMAT) == "elf"
|
1998-11-21 20:01:56 +00:00
|
|
|
+ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES)
|
1998-10-13 23:25:07 +00:00
|
|
|
+.else
|
1998-11-21 20:01:56 +00:00
|
|
|
+ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES)
|
1998-10-13 23:25:07 +00:00
|
|
|
+.endif
|
1998-11-21 20:01:56 +00:00
|
|
|
+ ln -s $(SHLIBNAME) lib$(SHLIBBASE).so
|
1997-11-17 12:34:52 +00:00
|
|
|
+
|
1998-07-31 06:47:02 +00:00
|
|
|
+.c.so: osdep.h
|
1997-11-17 12:34:52 +00:00
|
|
|
+ $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
|
|
|
|
+
|
1998-02-23 23:15:17 +00:00
|
|
|
# Cleanup
|
|
|
|
|
|
|
|
clean:
|
1998-07-31 06:47:02 +00:00
|
|
|
sh -c '$(RM) auths.c flockbsd.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE $(ARCHIVE) || true'
|
1998-11-21 20:01:56 +00:00
|
|
|
+ $(RM) *.so $(SHLIBNAME)
|
1998-02-23 23:15:17 +00:00
|
|
|
|
|
|
|
|
1997-11-17 12:34:52 +00:00
|
|
|
# Dependencies
|
1999-03-15 01:38:38 +00:00
|
|
|
@@ -652,7 +668,7 @@
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1998-02-23 23:15:17 +00:00
|
|
|
# OS-dependent
|
|
|
|
|
|
|
|
-osdep.o:mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
|
|
|
|
+OSDEPS= mail.h misc.h env.h fs.h ftl.h nl.h tcp.h \
|
|
|
|
osdep.h env_unix.h tcp_unix.h \
|
|
|
|
osdep.c env_unix.c fs_unix.c ftl_unix.c nl_unix.c tcp_unix.c \
|
1998-06-04 20:36:37 +00:00
|
|
|
auths.c flock.c flockbsd.c flcksafe.c fsync.c gethstid.c \
|
1999-03-15 01:38:38 +00:00
|
|
|
@@ -664,7 +680,12 @@
|
1997-12-07 01:02:52 +00:00
|
|
|
write.c \
|
1998-02-23 23:15:17 +00:00
|
|
|
strerror.c strpbrk.c strstr.c strtok.c strtoul.c \
|
|
|
|
OSCFLAGS
|
|
|
|
+
|
|
|
|
+osdep.o: $(OSDEPS)
|
|
|
|
$(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c
|
1997-11-17 12:34:52 +00:00
|
|
|
+
|
1998-02-23 23:15:17 +00:00
|
|
|
+osdep.so: $(OSDEPS)
|
1998-11-21 20:01:56 +00:00
|
|
|
+ $(CC) -fpic -DPIC -c $(CFLAGS) `cat OSCFLAGS` osdep.c -o $@
|
1998-02-23 23:15:17 +00:00
|
|
|
|
|
|
|
osdep.c: osdepbas.c osdepckp.c osdeplog.c
|
1999-03-15 01:38:38 +00:00
|
|
|
cat osdepbas.c osdepckp.c osdeplog.c > osdep.c
|