Révision | 7c125e3b10ac6f9222d24c76cdf31a5a9ec8dae0 (tree) |
---|---|
l'heure | 2015-11-22 15:59:20 |
Auteur | Mike Frysinger <vapier@gent...> |
Commiter | Mike Frysinger |
sim: ppc: avoid use of $< in ordinary rules [PR sim/13834]
POSIX does not define $< behavior in ordinary rules, so avoid its use
to fix building on non-GNU make setups.
Reported-by: Christopher January <chris.january@allinea.com>
@@ -1,3 +1,10 @@ | ||
1 | +2015-11-21 Mike Frysinger <vapier@gentoo.org> | |
2 | + | |
3 | + PR sim/13834 | |
4 | + * Makefile.in (gentmap): Change $< to $(srcdir)/../common/gentmap.c. | |
5 | + (callback.o): Change $< to $(srcdir)/../common/callback.c. | |
6 | + (options.o): Change $< to $(srcdir)/options.c. | |
7 | + | |
1 | 8 | 2015-11-17 Pedro Alves <palves@redhat.com> |
2 | 9 | |
3 | 10 | * debug.h (TRACE, ITRACE, DTRACE, DITRACE, PTRACE): Call |
@@ -635,8 +635,9 @@ mon.o: mon.c $(BASICS_H) $(CPU_H) $(MON_H) | ||
635 | 635 | |
636 | 636 | # GDB after 4.16 expects the default_callback structure to be setup. |
637 | 637 | # As a kludge, build the common stuff here for now. |
638 | -gentmap: ../common/gentmap.c Makefile targ-vals.def | |
639 | - $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I$(srcdir)/../common -o gentmap $< $(BUILD_LIBS) | |
638 | +gentmap: $(srcdir)/../common/gentmap.c Makefile targ-vals.def | |
639 | + $(CC_FOR_BUILD) $(BUILD_CFLAGS) -I. -I../common -I$(srcdir)/../common \ | |
640 | + -o gentmap $(srcdir)/../common/gentmap.c $(BUILD_LIBS) | |
640 | 641 | |
641 | 642 | targ-vals.def: $(srcdir)/../common/nltvals.def |
642 | 643 | rm -f targ-vals.def tmp-def |
@@ -653,8 +654,8 @@ targ-map.c: Makefile gentmap $(srcdir)/../../move-if-change | ||
653 | 654 | ./gentmap -c > tmp-map.c |
654 | 655 | $(SHELL) $(srcdir)/../../move-if-change tmp-map.c targ-map.c |
655 | 656 | |
656 | -callback.o: ../common/callback.c $(TARG_VALS_H) $(CONFIG_H) | |
657 | - $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $< | |
657 | +callback.o: $(srcdir)/../common/callback.c $(TARG_VALS_H) $(CONFIG_H) | |
658 | + $(CC) -c $(STD_CFLAGS) -DHAVE_CONFIG_H $(srcdir)/../common/callback.c | |
658 | 659 | |
659 | 660 | targ-map.o: targ-map.c $(ANSIDECL_H) $(GDB_CALLBACK_H) $(TARG_VALS_H) |
660 | 661 |
@@ -667,7 +668,7 @@ tconfig.h: | ||
667 | 668 | |
668 | 669 | # Rebuild options whenever something changes so the date/time is up to date. |
669 | 670 | options.o: options.c $(CPU_H) $(OPTIONS_H) $(DEFINES_H) $(BASICS_H) $(IDECODE_H) $(INLINE) $(LIB_SRC) $(BUILT_SRC) config.status Makefile |
670 | - $(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $< | |
671 | + $(CC) -c $(STD_CFLAGS) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $(srcdir)/options.c | |
671 | 672 | |
672 | 673 | defines.h: tmp-defines; @true |
673 | 674 | tmp-defines: config.h Makefile |