}
char* argv2 = argv[2] == NULL ? "" : argv[2];
if(strcmp(argv[1], "cflags") == 0) {
+#ifdef _MSC_VER
+#else
if(strcmp(argv2, "NetBSD") == 0) {
printf("-I/usr/pkg/include ");
}
+#endif
printf("\n");
} else if(strcmp(argv[1], "libs") == 0) {
+#ifdef _MSC_VER
+#else
if(strcmp(argv2, "NetBSD") == 0) {
printf("-L/usr/pkg/lib -Wl,-R/usr/pkg/lib ");
}
if(strcmp(argv2, "NetBSD") != 0 && strcmp(argv2, "Windows") != 0) {
printf("-ldl ");
}
+#endif
#endif
printf("\n");
} else if(strcmp(argv[1], "reqobjs") == 0){
fprintf(stderr, "Run me from the WinBuild directory\n");
return 1;
}
- system("cl /Fe:..\\Tool\\configgen.exe ..\\Tool\\configgen.c");
+ system("cl /nologo /Fe:..\\Tool\\configgen.exe ..\\Tool\\configgen.c");
FILE* f = fopen("..\\config.h", "r");
if(f != NULL){
printf("config.h already exists, remove it to generate it again.\n");
}else{
system("..\\Tool\\configgen.exe ..\\config.h");
}
- system("cl /Fe:..\\Tool\\config.exe ..\\Tool\\config.c");
+ system("cl /nologo /Fe:..\\Tool\\config.exe ..\\Tool\\config.c");
system("..\\Tool\\config.exe reqobjs Windows >buildobjs");
system("..\\Tool\\config.exe objs Windows >>buildobjs");
f = fopen("buildobjs", "r");
objs = dynstrcat3(objstmp, " ", buf);
char* cfile = dynstrdup(buf);
cfile[strlen(cfile) - 1] = 'c';
- char* argtmp1 = dynstrcat("cl /c /D _AMD64_ /Fo:", buf);
+ char* argtmp1 = dynstrcat("cl /nologo /c /D _AMD64_ /Fo:", buf);
char* argtmp2 = dynstrcat(argtmp1, " ");
char* arg = dynstrcat(argtmp2, cfile);
system(arg);
}
free(buf);
- char* cmd = dynstrcat("cl /Fe:serenade.exe ", objs);
+ char* cmd = dynstrcat("cl /nologo /Fe:serenade.exe ", objs);
system(cmd);
free(cmd);
chdir("WinBuild");
}
fclose(f);
-}
\ No newline at end of file
+}