From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWL5S-0006nH-Mw for qemu-devel@nongnu.org; Wed, 29 Jul 2009 22:09:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWL5N-0006ho-D3 for qemu-devel@nongnu.org; Wed, 29 Jul 2009 22:09:41 -0400 Received: from [199.232.76.173] (port=47291 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWL5N-0006hU-5Z for qemu-devel@nongnu.org; Wed, 29 Jul 2009 22:09:37 -0400 Received: from mx2.redhat.com ([66.187.237.31]:50764) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWL5M-00052N-JR for qemu-devel@nongnu.org; Wed, 29 Jul 2009 22:09:37 -0400 From: Juan Quintela Date: Thu, 30 Jul 2009 04:06:55 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 00/42] More Makefile/configure simplification List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Hi More cleanps coming: - CPPFLAGS is gone, long life to CFLAGS - Refactor common CFLAGS setup to ./configure - Use same CFLAGS for all configure tests - ARCH/OS_CFLAGS/LDFLAGS are gone, we add to CFLAGS as we find more options - new functions complie_prog() compile_object(), test case compilation is done with one function - LIBS: Start LIBS reorganization, common stuff moved to ./configure - libs_softmmu created for libraries that are only for softmmu - moved compilation tests out of the creation of configuration files, make things way easier. - Moved sparc_cpu setup to a single place - minor cleanups/refactors/.. here and there ToDo: - End LIBS movement to ./configure Question: We want to separate user-only and softmmu. We agreed here. But, do we want to separate softmmu and qemu-io/nbd/... LIBS? - Makefile.target still needs more intelligence moved to ./configure - Once previous two items are finished, start being able to comile/not compile drivers. Call for testers: if you use qemu on darwin/sparc solaris, it is a good idea that you test that I haven't break anything. If you are interested in testing/compiling prereleases, please email me. Later, Juan. Juan Quintela (42): strip binary is not used anywhere oss variable don't exist anymore Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet move cpu command line setting to the beggining move check_linker_flags sooner than starting of printing variables remove not needed rt variable move checks for bswap32/bswap_32 sooner than starting of printing variables move general CFLAGS/LDFLAGS definitions after last $cc run We want to add options at the beggining, not at the end of variables Remove OS_{CFLAGS,LDFLAGS} and ARCH_{LDFLAGS,CFLAGS} move EXTRA_CFLAGS/LDFLAGS to the very beginning create compile_object/compile_prog functions remove unused temporal files Add CURL_CFLAGS __sparc_*__ is defined through -D__sparc_*__ move mingw32 code after selection of OS This variables can't be set here refactor kqemu selection for both mingw32 move sparc_cpu arg parsing to the begining refactor sparc_cpu code to be in a single place refactor $cpu selection in various places reindent Operating System selection configure We use -lz for all binaries We want to pass LIB through configuration files now PTHREADLIBS was used for all binaries CLOCKLIBS was used for all binaries Move to configure CONFIG_SOLARIS libraries needed always Move to configure CONFIG_WIN32 libraries needed always We set -Werror through configure now Rename CPPFLAGS to CFLAGS split CFLAGS very long line move common CFLAGS to configure Refactor HELPER_CFLAGS move SDL_LIBS Win32 hack to configure Add libs_softmmu variable Add SDL_LIBS to libs_softmmu gcc generates the right dependency for this file move coreaudio libraries to coreaudio selection Move sound library selection to sound selection files are only compiled when CONFIG_ADLIB is defined Test if we need -lutil in ,/configure Fold CURSES_LIBS into libsoftmmu_libs Makefile | 23 +-- Makefile.hw | 4 +- Makefile.target | 110 ++------ configure | 687 ++++++++++++++++++++++---------------------- create_config | 6 - pc-bios/optionrom/Makefile | 6 +- rules.mak | 6 +- 7 files changed, 378 insertions(+), 464 deletions(-)