patch by d_layer to fix two unnecessary-rebuild problems

svn path=/trunk/; revision=6318
This commit is contained in:
Vizzini 2003-10-15 02:56:02 +00:00
parent ca72cbfce5
commit e570a920e4
2 changed files with 9 additions and 7 deletions

View file

@ -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 = ../.. PATH_TO_TOP = ../..
TARGET = zlib.host.a TARGET = zlib.host.a
@ -23,16 +23,18 @@ OBJECTS = \
infutil.o \ infutil.o \
inffast.o inffast.o
OBJECTS := $(OBJECTS:%=hostobjs/%)
all: hostobjs $(TARGET) all: hostobjs $(TARGET)
hostobjs: hostobjs:
- $(RMKDIR) hostobjs - $(RMKDIR) hostobjs
%.o: %.c hostobjs/%.o: %.c
$(HOST_CC) $(CFLAGS) -c $< -o hostobjs/$@ $(HOST_CC) $(CFLAGS) -c $< -o $@
$(TARGET): $(OBJECTS) $(TARGET): $(OBJECTS)
$(HOST_AR) -r $(TARGET) $(addprefix hostobjs/, $(OBJECTS)) $(HOST_AR) -r $(TARGET) $^
clean: clean:
- $(RM) hostobjs/* - $(RM) hostobjs/*

View file

@ -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 * buildno - Generate the build number for ReactOS
* *
@ -117,7 +117,7 @@ write_h (int build)
KERNEL_VERSION_PATCH_LEVEL); KERNEL_VERSION_PATCH_LEVEL);
s = s + sprintf (s, "#endif\n/* EOF */\n"); s = s + sprintf (s, "#endif\n/* EOF */\n");
h = fopen (BUILDNO_INCLUDE_FILE, "r"); h = fopen (BUILDNO_INCLUDE_FILE, "rb");
if (h != NULL) if (h != NULL)
{ {
fseek(h, 0, SEEK_END); fseek(h, 0, SEEK_END);
@ -138,7 +138,7 @@ write_h (int build)
fclose(h); fclose(h);
} }
h = fopen (BUILDNO_INCLUDE_FILE, "w"); h = fopen (BUILDNO_INCLUDE_FILE, "wb");
if (!h) if (!h)
{ {
fprintf (stderr, fprintf (stderr,