openafs/Makefile-libafs.in
Russ Allbery f924010fbc Fix libafs_tree's cross-architecture support
The results of libafs_tree are supposed to build on any platform that
shares the same basic kernel code, but this had broken in two ways:
libafs_tree was including a pre-built afs/param.h, which needs to be
regenerated on different architectures, and the Linux kernel build
makefile was being pre-generated despite having some architecture-specific
options.

Copy over more of src/config and postpone generation of afs/param.h and
generation of libafs/Makefile to the libafs build.

Remove the substitution of AFS_SYSNAME from make_libafs_tree.pl; it was
unused and now definitely shouldn't be used since it will break the
architecture-independence of the resulting tree.

Change-Id: I2730d3745cc67cf5f3ae61cf4643842f87865a80
Reviewed-on: http://gerrit.openafs.org/2019
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2010-05-24 20:28:41 -07:00

26 lines
760 B
Makefile

# -*- makefile -*-
#
# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
#
# This software has been released under the terms of the IBM Public
# License. For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html
include src/config/Makefile.config
all:
cd src && cd config && $(MAKE)
src/config/config src/libafs/MakefileProto \
src/libafs/Makefile ${SYS_NAME}
cd src && cd libafs && $(MAKE)
clean:
cd src && cd config && $(MAKE) clean
cd src && cd libafs && $(MAKE) clean
distclean: clean
rm -f Makefile src/config/Makefile src/config/Makefile.config \
src/config/Makefile.version src/libafs/Makefile.common \
src/libafs/Makefile