OSDN Git Service

Correct defect in build system compilation rule.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 22 Sep 2015 19:29:16 +0000 (20:29 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 22 Sep 2015 19:29:16 +0000 (20:29 +0100)
w32api/ChangeLog
w32api/Makefile.in

index 2500877..80c8761 100644 (file)
@@ -1,3 +1,12 @@
+2015-09-22  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Correct defect in build system compilation rule.
+
+       * Makefile.in (scrnsavw.$OBJEXT): Do not use $^ to represent the
+       source file; it expands to also include prerequisite header files,
+       which should not appear on the compilation command line.  Rewrite
+       rule in static pattern format, and use $< instead.
+
 2015-08-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Build system corrections for GCC build time support.
index aa74049..11dfb3a 100644 (file)
@@ -158,8 +158,8 @@ libuuid.a: objsafe-uuid.$(OBJEXT) ocidl-uuid.$(OBJEXT) oleacc-uuid.$(OBJEXT)
 libuuid.a: olectlid-uuid.$(OBJEXT) oleidl-uuid.$(OBJEXT) power-uuid.$(OBJEXT)
 libuuid.a: servprov-uuid.$(OBJEXT) unknwn-uuid.$(OBJEXT) urlmon-uuid.$(OBJEXT)
 
-scrnsavw.$(OBJEXT): scrnsave.c
-       $(CC) -c -D UNICODE $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) $(INCLUDES) -o $@ $^
+scrnsavw.$(OBJEXT): %.$(OBJEXT): scrnsave.c
+       $(CC) -c -D UNICODE $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) $(INCLUDES) -o $@ $<
 
 libshell32.a: shell32.$(OBJEXT)
 libgdiplus.a: gdiplus.$(OBJEXT)