aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/autoinclude/general-rules.bld10
1 files changed, 4 insertions, 6 deletions
diff --git a/share/autoinclude/general-rules.bld b/share/autoinclude/general-rules.bld
index 94b06eb..0b8f6e3 100644
--- a/share/autoinclude/general-rules.bld
+++ b/share/autoinclude/general-rules.bld
@@ -33,28 +33,26 @@ function cppToObj()
33{ 33{
34 if OBJ_DIR == null then 34 if OBJ_DIR == null then
35 { 35 {
36 DIR = INPUT.dirName(); 36 return INPUT.regex("\\.cpp$", ".o");
37 } 37 }
38 else 38 else
39 { 39 {
40 DIR = OBJ_DIR; 40 return OBJ_DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".o");
41 } 41 }
42 42
43 return DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".o");
44} 43}
45 44
46function cToObj() 45function cToObj()
47{ 46{
48 if OBJ_DIR == null then 47 if OBJ_DIR == null then
49 { 48 {
50 DIR = INPUT.dirName(); 49 return INPUT.regex("\\.c$", ".o");
51 } 50 }
52 else 51 else
53 { 52 {
54 DIR = OBJ_DIR; 53 return OBJ_DIR + "/" + INPUT.fileName().regex("\\.c$", ".o");
55 } 54 }
56 55
57 return DIR + "/" + INPUT.fileName().regex("\\.c$", ".o");
58} 56}
59 57
60rule "exe" 58rule "exe"