A light-weight C++ object model framework Windows API Tool Kit
修訂 | c1d1e3a25344fd39a9143c0c6947c61cd31a5bd4 (tree) |
---|---|
時間 | 2013-08-19 22:20:37 |
作者 | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Convert to one-shot C++ compilation with dependency tracking.
@@ -1,5 +1,13 @@ | ||
1 | 1 | 2013-08-19 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 2 | |
3 | + Convert to one-shot C++ compilation with dependency tracking. | |
4 | + | |
5 | + * Makefile.in (DEPFLAGS): Redefine; incorporate CPPFLAGS. | |
6 | + (hsashctl.$OBJEXT vsashctl.$OBJEXT): Use it in place of CPPFLAGS. | |
7 | + (%.$OBJEXT): Likewise; delete separate dependency tracking command. | |
8 | + | |
9 | +2013-08-19 Keith Marshall <keithmarshall@users.sourceforge.net> | |
10 | + | |
3 | 11 | Add facility for activation of a running application window. |
4 | 12 | |
5 | 13 | * wtkdefs.h: New file; it defines... |
@@ -11,7 +11,7 @@ VERSION = @PACKAGE_VERSION@ | ||
11 | 11 | # $Id$ |
12 | 12 | # |
13 | 13 | # Written by Keith Marshall <keithmarshall@users.sourceforge.net> |
14 | -# Copyright (C) 2012, MinGW.org Project. | |
14 | +# Copyright (C) 2012, 2013, MinGW.org Project. | |
15 | 15 | # |
16 | 16 | # --------------------------------------------------------------------------- |
17 | 17 | # |
@@ -71,7 +71,7 @@ libwtklite.a: $(LIBWTK_OBJECTS) | ||
71 | 71 | |
72 | 72 | # Compilation and dependency tracking... |
73 | 73 | # |
74 | -DEPFLAGS = -MM -MP -MD | |
74 | +DEPFLAGS = -MMD -MP $(CPPFLAGS) | |
75 | 75 | sinclude *.d |
76 | 76 | |
77 | 77 | # Implementations for horizontal and vertical sash bar controls are |
@@ -81,16 +81,15 @@ HSASH_IMPLEMENTATION = -D HSASH_IMPLEMENTATION ${srcdir}/sashctrl.cpp | ||
81 | 81 | VSASH_IMPLEMENTATION = -D VSASH_IMPLEMENTATION ${srcdir}/sashctrl.cpp |
82 | 82 | |
83 | 83 | hsashctl.$(OBJEXT): sashctrl.cpp sashctrl.o |
84 | - $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $(HSASH_IMPLEMENTATION) | |
84 | + $(CXX) -c $(DEPFLAGS) $(CXXFLAGS) -o $@ $(HSASH_IMPLEMENTATION) | |
85 | 85 | |
86 | 86 | vsashctl.$(OBJEXT): sashctrl.cpp sashctrl.o |
87 | - $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $(VSASH_IMPLEMENTATION) | |
87 | + $(CXX) -c $(DEPFLAGS) $(CXXFLAGS) -o $@ $(VSASH_IMPLEMENTATION) | |
88 | 88 | |
89 | 89 | # Other object modules may be implicitly compiled. |
90 | 90 | # |
91 | 91 | %.$(OBJEXT): %.cpp |
92 | - $(CXX) $(DEPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $< | |
93 | - $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $< | |
92 | + $(CXX) -c $(DEPFLAGS) $(CXXFLAGS) -o $@ $< | |
94 | 93 | |
95 | 94 | # Installation rules. |
96 | 95 | # |