tsm: Make explicit rules for stem-changing targets
authorAndrew Deason <adeason@sinenomine.net>
Thu, 4 Nov 2010 16:37:31 +0000 (11:37 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 4 Nov 2010 17:38:19 +0000 (10:38 -0700)
If the stem changes for generating a .o from a .c file,
implicit/suffix rules will not apply. That is, if we specify the
dependencies for 'bar.o' in a Makefile as so:

bar.o: foo.c

This will not match an implicit .c.o rule, since the filename stem
changes. We must add an explicit AFS_CCRULE invocation to make the
rule do anything.

This fixes this problem for the src/tsm41 directory. It may exist
elsewhere, but it's difficult to find unless the build breaks.

Change-Id: I090c074beec120201f334b8bc613170cd4345dde
Reviewed-on: http://gerrit.openafs.org/3261
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/tsm41/Makefile.in

index bb85c60..c79f551 100644 (file)
@@ -90,8 +90,10 @@ aix_aklog.o: ${srcdir}/aix_aklog.c
 
 CFLAGS_aix_ktc_krb.o = -DAFS_KERBEROS_ENV
 aix_ktc_krb.o: ${srcdir}/aix_ktc.c
+       $(AFS_CCRULE) ${srcdir}/aix_ktc.c
 
 aix_ktc_null.o: ${srcdir}/aix_ktc.c
+       $(AFS_CCRULE) ${srcdir}/aix_ktc.c
 
 aix_auth.o:
        @set -e; set -x; case "$(SYS_NAME)" in \
@@ -107,6 +109,7 @@ aix_auth.o:
 
 # aix41_ident.c is a null source file for rs_aix5*
 aix_ident.o: ${srcdir}/aix41_ident.c
+       $(AFS_CCRULE) ${srcdir}/aix41_ident.c
 
 dest: afs_dynamic_auth afs_dynamic_kerbauth @MAKE_KRB5@ aklog_dynamic_auth
        ${INSTALL} -d ${DEST}/root.client/usr/vice/etc