diff options
-rw-r--r-- | share/autoinclude/general-rules.bld | 4 | ||||
-rw-r--r-- | share/include/qt4.bld | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/share/autoinclude/general-rules.bld b/share/autoinclude/general-rules.bld index 0e6c735..d568e11 100644 --- a/share/autoinclude/general-rules.bld +++ b/share/autoinclude/general-rules.bld | |||
@@ -86,7 +86,7 @@ rule "cpp" | |||
86 | { | 86 | { |
87 | input "*.cpp"; | 87 | input "*.cpp"; |
88 | output INPUT.cppToObj(); | 88 | output INPUT.cppToObj(); |
89 | requires getMakeDeps("${CXX} ${CXXFLAGS} -M ${INPUT}"); | 89 | requires getMakeDeps("${CXX} ${CXXFLAGS} -M -MG ${INPUT}"); |
90 | profile "build" | 90 | profile "build" |
91 | { | 91 | { |
92 | execute("${CXX} ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); | 92 | execute("${CXX} ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); |
@@ -98,7 +98,7 @@ rule "c" | |||
98 | { | 98 | { |
99 | input "*.c"; | 99 | input "*.c"; |
100 | output INPUT.cToObj(); | 100 | output INPUT.cToObj(); |
101 | requires getMakeDeps("${CC} ${CFLAGS} -M ${INPUT}"); | 101 | requires getMakeDeps("${CC} ${CFLAGS} -M -MG ${INPUT}"); |
102 | profile "build" | 102 | profile "build" |
103 | { | 103 | { |
104 | execute("${CC} ${CFLAGS} -c -o ${OUTPUT} ${INPUT}"); | 104 | execute("${CC} ${CFLAGS} -c -o ${OUTPUT} ${INPUT}"); |
diff --git a/share/include/qt4.bld b/share/include/qt4.bld index a5a7867..6d95ac8 100644 --- a/share/include/qt4.bld +++ b/share/include/qt4.bld | |||
@@ -151,3 +151,15 @@ rule "qt_moc" | |||
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | rule "exe" | ||
155 | { | ||
156 | input regex(".*\\.(h|o)"); | ||
157 | profile "build" | ||
158 | { | ||
159 | INPUT = INPUT.matches("*.o"); | ||
160 | // execute("echo ${INPUT}"); | ||
161 | // execute("echo ${MYIN}"); | ||
162 | execute("${CXX} -o ${OUTPUT} ${INPUT} ${LDFLAGS}"); | ||
163 | } | ||
164 | } | ||
165 | |||