forked from LeenkxTeam/Kmake
CFLAGS
This commit is contained in:
@ -252,7 +252,7 @@ export class MakeExporter extends Exporter {
|
|||||||
this.p(name + '.o: ' + realfile);
|
this.p(name + '.o: ' + realfile);
|
||||||
|
|
||||||
let compiler = this.cppCompiler;
|
let compiler = this.cppCompiler;
|
||||||
let flags = '$(CPPFLAGS)';
|
let flags = '$(CFLAGS)';
|
||||||
if (file.endsWith('.c')) {
|
if (file.endsWith('.c')) {
|
||||||
compiler = this.cCompiler;
|
compiler = this.cCompiler;
|
||||||
flags = '$(CFLAGS)';
|
flags = '$(CFLAGS)';
|
||||||
@ -263,11 +263,11 @@ export class MakeExporter extends Exporter {
|
|||||||
}
|
}
|
||||||
else if (file.endsWith('.m') || file.endsWith('.m.h')) {
|
else if (file.endsWith('.m') || file.endsWith('.m.h')) {
|
||||||
compiler = this.cCompiler;
|
compiler = this.cCompiler;
|
||||||
flags = '$(CPPFLAGS)';
|
flags = '$(CFLAGS)';
|
||||||
}
|
}
|
||||||
else if (file.endsWith('.mm')) {
|
else if (file.endsWith('.mm')) {
|
||||||
compiler = this.cppCompiler;
|
compiler = this.cppCompiler;
|
||||||
flags = '$(CPPFLAGS)';
|
flags = '$(CFLAGS)';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.p('\t' + compiler + ' ' + optimization + ' $(INC) $(DEF) -MD ' + flags + ' -c ' + realfile + ' -o ' + name + '.o');
|
this.p('\t' + compiler + ' ' + optimization + ' $(INC) $(DEF) -MD ' + flags + ' -c ' + realfile + ' -o ' + name + '.o');
|
||||||
|
|||||||
Reference in New Issue
Block a user