mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +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 = ../..
|
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/*
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue