www.digitalmars.com         C & C++   DMDScript  

c++.command-line - makefile builder?

reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
Hi, yesterday I remember the DM C++ compiler and had a look at it. Great to
see that it's development is continued. Anyway, I want to try it on some
code I have downloaded from the web (MAD mp3 library). Most of these
packages use the autoconf stuff. I never had a look at it because IIRC it's
not well supported on Windows.

What's the best way to create a DM makefile? I haven't found a way to create
generic rule like:

.obj: ($file).c
    sc -s $file

or something like this. Any hint for me?
--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de
Dec 30 2001
parent reply "Walter" <walter digitalmars.com> writes:
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:a0n3rr$95u$1 digitaldaemon.com...
 Hi, yesterday I remember the DM C++ compiler and had a look at it. Great

 see that it's development is continued.

Glad to have you here!
 What's the best way to create a DM makefile? I haven't found a way to

 generic rule like:

 .obj: ($file).c
     sc -s $file

 or something like this. Any hint for me?

I use: .c.obj : sc -c $(CFLAGS) $*
Dec 31 2001
next sibling parent "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Walter" <walter digitalmars.com> schrieb im Newsbeitrag
news:a0p7pm$1h32$1 digitaldaemon.com...

 I use:

     .c.obj :
         sc -c $(CFLAGS) $*

Hi Walter, I knew there was something like this available (but I didn't found it in the docs) :-)). Thanks a lot for the tip. Robert
Dec 31 2001
prev sibling parent reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Walter" <walter digitalmars.com> schrieb im Newsbeitrag
news:a0p7pm$1h32$1 digitaldaemon.com...

 I use:

     .c.obj :
         sc -c $(CFLAGS) $*

Hi, ok and now all the .obj files should go into a .lib file. I tried the following but this didn't worked: .obj.lib: link mylib.lib /B /C +-$* Any idea how to such a rule the correct way? Robert
Jan 01 2002
parent "Walter" <walter digitalmars.com> writes:
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:a0sra9$h4v$1 digitaldaemon.com...
 "Walter" <walter digitalmars.com> schrieb im Newsbeitrag
 news:a0p7pm$1h32$1 digitaldaemon.com...
 I use:

     .c.obj :
         sc -c $(CFLAGS) $*

following but this didn't worked: .obj.lib: link mylib.lib /B /C +-$* Any idea how to such a rule the correct way? Robert

First, use lib instead of link <g>. Secondly, I've emailed you a makefile I use to build libraries. -Walter
Jan 01 2002