Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Krush[LM] on January 15, 2005, 03:03 AM

Title: Makefile
Post by: Krush[LM] on January 15, 2005, 03:03 AM
Ok this might sound dumb but how do I compile source using a makefile with .net ?
Title: Re: Makefile
Post by: Kp on January 15, 2005, 01:20 PM
Perhaps you should explain a bit more.  Makefiles describe how to build something natively, so there's really no need to use any network (or Microsoft's stupidly named .NET code) to build it.  Just run make (or gmake if you want to be certain you get a GNU form, which I highly recommend -- BSD makes tend to be somewhat braindamaged in my experience).
Title: Re: Makefile
Post by: Krush[LM] on January 15, 2005, 04:10 PM
Quote from: Kp on January 15, 2005, 01:20 PM
Perhaps you should explain a bit more.  Makefiles describe how to build something natively, so there's really no need to use any network (or Microsoft's stupidly named .NET code) to build it.  Just run make (or gmake if you want to be certain you get a GNU form, which I highly recommend -- BSD makes tend to be somewhat braindamaged in my experience).

Well at school I can do make from the command line but I think i didn't install something at home cause make is unknown
Title: Re: Makefile
Post by: MyndFyre on January 15, 2005, 04:42 PM
I do not believe that VS .NET supports makefiles, with C++ or any of the native .NET languages.
Title: Re: Makefile
Post by: Kp on January 15, 2005, 05:08 PM
Quote from: Krush[LM] on January 15, 2005, 04:10 PMWell at school I can do make from the command line but I think i didn't install something at home cause make is unknown

I'm going to assume that you're using Windows at home, since you mentioned ".net".  If so, you need to install make -- Windows doesn't come with one natively (primarily because make is useful).  Check out http://www.mingw.org/ for a Win32 port of GNU make.
Title: Re: Makefile
Post by: Zakath on January 16, 2005, 02:33 AM
VC++ does have command line tools that can be used in a similar fashion to a makefile by executing them from a batch file...
Title: Re: Makefile
Post by: Krush[LM] on January 17, 2005, 07:48 PM
Quote from: Kp on January 15, 2005, 05:08 PM
Quote from: Krush[LM] on January 15, 2005, 04:10 PMWell at school I can do make from the command line but I think i didn't install something at home cause make is unknown

I'm going to assume that you're using Windows at home, since you mentioned ".net".  If so, you need to install make -- Windows doesn't come with one natively (primarily because make is useful).  Check out http://www.mingw.org/ for a Win32 port of GNU make.

i installed that but i can't find where i have to do something to get make to work