WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] CFLAGS are for C compilers and other Unix traditions

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] CFLAGS are for C compilers and other Unix traditions
From: ramsdell@xxxxxxxxx (John D. Ramsdell)
Date: 20 May 2006 22:58:03 -0400
Delivery-date: Sat, 20 May 2006 19:58:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1FhcWV-0004n6-Dm@host-192-168-0-1-bcn-london>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
I recognize the vitality of youth, but please allow me to plug some
Unix traditions.  There is a long tradition on how to write
makefiles.  Many of these traditions are encoded in the default rules
that are part of GNU make.  You can see them with the command:

$ make -p

If you execute this command, you will note that the rule for
assembling .S files is:

COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c

Note that you don't give the assembler CFLAGS.  It's not a C
compiler.

The default rules use TARGET_MACH in a very well thought out way.
Please use TARGET_MACH in a manor consistent with GNU make's default
rules. 

Another long standing Unix tradition is that applications do not
depend on the path environment variable currently in effect.  Relying
on a path means that a user of an application gets screwy results if
they use a non-standard path.  More importantly, an application that
depends on paths does not allow one to install more than one version
of that application.

The Xen application xm fails respect this Unix tradition.  Multiple
installations of differing versions of xm will get very confused.

John

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel