From de75d9d8aa490935ec65947fc6d82a19f936b119 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sun, 13 Jun 2010 01:51:30 -0400 Subject: [PATCH] buildtools target if you wish to cross compile, you want these things. arrange to be able to build just them Change-Id: I6bee40b61a16722c402832bba39d2e88dcabec25 Reviewed-on: http://gerrit.openafs.org/2145 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- Makefile.in | 6 ++++++ src/comerr/Makefile.in | 2 ++ src/config/Makefile.in | 7 +++++++ src/des/Makefile.in | 12 ++++++++++++ src/procmgmt/Makefile.in | 2 ++ src/rxgen/Makefile.in | 2 ++ src/util/Makefile.in | 3 +++ 7 files changed, 34 insertions(+) diff --git a/Makefile.in b/Makefile.in index afbf467a7d..c9bd0b1c49 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,6 +43,9 @@ only_libafs: force only_libafs_tree: force $(MAKE) build TARGET=libafs_tree +buildtools: force + $(MAKE) build TARGET=build_tools COMPILE_PART2B=buildtools + install: all install_dirs $(MAKE) build COMPILE_PART2B=install @@ -614,6 +617,9 @@ jafs: libjafs jafsadm: libjafsadm +build_tools: config des comerr rxgen + +${COMPILE_PART1} util ${COMPILE_PART2A} buildtools_clean + finale: project cmd comerr afsd butc tbutc tbudb @ENABLE_KERNEL_MODULE@ libuafs audit kauth log \ ptserver tptserver scout bu_utils ubik uss bozo @VFSCK@ volser tvolser tsalvaged \ venus update xstat afsmonitor rxdebug libafsrpc \ diff --git a/src/comerr/Makefile.in b/src/comerr/Makefile.in index 26b202c7ec..d663adeed0 100644 --- a/src/comerr/Makefile.in +++ b/src/comerr/Makefile.in @@ -13,6 +13,8 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ all: compile_et ${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/error_table.h ${TOP_INCDIR}/afs/mit-sipb-cr.h ${TOP_LIBDIR}/libcom_err.a +buildtools: compile_et + ${TOP_INCDIR}/afs/com_err.h: com_err.h ${INSTALL_DATA} $? $@ diff --git a/src/config/Makefile.in b/src/config/Makefile.in index bfb3295054..d6a805f8b2 100644 --- a/src/config/Makefile.in +++ b/src/config/Makefile.in @@ -26,6 +26,13 @@ all: config mkvers \ ${TOP_INCDIR}/afs/vioc.h \ ${TOP_INCDIR}/afs/debug.h +buildtools: \ + config \ + mkvers \ + ${TOP_INCDIR}/afs/param.h \ + ${TOP_INCDIR}/afs/afs_sysnames.h \ + ${TOP_INCDIR}/afs/stds.h + Makefile.version: Makefile.version-CML Makefile.version-NOCML $(RM) -f Makefile.version if [ -r @TOP_SRCDIR@/CML/state ] ; \ diff --git a/src/des/Makefile.in b/src/des/Makefile.in index 998ad64c29..ee85ab45c1 100644 --- a/src/des/Makefile.in +++ b/src/des/Makefile.in @@ -55,6 +55,18 @@ all: \ ${TOP_INCDIR}/mit-cpyright.h \ ${TOP_INCDIR}/des_odd.h +buildtools: \ + make_p \ + make_keyperm \ + make_s_table \ + make_p_table \ + make_ip \ + make_fp \ + make_odd \ + ${TOP_INCDIR}/des.h \ + ${TOP_INCDIR}/mit-cpyright.h \ + ${TOP_INCDIR}/des/stats.h + ${TOP_LIBDIR}/libdes.a: libdes.a ${INSTALL_DATA} $? $@ diff --git a/src/procmgmt/Makefile.in b/src/procmgmt/Makefile.in index 76617261b4..9482b34fe3 100644 --- a/src/procmgmt/Makefile.in +++ b/src/procmgmt/Makefile.in @@ -14,6 +14,8 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ all: ${TOP_LIBDIR}/libprocmgmt.a ${TOP_INCDIR}/afs/procmgmt.h +buildtools: ${TOP_INCDIR}/afs/procmgmt.h + ${TOP_LIBDIR}/libprocmgmt.a: libprocmgmt.a ${INSTALL_DATA} $? $@ diff --git a/src/rxgen/Makefile.in b/src/rxgen/Makefile.in index 9240f2fedc..9ed840cef5 100644 --- a/src/rxgen/Makefile.in +++ b/src/rxgen/Makefile.in @@ -19,6 +19,8 @@ OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \ all: rxgen ${TOP_INCDIR}/afs/rxgen_consts.h +buildtools: rxgen + ${TOP_INCDIR}/afs/rxgen_consts.h: rxgen_consts.h ${INSTALL_DATA} $? $@ diff --git a/src/util/Makefile.in b/src/util/Makefile.in index 3eda416b4a..6868bc7a6b 100644 --- a/src/util/Makefile.in +++ b/src/util/Makefile.in @@ -45,6 +45,9 @@ all: ${includes} \ ${TOP_LIBDIR}/libafsutil.a \ sys +buildtools: ${TOP_LIBDIR}/libafsutil.a ${TOP_INCDIR}/afs/afsutil.h +buildtools_clean: clean + depinstall: ${includes} ${TOP_INCDIR}/afs/dirpath.h: dirpath.h