• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


コミットメタ情報

リビジョン48bce57bd29c140ccb32a81785949af224bd2d45 (tree)
日時2013-05-15 19:41:35
作者Keith Marshall <keithmarshall@user...>
コミッターKeith Marshall

ログメッセージ

Streamline build-time dependency tracking procedures.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
11 2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Streamline build-time dependency tracking procedures.
4+
5+ * Makefile.in (DEPFLAGS): Adjust for simultaneous .o/.d generation.
6+ (RC_DEPFLAGS): New macro; define dependency generation flags for the
7+ resource compiler, which can't handle the new DEPFLAGS methodology.
8+ (%.c, %.cpp, %.rc): Simplify $OBJEXT generation procedures.
9+ (%.time): Remove redundantly replicated build-time procedure from...
10+ (%.tagged.time): ...this; just make it a prerequisite.
11+
12+2013-05-15 Keith Marshall <keithmarshall@users.sourceforge.net>
13+
314 Add resources for specification of product version.
415
516 * src/verinfo.rc src/verinfo.h.in: New files; included by...
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,8 +36,8 @@ DEBUGLEVEL = @DEBUGLEVEL@
3636 # Establish the appropriate mechanism for invoking 'make' recursively,
3737 # WITHOUT incurring the noise of its "Entering directory..." messages.
3838 #
39-@SET_MAKE@
4039 QUIET_MAKE = $(MAKE)@NO_PRINT_DIRECTORY@
40+@SET_MAKE@
4141
4242 # Establish source code directory organisation, and set reference
4343 # paths for access to source files.
@@ -223,7 +223,8 @@ execute-command:
223223
224224 # Compilation and dependency tracking...
225225 #
226-DEPFLAGS = -MM -MP -MD
226+DEPFLAGS = -MMD -MP
227+RC_DEPFLAGS = -MM -MP -MD -MF $*.res.x
227228 sinclude *.d
228229
229230 %.c: %.l
@@ -235,19 +236,15 @@ sinclude *.d
235236 || $(WITH_REQUEST)='rm -f $(LEX_OUTPUT)' execute-command
236237
237238 %.$(OBJEXT): %.c
238- $(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
239- $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
239+ $(CC) $(DEPFLAGS) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
240240
241241 %.$(OBJEXT): %.cpp
242- $(CXX) $(DEPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $<
243- $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
242+ $(CXX) $(DEPFLAGS) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
244243
245244 %.res.$(OBJEXT): %.rc
246- test ! -f $*.d || mv $*.d $*.d.bak
247- $(CC) $(DEPFLAGS) $(RC_INCLUDES) -DRC_INVOKED -xc-header $<
248- sed 's,$*\.$(OBJEXT):,$@:,' $*.d > $*.res.d; rm -f $*.d
245+ $(CC) $(RC_DEPFLAGS) $(RC_INCLUDES) -DRC_INVOKED -xc-header $<
246+ sed 's,$*\.$(OBJEXT):,$@:,' $*.res.x > $*.res.d; rm -f $*.res.x
249247 $(RC_SCRIPT) $< | $(RC) $(RC_INCLUDES) -o $@
250- test ! -f $*.d.bak || mv $*.d.bak $*.d
251248
252249 %.$(OBJEXT): %.ico
253250 echo $* ICON $*.ico | $(RC) -I ${srcdir}/icons -o $@
@@ -258,8 +255,7 @@ time-stamp:
258255 %.tagged.time: time-stamp
259256 > $*.time
260257
261-%.time:
262- > $*.time
258+%.time: %.tagged.time
263259
264260 %.tag: %.tagged.time
265261 >> $@; tag=`date +%Y%m%d`; \