1997-12-07 01:02:52 +00:00
|
|
|
--- src/osdep/unix/Makefile.orig Thu Dec 4 17:54:13 1997
|
|
|
|
+++ src/osdep/unix/Makefile Sat Dec 6 16:30:32 1997
|
1998-02-23 23:15:17 +00:00
|
|
|
@@ -94,7 +94,7 @@
|
|
|
|
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
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1998-02-23 23:15:17 +00:00
|
|
|
@@ -107,6 +107,11 @@
|
|
|
|
PASSWDTYPE=$(PASSWDTYPE) AFSDIR=$(AFSDIR) GSSDIR=$(GSSDIR)
|
|
|
|
BUILD=$(MAKE) build $(BUILDOPTIONS) $(EXTRASPECIALS)
|
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
|
|
|
+SHLIB=libc-client.so.2.1
|
|
|
|
+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
|
|
|
|
@@ -178,11 +183,11 @@
|
|
|
|
BASECFLAGS="-g -Dconst= -DNFSKLUDGE"
|
1997-11-17 12:34:52 +00:00
|
|
|
|
1997-12-07 01:02:52 +00:00
|
|
|
bsf: # FreeBSD
|
1998-02-23 23:15:17 +00:00
|
|
|
- $(BUILD) OS=bsi SIGTYPE=psx \
|
|
|
|
+ $(BUILD) $(SHLIB) OS=bsi SIGTYPE=psx \
|
|
|
|
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
|
1998-02-23 23:15:17 +00:00
|
|
|
@@ -553,10 +558,17 @@
|
1997-11-17 12:34:52 +00:00
|
|
|
$(ARRC) $(ARCHIVE) $(BINARIES)
|
|
|
|
$(RANLIB) $(ARCHIVE)
|
|
|
|
|
|
|
|
+$(SHLIB): $(SOFILES)
|
|
|
|
+ ld -Bshareable -x -o $(SHLIB) $(SOFILES)
|
|
|
|
+
|
1997-12-07 01:02:52 +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:
|
|
|
|
$(RM) *.o linkage.[ch] auths.c $(ARCHIVE) osdep.* *TYPE *FLAGS
|
|
|
|
+ $(RM) *.so $(SHLIB)
|
|
|
|
|
|
|
|
|
1997-11-17 12:34:52 +00:00
|
|
|
# Dependencies
|
1998-02-23 23:15:17 +00:00
|
|
|
@@ -590,7 +602,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 \
|
|
|
|
auths.c flock.c fsync.c gethstid.c \
|
|
|
|
@@ -602,7 +614,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)
|
|
|
|
+ $(CC) $(CFLAGS) `cat OSCFLAGS` -c osdep.c -o $@ -fpic -DPIC
|
|
|
|
|
|
|
|
osdep.c: osdepbas.c osdepckp.c osdeplog.c
|
|
|
|
$(RM) osdep.c
|