X-Git-Url: http://nitlanguage.org diff --git a/src/c_tools.nit b/src/c_tools.nit index be9e649..07934dd 100644 --- a/src/c_tools.nit +++ b/src/c_tools.nit @@ -111,6 +111,10 @@ class ExternFile # The content of the rule in the make # Usually the one-line shell command after the tabulation fun makefile_rule_content: String is abstract + + fun compiles_to_o_file: Bool do return false + + fun add_to_jar: Bool do return false end # An extern C file to compile @@ -139,7 +143,9 @@ class ExternCFile redef fun makefile_rule_content do var ff = filename.basename("") var o = makefile_rule_name - return "$(CC) $(CFLAGS) -D NONITCNI {self.cflags} -c -o {o} {ff}" + return "$(CC) $(CFLAGS) {self.cflags} -c -o {o} {ff}" end + + redef fun compiles_to_o_file do return true end