]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Update pam patch to build cmd64 on alpha
authorSam Hartman <hartmans@debian.org>
Sun, 13 Apr 2003 21:16:40 +0000 (21:16 +0000)
committerSam Hartman <hartmans@debian.org>
Sun, 13 Apr 2003 21:16:40 +0000 (21:16 +0000)
15 files changed:
debian/changelog
debian/patch.build_pam
src/audit/Makefile.in
src/auth/Makefile.in
src/cmd/Makefile.in
src/comerr/Makefile.in
src/des/Makefile.in
src/kauth/Makefile.in
src/lwp/Makefile.in
src/pam/Makefile.in
src/rx/Makefile.in
src/rxkad/Makefile.in
src/sys/Makefile.in
src/util/Makefile.in
src/venus/Makefile.in

index 0a576ef259393a6c76be55d8897a927bad0444f7..a82ed539b5e08843337c9e037397f552b7d771c4 100644 (file)
@@ -8,7 +8,7 @@ openafs (1.2.9-1) unstable; urgency=low
   * Report i386_linux24 not linux22 on i386, Closes: #187789
   * Convert to po-debconf, patch from Andre Luis Lopes, CLoses: #187901
 
- --
+ -- Sam Hartman <hartmans@mit.edu>  Sun, 13 Apr 2003 17:00:43 -0400
 
 openafs (1.2.8-4) unstable; urgency=low
 
index c8e4072420c5d86fe8983e6f72800e26e3ab2e45..8f591747a4b593bd4d95076264f261673718fc5a 100644 (file)
@@ -3,10 +3,10 @@
 Index: src/audit/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/audit/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/audit/Makefile.in      13 Apr 2003 18:56:24 -0000      1.5
-+++ src/audit/Makefile.in      13 Apr 2003 19:56:30 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/audit/Makefile.in      13 Apr 2003 20:41:58 -0000      1.7
++++ src/audit/Makefile.in      13 Apr 2003 21:14:09 -0000
 @@ -65,9 +65,11 @@
  
  audit.o: audit.c audit.h 
@@ -23,10 +23,10 @@ diff -u -r1.5 Makefile.in
 Index: src/auth/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/auth/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/auth/Makefile.in       13 Apr 2003 18:56:25 -0000      1.5
-+++ src/auth/Makefile.in       13 Apr 2003 19:56:30 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/auth/Makefile.in       13 Apr 2003 20:41:58 -0000      1.7
++++ src/auth/Makefile.in       13 Apr 2003 21:14:09 -0000
 @@ -45,7 +45,15 @@
  UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
         ktc.c authcon.c ktc_errors.c
@@ -56,11 +56,11 @@ diff -u -r1.5 Makefile.in
 Index: src/cmd/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/cmd/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/cmd/Makefile.in        13 Apr 2003 18:56:25 -0000      1.5
-+++ src/cmd/Makefile.in        13 Apr 2003 19:56:31 -0000
-@@ -34,6 +34,15 @@
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/cmd/Makefile.in        13 Apr 2003 20:41:58 -0000      1.7
++++ src/cmd/Makefile.in        13 Apr 2003 21:14:12 -0000
+@@ -34,6 +34,18 @@
  
  CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
  
@@ -70,13 +70,16 @@ diff -u -r1.5 Makefile.in
 +$(PICTARGET)/%.o: %.c $(PICTARGET)
 +      $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
 +
++$(PICTARGET)/%64.o: %.c $(PICTARGET)
++      $(CC) -c $(PAM_CFLAGS) $(CFLAGS)${XCFLAGS64} $< -o $@
++
 +$(PICTARGET):
 +      mkdir -p $(PICTARGET)
 +
  all: ${TOP_LIBDIR}/libcmd.a ${TOP_INCDIR}/afs/cmd.h
  
  all64: all ${TOP_LIBDIR}/libcmd64.a
-@@ -42,10 +51,6 @@
+@@ -42,10 +54,6 @@
        $(RM) -f cmd.h cmd_errors.c
        ${COMPILE_ET} cmd_errors -h cmd
  
@@ -87,7 +90,7 @@ diff -u -r1.5 Makefile.in
  cmd_errors64.o: cmd_errors.c
        ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS64} -c -o cmd_errors64.o cmd_errors.c
  
-@@ -53,12 +58,12 @@
+@@ -53,12 +61,12 @@
        ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS64} -c -o cmd64.o cmd.c
  
  
@@ -102,7 +105,7 @@ diff -u -r1.5 Makefile.in
        -$(RM) -f $@
        $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
        $(RANLIB) $@
-@@ -89,7 +94,7 @@
+@@ -89,7 +97,7 @@
        (cd test; $(MAKE) )
  
  clean:
@@ -114,10 +117,10 @@ diff -u -r1.5 Makefile.in
 Index: src/comerr/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/comerr/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/comerr/Makefile.in     13 Apr 2003 18:56:25 -0000      1.5
-+++ src/comerr/Makefile.in     13 Apr 2003 19:56:31 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/comerr/Makefile.in     13 Apr 2003 20:41:59 -0000      1.7
++++ src/comerr/Makefile.in     13 Apr 2003 21:14:12 -0000
 @@ -45,7 +45,18 @@
        ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
        esac
@@ -150,10 +153,10 @@ diff -u -r1.5 Makefile.in
 Index: src/des/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/des/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/des/Makefile.in        13 Apr 2003 18:56:25 -0000      1.5
-+++ src/des/Makefile.in        13 Apr 2003 19:56:33 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/des/Makefile.in        13 Apr 2003 20:41:59 -0000      1.7
++++ src/des/Makefile.in        13 Apr 2003 21:14:12 -0000
 @@ -73,7 +73,16 @@
  .c.o:
        ${CC} -c -I. -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS} $<
@@ -184,10 +187,10 @@ diff -u -r1.5 Makefile.in
 Index: src/kauth/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/kauth/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/kauth/Makefile.in      13 Apr 2003 18:56:25 -0000      1.5
-+++ src/kauth/Makefile.in      13 Apr 2003 19:56:35 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/kauth/Makefile.in      13 Apr 2003 20:41:59 -0000      1.7
++++ src/kauth/Makefile.in      13 Apr 2003 21:14:14 -0000
 @@ -79,13 +79,22 @@
  
  noversion: install
@@ -216,10 +219,10 @@ diff -u -r1.5 Makefile.in
 Index: src/lwp/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/lwp/Makefile.in,v
-retrieving revision 1.6
-diff -u -r1.6 Makefile.in
---- src/lwp/Makefile.in        13 Apr 2003 19:32:23 -0000      1.6
-+++ src/lwp/Makefile.in        13 Apr 2003 19:56:39 -0000
+retrieving revision 1.8
+diff -u -r1.8 Makefile.in
+--- src/lwp/Makefile.in        13 Apr 2003 20:41:59 -0000      1.8
++++ src/lwp/Makefile.in        13 Apr 2003 21:14:19 -0000
 @@ -37,7 +37,15 @@
  LIBOBJS=lwp.o process.o lock.o iomgr.o timer.o fasttime.o preempt.o \
        waitkey.o threadname.o AFS_component_version_number.o
@@ -249,10 +252,10 @@ diff -u -r1.6 Makefile.in
 Index: src/pam/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/pam/Makefile.in,v
-retrieving revision 1.6
-diff -u -r1.6 Makefile.in
---- src/pam/Makefile.in        13 Apr 2003 19:32:23 -0000      1.6
-+++ src/pam/Makefile.in        13 Apr 2003 19:56:40 -0000
+retrieving revision 1.8
+diff -u -r1.8 Makefile.in
+--- src/pam/Makefile.in        13 Apr 2003 20:41:59 -0000      1.8
++++ src/pam/Makefile.in        13 Apr 2003 21:14:21 -0000
 @@ -49,22 +49,22 @@
  all: test_pam ${TOP_LIBDIR}/pam_afs.so.1 ${TOP_LIBDIR}/pam_afs.krb.so.1
  
@@ -294,10 +297,10 @@ diff -u -r1.6 Makefile.in
 Index: src/rx/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/rx/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/rx/Makefile.in 13 Apr 2003 18:56:25 -0000      1.5
