Makefile version.
Do we have a minimum gnu make vesion?
Specifically, I want to know if I can use "Target-specific Variable Values" which I believe is dependent on 3.8x.
Example:
foo.o: CFLAGS += -DFOO_DEBUG
-JX
Signature · 2 lines
"I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy)
Quoted 5 lines · Jimi Xenidis
Do we have a minimum gnu make vesion?
Specifically, I want to know if I can use "Target-specific Variable Values" which I believe is dependent on 3.8x.
Example:
foo.o: CFLAGS += -DFOO_DEBUG
Yeah, we allow those. I think they were added before 3.8x, otherwise we wouldn't use them (we started using $(eval), which is a 3.8x feature, and had complaints from 3.79 users).
-- Keir
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KF" == Keir Fraser <[email protected]> writes:
Quoted 2 lines · Jimi Xenidis
Quoted 2 lines
Example:
foo.o: CFLAGS += -DFOO_DEBUG
KF> Yeah, we allow those. I think they were added before 3.8x, otherwise we KF> wouldn't use them (we started using $(eval), which is a 3.8x feature, KF> and had complaints from 3.79 users).
Ok cool, that means I can remove my custom %.o:%.c commands and just define CFLAGS for the target.
would also like to add an $(AFLAGS) to the %.o: %.S rule liek the following diffs.
This allows me to further customize some assemble, paritularly to add -Wa,-gdwarf2, as the followign diff shows:
Rules.mk renamed from tmp/geta14981 +1 -1
@@ -80,5 +80,5 @@ $(CC) $(CFLAGS) -c $< -o $@ %.o: %.S $(HDRS) Makefile - $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@ + $(CC) $(CFLAGS) $(AFLAGS) -D__ASSEMBLY__ -c $< -o $@
Signature · 2 lines
"I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy)
Quoted 22 lines · Jimi Xenidis
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"KF" == Keir Fraser <[email protected]> writes:
Quoted 2 lines · Jimi Xenidis
Quoted 2 lines
Example:
foo.o: CFLAGS += -DFOO_DEBUGKF> Yeah, we allow those. I think they were added before 3.8x, otherwise we KF> wouldn't use them (we started using $(eval), which is a 3.8x feature, KF> and had complaints from 3.79 users).
Ok cool, that means I can remove my custom %.o:%.c commands and just define CFLAGS for the target.
would also like to add an $(AFLAGS) to the %.o: %.S rule liek the following diffs.This allows me to further customize some assemble, paritularly to add
(quoted diff) +0
-1-Wa,-gdwarf2, as the followign diff shows:
Rules.mk 2005-06-25 12:21:57.000000000 -0400 line 84
Quoted 6 lines
Rules.mk 2005-06-25 12:21:57.000000000 -0400 renamed from tmp/geta14981 2005-06-25 14:05:11.000000000 -0400 +1
-1@@ -80,5 +80,5 @@ $(CC) $(CFLAGS) -c $< -o $@ %.o: %.S $(HDRS) Makefile - $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@ + $(CC) $(CFLAGS) $(AFLAGS) -D__ASSEMBLY__ -c $< -o $@
you should always use diff from outside of xen root directory (so patch would be used with -p1 option). otherwise, it is impossible to know where to apply this patch (there are many Rules.mk file in the source tree)
regards,
aq
Quoted 11 lines
Rules.mk 2005-06-25 12:21:57.000000000 -0400
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"a" == aq <[email protected]> writes:
Rules.mk 2005-06-25 12:21:57.000000000 -0400 renamed from tmp/geta14981 2005-06-25 14:05:11.000000000 -0400 +0
-0@@ -80,5 +80,5 @@$(CC) $(CFLAGS) -c $< -o $@
%.o: %.S $(HDRS)
MakefileRules.mk 2005-06-25 12:21:57.000000000 -0400 renamed from tmp/geta14981 2005-06-25 14:05:11.000000000 -0400 +1
-1- $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@ + $(CC) $(CFLAGS) $(AFLAGS) -D__ASSEMBLY__ -c $< -o $@
a> you should always use diff from outside of xen root directory (so a> patch would be used with -p1 option).
The diff was not really intended for patch, but more as an example. -JX
Signature · 2 lines
"I got an idea, an idea so smart my head would explode if I even began to know what I was talking about." -- Peter Griffin (Family Guy)
Quoted 2 lines · Jimi Xenidis
This allows me to further customize some assemble, paritularly to add -Wa,-gdwarf2, as the followign diff shows:
Perfectly fine.
K.