This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin gcc and g90 compilers...


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to René Berber on 8/23/2005 4:48 PM:
> First, the line above should be written like:
> 
>    make -f gcc-mingw.mak "CXXFLAGS_COMMON=-mno-cygwin -I/usr/include/mingw"
> 
> A space between -f and the makefile name.

Actually, make, like any other program that uses getopt(), recognizes
non-optional arguments without the space (it's just that POSIX says that
portable applications should use the space):

$ echo 'all:
	echo hi
' > baz
$ make -fbaz
echo hi
hi
$

In other words, these four spellings are synonyms, although a script that
is portable to POSIX rules would only use the second:
make -ffoo
make -f foo
make --file foo
make --file=foo

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDDGTJ84KuGfSFAYARAoMEAKCKlWVAgWy3/H4egeR7+NgvaTBWiwCfZDW7
Aavdcw1ABNVRRqlUw7t99I4=
=auG7
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]