Chameleon

View chameleon-no_md_on_ml.patch

1Index: Make.rules
2===================================================================
3--- Make.rules(revision 2042)
4+++ Make.rules(working copy)
5@@ -44,43 +44,50 @@
6 @echo "\t[CC] $<"
7 @$(CC) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $@ \
8 -MD -dependency-file $(OBJROOT)/$*.d
9-@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
10+@cat "$(OBJROOT)/$*.d" >>"$(OBJROOT)/Makedep"
11+@rm -f "$(OBJROOT)/$*.d"
12
13 $(OBJROOT)/%.o32: %.c
14 @echo "\t[CC32] $<"
15 @$(CC) $(CFLAGS) $(DEFINES) -c $(INC) -arch i386 $< -o $@ \
16 -MD -dependency-file $(OBJROOT)/$*.d
17-@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
18+@cat "$(OBJROOT)/$*.d" >>"$(OBJROOT)/Makedep"
19+@rm -f "$(OBJROOT)/$*.d"
20
21 $(OBJROOT)/%.o64: %.c
22 @echo "\t[CC64] $<"
23 @$(CC) $(CFLAGS) $(DEFINES) -c $(INC) -arch x86_64 $< -o $@ \
24 -MD -dependency-file $(OBJROOT)/$*.d
25-@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
26+@cat "$(OBJROOT)/$*.d" >>"$(OBJROOT)/Makedep"
27+@rm -f "$(OBJROOT)/$*.d"
28
29 $(OBJROOT)/%.o: %.m
30 @echo "\t[M] $<"
31 @$(CC) $(CFLAGS) $(DEFINES) -c $(INC) $< -o $@ \
32 -MD -dependency-file $(OBJROOT)/$*.d
33-@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
34+@cat "$(OBJROOT)/$*.d" >>"$(OBJROOT)/Makedep"
35+@rm -f "$(OBJROOT)/$*.d"
36
37 $(OBJROOT)/%.o: %.cpp
38 @echo "\t[CPP] $<"
39 @$(CPP) $(CPPFLAGS) $(CFLAGS) -c "$<" $(INC) -o $@ \
40 -MD -dependency-file $(OBJROOT)/$*.d
41-@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
42+@cat "$(OBJROOT)/$*.d" >>"$(OBJROOT)/Makedep"
43+@rm -f "$(OBJROOT)/$*.d"
44
45 $(OBJROOT)/boot2.o:
46 @echo "\t[AS] boot2.s"
47 @$(CC) -Wa,-n -c $(INC) -arch i386 -o $(OBJROOT)/$(@F) boot2.s \
48 -MD -dependency-file $*.d
49-@md -u $(OBJROOT)/Makedep -f -d $*.d
50+@cat "$*.d" >>"$(OBJROOT)/Makedep"
51+@rm -f "$*.d"
52
53 $(OBJROOT)/%.o: %.s
54 @echo "\t[AS] $<"
55 @$(CC) $(CPPFLAGS) -c $(INC) -arch i386 -o $@ $< \
56 -MD -dependency-file $*.d
57-@md -u $(OBJROOT)/Makedep -f -d $*.d
58+@cat "$*.d" >>"$(OBJROOT)/Makedep"
59+@rm -f "$*.d"
60
61
62 CONFIG_FILES=$(SRCROOT)/auto.conf $(SRCROOT)/autoconf.h $(SRCROOT)/autoconf.inc $(SRCROOT)/.config
63

Archive Download this file

Attachment to issue 279

Created: 9 years 2 months ago by bltz