Re: gcc -MM and Makefiles Zeavon at "Sep 17, 99 09:09:02 am"

From: Martijn Schoemaker (mschoe@osp.nl)
Date: 09/17/99


Hi,

Quick and dirty. Use the following script ;)

----
#!/bin/bash

gcc -MM *.c|while read obj cfile rest; do
        echo "$obj $cfile $rest"
        printf "\t\$(CC) -c \$(CFLAGS) $cfile\n"
done
----

Only problem is because there is no tty it will not
cut up your lines using the '\' character.

Greets,
Aragorn

Try: imagica.net 4000 or 119 and be amazed

--
---
.SIG SPACE FOR HIRE:
  Your sig could be here! Please contact the sender of this email.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST