Thread overview
makefile builder?
Dec 30, 2001
Robert M. Münch
Dec 31, 2001
Walter
Dec 31, 2001
Robert M. Münch
Jan 01, 2002
Robert M. Münch
Jan 01, 2002
Walter
December 30, 2001
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



December 31, 2001
"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
to
> 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
create
> generic rule like:
>
> .obj: ($file).c
>     sc -s $file
>
> or something like this. Any hint for me?

I use:

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



December 31, 2001
"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


January 01, 2002
"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


January 01, 2002
"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) $*
> 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

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