From e570a920e4ea8598a791baa414d92807133670ba Mon Sep 17 00:00:00 2001 From: Vizzini Date: Wed, 15 Oct 2003 02:56:02 +0000 Subject: [PATCH] patch by d_layer to fix two unnecessary-rebuild problems svn path=/trunk/; revision=6318 --- reactos/lib/zlib/Makefile.host | 10 ++++++---- reactos/tools/buildno.c | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/reactos/lib/zlib/Makefile.host b/reactos/lib/zlib/Makefile.host index b7dd2190c4f..b7a1096cc83 100755 --- a/reactos/lib/zlib/Makefile.host +++ b/reactos/lib/zlib/Makefile.host @@ -1,4 +1,4 @@ -# $Id: Makefile.host,v 1.1 2003/08/24 10:36:06 chorns Exp $ +# $Id: Makefile.host,v 1.2 2003/10/15 02:56:02 vizzini Exp $ PATH_TO_TOP = ../.. TARGET = zlib.host.a @@ -23,16 +23,18 @@ OBJECTS = \ infutil.o \ inffast.o +OBJECTS := $(OBJECTS:%=hostobjs/%) + all: hostobjs $(TARGET) hostobjs: - $(RMKDIR) hostobjs -%.o: %.c - $(HOST_CC) $(CFLAGS) -c $< -o hostobjs/$@ +hostobjs/%.o: %.c + $(HOST_CC) $(CFLAGS) -c $< -o $@ $(TARGET): $(OBJECTS) - $(HOST_AR) -r $(TARGET) $(addprefix hostobjs/, $(OBJECTS)) + $(HOST_AR) -r $(TARGET) $^ clean: - $(RM) hostobjs/* diff --git a/reactos/tools/buildno.c b/reactos/tools/buildno.c index 868505bab75..86d9be5ff9e 100644 --- a/reactos/tools/buildno.c +++ b/reactos/tools/buildno.c @@ -1,4 +1,4 @@ -/* $Id: buildno.c,v 1.1 2001/08/23 21:41:35 ekohl Exp $ +/* $Id: buildno.c,v 1.2 2003/10/15 02:56:02 vizzini Exp $ * * buildno - Generate the build number for ReactOS * @@ -117,7 +117,7 @@ write_h (int build) KERNEL_VERSION_PATCH_LEVEL); s = s + sprintf (s, "#endif\n/* EOF */\n"); - h = fopen (BUILDNO_INCLUDE_FILE, "r"); + h = fopen (BUILDNO_INCLUDE_FILE, "rb"); if (h != NULL) { fseek(h, 0, SEEK_END); @@ -138,7 +138,7 @@ write_h (int build) fclose(h); } - h = fopen (BUILDNO_INCLUDE_FILE, "w"); + h = fopen (BUILDNO_INCLUDE_FILE, "wb"); if (!h) { fprintf (stderr,