mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Hopefully final dependencies fixes
svn path=/trunk/; revision=1695
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.21 2001/03/15 18:49:17 dwelch Exp $
|
||||
# $Id: Makefile,v 1.22 2001/03/15 22:13:50 dwelch Exp $
|
||||
#
|
||||
# ReactOS Operating System
|
||||
#
|
||||
@@ -573,13 +573,13 @@ ke/main.o: ke/main.c ../include/reactos/buildno.h
|
||||
include $(D1_FILES)
|
||||
|
||||
.%.d: %.c depends$(EXE_POSTFIX)
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.s
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
.%.d: %.S
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@
|
||||
$(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) $@
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
|
||||
@@ -9,14 +9,21 @@ int main(int argc, char* argv[])
|
||||
unsigned int i;
|
||||
char* dot;
|
||||
char* prefix;
|
||||
FILE* out;
|
||||
|
||||
if (argc == 1)
|
||||
if (argc != 3)
|
||||
{
|
||||
prefix = "";
|
||||
printf("Too few arguments\n");
|
||||
return(1);
|
||||
}
|
||||
else
|
||||
|
||||
prefix = strdup(argv[1]);
|
||||
|
||||
out = fopen(argv[2], "wb");
|
||||
if (out == NULL)
|
||||
{
|
||||
prefix = strdup(argv[1]);
|
||||
printf("Unable to open output file\n");
|
||||
return(1);
|
||||
}
|
||||
|
||||
i = 0;
|
||||
@@ -37,11 +44,11 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
*dot = 0;
|
||||
}
|
||||
fprintf(stdout, "%s/.%s.d %s/%s.o:", prefix, buf, prefix,buf);
|
||||
fprintf(out, "%s/.%s.d %s/%s.o:", prefix, buf, prefix,buf);
|
||||
|
||||
while ((ch = fgetc(stdin)) != EOF)
|
||||
{
|
||||
fputc(ch, stdout);
|
||||
fputc(ch, out);
|
||||
}
|
||||
|
||||
return(0);
|
||||
|
||||
Reference in New Issue
Block a user