Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 30, 2001 makefile builder? | ||||
---|---|---|---|---|
| ||||
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 Re: makefile builder? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | "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 Re: makefile builder? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "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 Re: makefile builder? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "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 Re: makefile builder? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | "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 |
Copyright © 1999-2021 by the D Language Foundation