From 45268d3812e359e15cb1b4dacbe86e985e5ba305 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 19 Feb 2007 20:09:16 +0000 Subject: 2007-02-19 Thomas Schwinge Add a `--enable-platform' option for future use. Allow building without any Linux code. * Makefile.am: Don't include `linux/Makefrag.am' in there... * Makefrag.am: ... but rather in here. * configfrag.ac (MACH_MACHINE_ROUTINES): AC_DEFINE_UNQUOTED based on then shell variable `mach_machine_routines'. (--disable-default-device-drivers): Don't define in there... * configure.ac: ... but rather in here. (--enable-platform): New option. (host_platform): New variable. (HOST_i386): Don't define there... * i386/configfrag.ac (HOST_ix86): ... but rather here, rename it and adapt all users. (PLATFORM_at): New conditional. (MACH_MACHINE_ROUTINES): Don't AC_DEFINE, but rather set a shell variable `mach_machine_routines'. * linux/Makefrag.am (noinst_LIBRARIES, gnumach_o_LDADD): Only enhance ``if CODE_linux'' or ``if device_driver_group_pcmcia''. * linux/configfrag.ac (AC_OPTION): Rename to `AC_OPTION_Linux_ix86_at' and rework a bit. Adapt all users. (AC_OPTION_nodef): Rename to `AC_OPTION_Linux_ix86_at_nodef' and rework a bit. Adapt all users. (CODE_linux): New conditional. * i386/Makefrag.am (LINKFLAGS_gnumach): Don't evaluate $(systype). * Makefile.am: Update the FSF's postal address. * doc/Makefrag.am: Likewise. * i386/linux/Makefrag.am: Likewise. * linux/Makefrag.am: Likewise. * tests/Makefrag.am: Likewise. * tests/configfrag.ac: Move to GPL. --- Makefrag.am | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Makefrag.am') diff --git a/Makefrag.am b/Makefrag.am index 9a898a6..de37ab3 100644 --- a/Makefrag.am +++ b/Makefrag.am @@ -1,6 +1,6 @@ # Main Makefile fragment for GNU Mach. -# Copyright 1997, 1999, 2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 1997, 1999, 2004, 2006, 2007 Free Software Foundation, Inc. # Permission to use, copy, modify and distribute this software and its # documentation is hereby granted, provided that both the copyright @@ -503,9 +503,21 @@ exec_msgidsdir = $(datadir)/msgids exec_msgids_DATA = gnumach.msgids # +# Specific code. +# + +# Linux device drivers and the glue code. +include linux/Makefrag.am + +# +# Platform specific parts. +# + +# # Architecture specific parts. # -if HOST_i386 +# ix86. +if HOST_ix86 include i386/Makefrag.am endif -- cgit v1.2.3