FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

LinkBack Thread Tools
Old 03-29-2010, 09:22 AM
Noel Torres
Default Bug#575792: gfortran: Suggestion for -M flag

Package: gfortran
Severity: wishlist

I use to need module dependency information. Since gfortran can not, actually, fetch it like C's gcc does with -M, I use the following Makefile rule:

Makefile.dep : *.F95
for j in *.F95 ; do for i in `cat $$j|grep " use "|awk '{print $$2}'`; do echo `basename $$j .F95`.o : $$i.mod ; done ; done > $@

It would be great to have this very simple code included in gfortran like the -M option, to be allowed to change the Makefile to something simpler:

for i in *.F95; do gfortran -MM "$${i}"; done > $@


-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100329092241.30296.30937.reportbug@nuevax.local" >http://lists.debian.org/20100329092241.30296.30937.reportbug@nuevax.local

Thread Tools

All times are GMT. The time now is 04:50 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org