-+++ src/rx/Makefile.in 13 Apr 2003 19:56:41 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/rx/Makefile.in 13 Apr 2003 20:41:59 -0000      1.7
++++ src/rx/Makefile.in 13 Apr 2003 21:14:22 -0000
 @@ -72,7 +72,15 @@
        xdr_afsuuid.c rx_trace.h xdr_int64.c
  UKSRCS = $(KSRCS) rx_conncache.c
@@ -327,10 +330,10 @@ diff -u -r1.5 Makefile.in
 Index: src/rxkad/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/rxkad/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/rxkad/Makefile.in      13 Apr 2003 18:56:25 -0000      1.5
-+++ src/rxkad/Makefile.in      13 Apr 2003 19:56:43 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/rxkad/Makefile.in      13 Apr 2003 20:41:59 -0000      1.7
++++ src/rxkad/Makefile.in      13 Apr 2003 21:14:24 -0000
 @@ -40,6 +40,15 @@
  OBJS=rxkad_client.o rxkad_server.o rxkad_common.o ticket.o rxkad_errs.o \
        fcrypt.o crypt_conn.o ticket.o ticket5.o crc.o
@@ -368,10 +371,10 @@ diff -u -r1.5 Makefile.in
 Index: src/sys/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/sys/Makefile.in,v
-retrieving revision 1.6
-diff -u -r1.6 Makefile.in
---- src/sys/Makefile.in        13 Apr 2003 19:32:24 -0000      1.6
-+++ src/sys/Makefile.in        13 Apr 2003 19:56:44 -0000
+retrieving revision 1.8
+diff -u -r1.8 Makefile.in
+--- src/sys/Makefile.in        13 Apr 2003 20:41:59 -0000      1.8
++++ src/sys/Makefile.in        13 Apr 2003 21:14:26 -0000
 @@ -36,12 +36,21 @@
  LIBS=libsys.a ${TOP_LIBDIR}/librx.a libsys.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a ${XLIBS}
  UKSRCS=afsl.exp
@@ -407,10 +410,10 @@ diff -u -r1.6 Makefile.in
 Index: src/util/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/util/Makefile.in,v
-retrieving revision 1.6
-diff -u -r1.6 Makefile.in
---- src/util/Makefile.in       13 Apr 2003 19:32:24 -0000      1.6
-+++ src/util/Makefile.in       13 Apr 2003 19:56:47 -0000
+retrieving revision 1.8
+diff -u -r1.8 Makefile.in
+--- src/util/Makefile.in       13 Apr 2003 20:41:59 -0000      1.8
++++ src/util/Makefile.in       13 Apr 2003 21:14:27 -0000
 @@ -45,6 +45,15 @@
         dirpath.o fileutil.o netutils.o flipbase64.o \
         afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
@@ -448,10 +451,10 @@ diff -u -r1.6 Makefile.in
 Index: src/venus/Makefile.in
 ===================================================================
 RCS file: /afs/sipb/project/openafs/debian/cvs/openafs/src/venus/Makefile.in,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile.in
---- src/venus/Makefile.in      13 Apr 2003 18:56:26 -0000      1.5
-+++ src/venus/Makefile.in      13 Apr 2003 19:56:47 -0000
+retrieving revision 1.7
+diff -u -r1.7 Makefile.in
+--- src/venus/Makefile.in      13 Apr 2003 20:41:59 -0000      1.7
++++ src/venus/Makefile.in      13 Apr 2003 21:14:29 -0000
 @@ -288,7 +288,7 @@
  #
  
index aeebffc29b94a8aa5d25872541075899141b5d47..aebbbdbe54728270920c048ded09159a6f660ac1 100644 (file)
@@ -65,9 +65,11 @@ libaudit.a: audit.o AFS_component_version_number.o
 
 audit.o: audit.c audit.h 
        ${CC} ${CFLAGS} -c audit.c
+       -mkdir -p ../pic/audit
+       ${CC} ${CFLAGS} -c audit.c -fPIC -o ../pic/audit/audit.o
 
 clean:
