[Allegropro-dev] Updates to CVS/new file release
Status: Pre-Alpha
Brought to you by:
korval2
From: Korval <Ko...@co...> - 2004-09-20 07:23:05
|
OK, I've got the PreMake system working (I think). I've built VC6 and .NET projects, though I've only tested that the VC6 one compiles. Also, I have a MingW makefile that, theoretically, should build the MingW version. However, I can't test it since I don't have a Cygwin environment (the makefile requires it), nor do I have even the slightest clue as to how to set one up. Additionally, the MingW project is missing some other things that were not done during the port that Ron tried. Specifically, the compiler-specific versions do not include each other's files; as such, the MingW port needs it's own compiler-specific files as specified on this page: http://allegropro.sourceforge.net/Conventions/allegropro_developers_conventi on.htm (note: this page has not been updated with the recent split of memplat.c into memcomp.c). Once those files are created, the makefile ought to work. If it doesn't, then there are likely a few other porting issues that need to be worked out, or that Premake sucks and we need to use something else. If you add new files, you will probably need to update the makefile and the project files. To do so, download Premake (on SourceForge) and run it with the appropriate command like switches on it (in the directory where Premake.lua is): Premake --target *1 --plat *2 --compiler *3 *1 is a standard Premake option. It refers to the type of project file that Premake should generate. 'vc6' will generate a Visual Studio 6.0 project, while 'gnu' will generate a makefile that can run in the standard POSIX environment (which is why you need Cygwin for MingW). *2 is the operating system. This switch only works with my Premake.lua. It can be "win32", "linux", or "macosx", though the latter two aren't really supported. *3 is the compiler. This may be "msvc" or "gcc". Note: the Premake.lua file isn't quite complete. It doesn't define the platform-specific defines yet. As such, you probably shouldn't rely on them until I update the projects. |