mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 19:26:29 +00:00
patch by d_layer to fix two unnecessary-rebuild problems
svn path=/trunk/; revision=6318
This commit is contained in:
parent
ca72cbfce5
commit
e570a920e4
2 changed files with 9 additions and 7 deletions
|
@ -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/*
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue