Update kmake/src/Exporters/MakeExporter.ts

This commit is contained in:
2026-07-21 03:28:44 +00:00
parent 23ede5a5cf
commit 4523770bfa

View File

@ -252,7 +252,7 @@ export class MakeExporter extends Exporter {
this.p(name + '.o: ' + realfile);
let compiler = this.cppCompiler;
let flags = '$(CPPFLAGS)';
let flags = '$(CPFLAGS)';
if (file.endsWith('.c')) {
compiler = this.cCompiler;
flags = '$(CFLAGS)';
@ -263,11 +263,11 @@ export class MakeExporter extends Exporter {
}
else if (file.endsWith('.m') || file.endsWith('.m.h')) {
compiler = this.cCompiler;
flags = '$(CPPFLAGS)';
flags = '$(CPFLAGS)';
}
else if (file.endsWith('.mm')) {
compiler = this.cppCompiler;
flags = '$(CPPFLAGS)';
flags = '$(CPFLAGS)';
}
this.p('\t' + compiler + ' ' + optimization + ' $(INC) $(DEF) -MD ' + flags + ' -c ' + realfile + ' -o ' + name + '.o');