-       $(RM) -f *.a *.o core AFS_component_version_number.c
+       $(RM) -f *.a *.o core AFS_component_version_number.c $(PICTARGET)/*.o ../pic/audit/audit.o
 
 include ../config/Makefile.version
 ${DESTDIR}${libdir}/afs/libaudit.a: libaudit.a
index 60f8aeb238c3e0494ae222ae489be75caacff1bd..a48c04a5d92810a4a787cce5649911313061f387 100644 (file)
@@ -45,7 +45,15 @@ KSRCS=auth.h
 UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
        ktc.c authcon.c ktc_errors.c
 
-all: kinstall ukinstall ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a ${TOP_INCDIR}/afs/keys.h ${TOP_INCDIR}/afs/cellconfig.h ${TOP_INCDIR}/afs/auth.h copyauth setkey
+PICTARGET =../pic/auth
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+all: kinstall ukinstall ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a ${TOP_INCDIR}/afs/keys.h ${TOP_INCDIR}/afs/cellconfig.h ${TOP_INCDIR}/afs/auth.h copyauth setkey $(PICOBJS)
 
 cellconfig.o: cellconfig.c ${INCLS}
 ktc.o: ktc.c ${INCLS} ${TOP_INCDIR}/afs/vice.h
@@ -155,7 +163,7 @@ test:
 
 clean:
        $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core\
-       AFS_component_version_number.c
+       AFS_component_version_number.c $(PICTARGET)/*.o
 
 include ../config/Makefile.version
 ${DESTDIR}${libdir}/afs/libauth.a: libauth.a
index f564e1ec9789716915477193abba29505a4af79b..4ba3c1539e1772b7e9d7aaacaedaf8e0d7e92c58 100644 (file)
@@ -34,6 +34,18 @@ LIB64OBJS=cmd_errors64.o cmd64.o
 
 CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
 
+PICTARGET =../pic/cmd
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(LIBOBJS))
+PIC64OBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(LIB64OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET)/%64.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS)${XCFLAGS64} $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
 all: ${TOP_LIBDIR}/libcmd.a ${TOP_INCDIR}/afs/cmd.h
 
 all64: all ${TOP_LIBDIR}/libcmd64.a
@@ -42,10 +54,6 @@ cmd.h cmd_errors.c: cmd_errors.et cmd.p.h
        $(RM) -f cmd.h cmd_errors.c
        ${COMPILE_ET} cmd_errors -h cmd
 
-cmd_errors.o: cmd_errors.c
-
-cmd.o: cmd.c cmd.h
-
 cmd_errors64.o: cmd_errors.c
        ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS64} -c -o cmd_errors64.o cmd_errors.c
 
@@ -53,12 +61,12 @@ cmd64.o: cmd.c cmd.h
        ${CC} ${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS64} -c -o cmd64.o cmd.c
 
 
-libcmd64.a: ${LIB64OBJS} AFS_component_version_number64.o
+libcmd64.a: ${LIB64OBJS} AFS_component_version_number64.o $(PIC64OBJS)
        -$(RM) -f $@
        $(AR) crv $@ ${LIB64OBJS} AFS_component_version_number64.o
        $(RANLIB) $@
 
-libcmd.a: ${LIBOBJS} AFS_component_version_number.o
+libcmd.a: ${LIBOBJS} AFS_component_version_number.o $(PICOBJS)
        -$(RM) -f $@
        $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
        $(RANLIB) $@
@@ -89,7 +97,7 @@ test tests:
        (cd test; $(MAKE) )
 
 clean:
-       $(RM) -f  *.a *.o ctest dtest cmd.h cmd_errors.c core AFS_component_version_number.c
+       $(RM) -f  *.a *.o ctest dtest cmd.h cmd_errors.c core AFS_component_version_number.c $(PICTARGET)/*.o
 
 include ../config/Makefile.version
 ${DESTDIR}${libdir}/afs/libcmd.a: libcmd.a
index a7974b0bb3377dfe6c9350f8c802372bd86c4982..ab21fba4f67eaca946480f2580d9f889c851b19a 100644 (file)
@@ -45,7 +45,18 @@ compile_et:  compile_et.o error_table.o
        ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
        esac
 
-libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
+OBJS = error_msg.o et_name.o com_err.o
+
+PICTARGET =../pic/comerr
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+
+libcom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o $(PICOBJS)
        $(RM) -f $@
        $(AR) crv $@ error_msg.o et_name.o com_err.o AFS_component_version_number.o
        $(RANLIB) $@
@@ -108,7 +119,7 @@ clean:
                *.cp *.fn *.ky *.log *.pg *.tp *.vr *.o libcom_err.a \
                com_err.o compile_et et.ar TAGS y.tab.c lex.yy.c error_table.c \
                et_lex.lex.c test1.h test1.c test2.h test2.c \
-               eddep makedep core AFS_component_version_number.c
+               eddep makedep core AFS_component_version_number.c $(PICTARGET)/*.o
 
 test:
        cd test; $(MAKE)
index 3887801501e5e56732edbc962835114ceaba32ed..b72c3620d09fedc8af3f248f6084d05815765c9c 100644 (file)
@@ -73,7 +73,16 @@ all: ukinstall ${TOP_LIBDIR}/libdes.a ${TOP_INCDIR}/des.h ${TOP_INCDIR}/des_conf
 .c.o:
        ${CC} -c -I. -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS} $<
 
-libdes.a: ${OBJS} AFS_component_version_number.o
+
+PICTARGET =../pic/des
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -I. -I${TOP_INCDIR} -I${TOP_SRCDIR}/config ${XCFLAGS}  -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+libdes.a: ${OBJS} AFS_component_version_number.o $(PICOBJS)
        $(RM) -f libdes.a
        $(AR) crv libdes.a ${OBJS} AFS_component_version_number.o
        $(RANLIB) libdes.a
@@ -212,7 +221,7 @@ clean:
        $(RM) -f *.a *.s *.o *.b core *~ *.com *.ld
        $(RM) -f make_fp make_ip make_keyperm make_odd make_p \
                make_p_table make_s_table key_perm.h p_table.h \
-               s_table.h odd.h p.c s.c fp.c ip.c AFS_component_version_number.c
+               s_table.h odd.h p.c s.c fp.c ip.c AFS_component_version_number.c $(PICTARGET)/*.o
        cd test; $(MAKE) clean
 
 include ../config/Makefile.version
index 59360c1dbc04ca548f5ac111aa6142d27c649738..4d8db91659c35ba7d61c9942719c768c91ce40a2 100644 (file)
@@ -79,13 +79,22 @@ include ../config/Makefile.version
 
 noversion: install
 
-all: ukinstall kaserver kas kpwvalid klog klog.krb knfs kpasswd ${TOP_LIBDIR}/libkauth.a ${TOP_LIBDIR}/libkauth.krb.a rebuild kdb ${TOP_INCDIR}/afs/kautils.h ${TOP_INCDIR}/afs/kauth.h ${TOP_INCDIR}/afs/kaport.h
+
+PICTARGET =../pic/kauth
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+all: ukinstall kaserver kas kpwvalid klog klog.krb knfs kpasswd ${TOP_LIBDIR}/libkauth.a ${TOP_LIBDIR}/libkauth.krb.a rebuild kdb ${TOP_INCDIR}/afs/kautils.h ${TOP_INCDIR}/afs/kauth.h ${TOP_INCDIR}/afs/kaport.h $(PICOBJS)
 
 test tests: all
        cd test; $(MAKE)
 
 clean:
-       $(RM) -f *.o kaserver kas klog multiklog kpasswd klogin rebuild kauth.cs.c kauth.ss.c kauth.xdr.c kauth.h kautils.h kaerrors.c *.a core kpwvalid AFS_component_version_number.c klog.krb knfs klogin.krb kdb Kkauth.xdr.c Kkauth.h Kkauth.cs.c
+       $(RM) -f *.o kaserver kas klog multiklog kpasswd klogin rebuild kauth.cs.c kauth.ss.c kauth.xdr.c kauth.h kautils.h kaerrors.c *.a core kpwvalid AFS_component_version_number.c klog.krb knfs klogin.krb kdb Kkauth.xdr.c Kkauth.h Kkauth.cs.c $(PICTARGET)/*.o
 
 kaserver: kautils.o kalocalcell.o kadatabase.o kaprocs.o kalog.o kauth.ss.o kauth.xdr.o kaserver.o kaaux.o krb_udp.o kaauxdb.o $(LIBS) 
        ${CC} ${LDFLAGS} -o kaserver kaserver.o kautils.o kalocalcell.o kadatabase.o krb_udp.o kaprocs.o kalog.o kauth.ss.o kauth.xdr.o kaaux.o kaauxdb.o $(LIBS) ${XLIBS} ${TOP_LIBDIR}/libaudit.a
index f1779c577f53e166124dd48b7cdde3ca581f6c46..75864ba14c2c557ade2aff1999eef6336343f951 100644 (file)
@@ -37,7 +37,15 @@ CFLAGS=${OPTIMIZE} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
 LIBOBJS=lwp.o process.o lock.o iomgr.o timer.o fasttime.o preempt.o \
        waitkey.o threadname.o AFS_component_version_number.o
 
-all: ${TOP_LIBDIR}/liblwp.a ${TOP_INCDIR}/lock.h ${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/preempt.h ${TOP_INCDIR}/timer.h
+PICTARGET =../pic/lwp
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(LIBOBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+all: ${TOP_LIBDIR}/liblwp.a ${TOP_INCDIR}/lock.h ${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/preempt.h ${TOP_INCDIR}/timer.h $(PICOBJS)
 
 #
 # Build rules
@@ -143,7 +151,7 @@ ${DEST}/include/timer.h: timer.h
 # Misc. targets
 #
 clean:
-       $(RM) -f *.o *.a core AFS_component_version_number.c
+       $(RM) -f *.o *.a core AFS_component_version_number.c $(PICTARGET)/*.o
 
 include ../config/Makefile.version
 ${DESTDIR}${libdir}/liblwp.a: liblwp.a
index 6f932735c76a8f7636f0990a0df1aafc677f7882..70d1d3b7f3392f63731b178fb033482e2cb344f2 100644 (file)
@@ -49,22 +49,22 @@ CFLAGS =  ${DEBUG} ${INCLUDES} ${PAM_CFLAGS}
 all: test_pam ${TOP_LIBDIR}/pam_afs.so.1 ${TOP_LIBDIR}/pam_afs.krb.so.1
 
 afs_setcred.o: afs_setcred.c afs_pam_msg.h afs_message.h afs_util.h
-       ${CC} ${CFLAGS} -c afs_setcred.c -o afs_setcred.o
+       ${CC} ${CFLAGS} $(PAM_CFLAGS) -c afs_setcred.c -o afs_setcred.o
 
 afs_setcred_krb.o: afs_setcred.c afs_pam_msg.h afs_message.h afs_util.h
-       ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c afs_setcred.c -o afs_setcred_krb.o
+       ${CC} ${CFLAGS} $(PAM_CFLAGS)  -DAFS_KERBEROS_ENV -c afs_setcred.c -o afs_setcred_krb.o
 
 afs_auth.o: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
-       ${CC} ${CFLAGS}  -c afs_auth.c -o afs_auth.o
+       ${CC} ${CFLAGS}  $(PAM_CFLAGS)  -c afs_auth.c -o afs_auth.o
 
 afs_auth_krb.o: afs_auth.c afs_pam_msg.h afs_message.h afs_util.h
-       ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV  -c afs_auth.c -o afs_auth_krb.o
+       ${CC} ${CFLAGS} $(PAM_CFLAGS)  -DAFS_KERBEROS_ENV  -c afs_auth.c -o afs_auth_krb.o
 
 afs_util.o: afs_util.c afs_util.h
-       ${CC} ${CFLAGS} -c afs_util.c -o afs_util.o
+       ${CC} ${CFLAGS} $(PAM_CFLAGS)  -c afs_util.c -o afs_util.o
 
 afs_util_krb.o: afs_util.c afs_util.h
-       ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c afs_util.c -o afs_util_krb.o
+       ${CC} ${CFLAGS} $(PAM_CFLAGS)  -DAFS_KERBEROS_ENV -c afs_util.c -o afs_util_krb.o
 
 pam_afs.so.1: $(SHOBJS) afs_setcred.o afs_auth.o afs_util.o
        set -x; \
@@ -76,7 +76,7 @@ pam_afs.so.1: $(SHOBJS) afs_setcred.o afs_auth.o afs_util.o
                $(LD) $(LDFLAGS) -M mapfile -o $@ afs_setcred.o afs_auth.o afs_util.o\
                        $(SHOBJS) $(LIBS) ;; \
        *linux*) \
-               $(CC) $(LDFLAGS) -o $@ afs_setcred.o afs_auth.o afs_util.o $(SHOBJS) $(LIBS) ;;\
+               $(CC) $(LDFLAGS) $(PAM_CFLAGS) -o $@ afs_setcred.o afs_auth.o afs_util.o $(SHOBJS)  `find ../pic/ -name "*.o" | grep -v AFS_compo`  -lpam;;\
        *fbsd*) \
                $(CC) $(LDFLAGS) -o $@ afs_setcred.o afs_auth.o afs_util.o $(SHOBJS) $(LIBS) ;;\
        * ) \
index dce3aeb16182daafea42388b92b8d854218c7a20..fba2b248c039aff6dce963d13b74481c488995be 100644 (file)
@@ -72,7 +72,15 @@ KSRCS = rx.c rx.h rx_clock.c rx_clock.h rx_event.c rx_event.h \
        xdr_afsuuid.c rx_trace.h xdr_int64.c
 UKSRCS = $(KSRCS) rx_conncache.c
 
-all: includes kinstall ukinstall ${TOP_LIBDIR}/librx.a
+PICTARGET =../pic/rx
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+all: includes kinstall ukinstall ${TOP_LIBDIR}/librx.a $(PICOBJS)
 
 RX_component_version_number.c: AFS_component_version_number.c
        sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
@@ -222,7 +230,7 @@ ${DESTDIR}/include/rx/rx_xmit_nt.h: rx_xmit_nt.h ${TOP_INCDIR}/rx
 # Misc. targets
 #
 clean:
-       $(RM) -f *.o *.a core *_component_version_number.c
+       $(RM) -f *.o *.a core *_component_version_number.c $(PICTARGET)/*.o
 
 include ../config/Makefile.version
 
index 543e4adc7700d699892d72ced5f53a849effcfa6..043bf3f784c4df3a274e16b0cefee4ad23139869 100644 (file)
@@ -40,6 +40,15 @@ INCLS=${TOP_INCDIR}/rx/rx.h ${TOP_INCDIR}/rx/xdr.h \
 OBJS=rxkad_client.o rxkad_server.o rxkad_common.o ticket.o rxkad_errs.o \
        fcrypt.o crypt_conn.o ticket.o ticket5.o crc.o
 
+
+PICTARGET =../pic/rxkad
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
 fc_test_OBJS=fc_test.o
 
 fc_test_LIBS=\
@@ -163,7 +172,7 @@ ${DEST}/include/rx/rxkad.h: rxkad.h
 # Build targets
 #
 
-librxkad.a: ${OBJS} AFS_component_version_number.o
+librxkad.a: ${OBJS} AFS_component_version_number.o $(PICOBJS)
        -$(RM) -f $@
        $(AR) crv $@ ${OBJS} AFS_component_version_number.o
        $(RANLIB) $@
@@ -209,7 +218,7 @@ clean:
        $(RM) -f *.o *.a tcrypt core rxkad_errs.c rxkad.h \
                AFS_component_version_number.c \
                crypt_conn.c fcrypt.c fcrypt.h sboxes.h \
-               fc_test
+               fc_test $(PICTARGET)/*.o
 
 test:
        cd test; $(MAKE)
index 4082ae84585e7f7398185c9432c32421c46bd114..bba010ad3b4d72e1cac54e3efa72bb20c39ddd96 100644 (file)
@@ -36,12 +36,21 @@ SFLAGS=-P -I${TOP_INCDIR}
 LIBS=libsys.a ${TOP_LIBDIR}/librx.a libsys.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a ${XLIBS}
 UKSRCS=afsl.exp
 
+PICTARGET =../pic/sys
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS))
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
+
 OBJECTS= afssyscalls.o syscall.o
 RMTOBJS=rmtsysnet.o rmtsysc.o rmtsys.cs.o rmtsys.xdr.o rmtsys.ss.o rmtsyss.o 
 
 include ../config/Makefile.version
 
-all: ${TOP_LIBDIR}/libsys.a rmtsysd ${TOP_INCDIR}/afs/afssyscalls.h pagsh pagsh.krb kinstall ukinstall
+all: ${TOP_LIBDIR}/libsys.a rmtsysd ${TOP_INCDIR}/afs/afssyscalls.h pagsh pagsh.krb kinstall ukinstall $(PICOBJS)
        case "${SYS_NAME}" in \
        rs_aix*)                        \
                ${INSTALL} afs.exp ${TOP_LIBDIR};;      \
@@ -206,7 +215,7 @@ xfsinode: xfsinode.c  AFS_component_version_number.c
 clean:
        $(RM) -f *.o libsys.a xfsinode iinc idec icreate iopen istat core \
        rmtsysc rmtsyss *.o rmtsys.ss.c rmtsys.cs.c rmtsys.xdr.c rmtsys.h \
-       rmtsysd AFS_component_version_number.c pagsh pagsh.krb
+       rmtsysd AFS_component_version_number.c pagsh pagsh.krb $(PICTARGET)/*.o
 ${DEST}/lib/afs/libsys.a: libsys.a
        ${INSTALL} $? $@
 
index 6182bc21bdf72f41681c423294a523aa5de4e110..0ccd05672e4ac4ca4230c01813bef853c5ba8951 100644 (file)
@@ -45,6 +45,15 @@ objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
         dirpath.o fileutil.o netutils.o flipbase64.o \
         afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
 
+
+PICTARGET =../pic/util
+PICOBJS = $(patsubst %.o,$(PICTARGET)/%.o,$(OBJS)) 
+$(PICTARGET)/%.o: %.c $(PICTARGET)
+       $(CC) -c $(PAM_CFLAGS) $(CFLAGS) $< -o $@
+
+$(PICTARGET):
+       mkdir -p $(PICTARGET)
+
 all: ukinstall kinstall \
        ${TOP_INCDIR}/afs/dirpath.h \
        ${TOP_INCDIR}/afs/pthread_nosigs.h \
@@ -81,7 +90,7 @@ dirpath.h: dirpath.hin Makefile
                dirpath.hin >dirpath.h.tmp && \
                mv dirpath.h.tmp dirpath.h )
 
-util.a: ${objects} AFS_component_version_number.o
+util.a: ${objects} AFS_component_version_number.o $(PICOBJS)
        $(RM) -f util.a
        $(AR) crv util.a ${objects} AFS_component_version_number.o
        $(RANLIB) util.a
@@ -445,7 +454,7 @@ ${UKDIR}/afs_lhash.h: afs_lhash.h
 
 clean:
        $(RM) -f ${objects} sys dirpath.h
-       $(RM) -f util.a *.o core AFS_component_version_number.c
+       $(RM) -f util.a *.o core AFS_component_version_number.c $(PICTARGET)/*.o
 
 test:
        cd test; $(MAKE)
index 60e1509d78bc6f4a5d9b60c85e108277b27ea2b4..1e82c041011b2c8d241c255a3713f18c1c763f39 100644 (file)
@@ -288,7 +288,7 @@ install: \
 #
 
 clean:
-       $(RM) -f *.o *.a up fs kdump-* kdump kdump64 core cmdebug AFS_component_version_number.c fstrace gcpags
+       $(RM) -f *.o *.a up fs kdump-* kdump kdump64 core cmdebug AFS_component_version_number.c fstrace gcpags livesys
 
 test:
        cd test; $(MAKE)