sim: erc32/ppc: fix handling of $EXEEXT

Message ID 20210609220605.9933-1-vapier@gentoo.org
State New
Headers show
Series
  • sim: erc32/ppc: fix handling of $EXEEXT
Related show

Commit Message

Simon Marchi via Gdb-patches June 9, 2021, 10:06 p.m.
---
 sim/erc32/Makefile.in | 6 +++---
 sim/ppc/Makefile.in   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.31.1

Patch

diff --git a/sim/erc32/Makefile.in b/sim/erc32/Makefile.in
index f52daf740dd5..5c29b0abfb70 100644
--- a/sim/erc32/Makefile.in
+++ b/sim/erc32/Makefile.in
@@ -41,9 +41,9 @@  SIM_EXTRA_CFLAGS += -DFAST_UART -I$(srcroot)
 # `sis' doesn't need interf.o.
 SIS_OFILES = exec.o erc32.o func.o help.o float.o
 
-all: sis
-sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
-	$(CC) $(ALL_CFLAGS) -o sis \
+all: sis$(EXEEXT)
+sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
+	$(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
 	  sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
 
 # Copy the files into directories where they will be run.
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index 1996e13279c7..a3a512a79f94 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -160,7 +160,7 @@  INTL_CFLAGS = @INCINTL@
 
 TARGETLIB	= libsim.a
 
-all:	run $(TARGETLIB) $(GDB_OBJ)
+all:	run$(EXEEXT) $(TARGETLIB) $(GDB_OBJ)
 
 .c.o:
 	$(CC) -c $(STD_CFLAGS) $<
@@ -544,10 +544,10 @@  PACKAGE_SRC = @sim_pk_src@
 PACKAGE_OBJ = @sim_pk_obj@
 
 
-psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP)
+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: psim
+run$(EXEEXT): psim$(EXEEXT)
 	rm -f run$(EXEEXT)
 	ln psim$(EXEEXT) run$(EXEEXT)