\r
int __stdcall WinMain(IN HINSTANCE hInstance, IN HINSTANCE hPrevInstance, IN LPSTR lpCmdLine, IN int nShowCmd )\r
{\r
- // Skip if configure is already-existant.\r
- FILE * f = fopen("inspircd_config.h", "r");\r
- if(f)\r
- {\r
- fclose(f);\r
- return 0;\r
- }\r
-\r
AllocConsole();\r
\r
// pipe standard handles to this console\r
\r
// Write our spiffy new makefile :D\r
// I am such a lazy fucker :P\r
-#ifdef _DEBUG\r
FILE * f = fopen("..\\src\\commands.mak", "w");\r
-#else\r
- FILE * f = fopen("..\\src\\commands-release.mak", "w");\r
-#endif\r
\r
time_t t = time(NULL);\r
fprintf(f, "# Generated at %s\n", ctime(&t));\r
\r
// Write our spiffy new makefile :D\r
// I am such a lazy fucker :P\r
-#ifdef _DEBUG\r
FILE * f = fopen("..\\src\\modules\\modules.mak", "w");\r
-#else\r
- FILE * f = fopen("..\\src\\modules\\modules-release.mak", "w");\r
-#endif\r
\r
time_t t = time(NULL);\r
fprintf(f, "# Generated at %s\n", ctime(&t));\r