diff --git a/kmake/src/Exporters/MakeExporter.ts b/kmake/src/Exporters/MakeExporter.ts index 076e4f0c..91a060ed 100644 --- a/kmake/src/Exporters/MakeExporter.ts +++ b/kmake/src/Exporters/MakeExporter.ts @@ -252,7 +252,7 @@ export class MakeExporter extends Exporter { this.p(name + '.o: ' + realfile); let compiler = this.cppCompiler; - let flags = '$(CPFLAGS)'; + let flags = '$(CFLAGS)'; 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 = '$(CPFLAGS)'; + flags = '$(CFLAGS)'; } else if (file.endsWith('.mm')) { compiler = this.cppCompiler; - flags = '$(CPFLAGS)'; + flags = '$(CFLAGS)'; } this.p('\t' + compiler + ' ' + optimization + ' $(INC) $(DEF) -MD ' + flags + ' -c ' + realfile + ' -o ' + name + '.o');