diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/arch-subdir.mk.in | 1 | ||||
-rw-r--r-- | sim/ppc/Makefile.in | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sim/arch-subdir.mk.in b/sim/arch-subdir.mk.in index efd91e7..96b481a 100644 --- a/sim/arch-subdir.mk.in +++ b/sim/arch-subdir.mk.in @@ -26,6 +26,7 @@ EXEEXT = @EXEEXT@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ +LN_S = @LN_S@ CC = @CC@ C_DIALECT = @C_DIALECT@ diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 9d892ee..c230f29 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -522,8 +522,8 @@ psim$(EXEEXT): $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP) $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(ZLIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS) run$(EXEEXT): psim$(EXEEXT) - rm -f run$(EXEEXT) - ln psim$(EXEEXT) run$(EXEEXT) + rm -f $@ + ln $< $@ 2>/dev/null || $(LN_S) $< $@ 2>/dev/null || cp -p $< $@ $(TARGETLIB): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines $(LIB_OBJ) $(GDB_OBJ) rm -f $(TARGETLIB) |