aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/linux-gnu/Makefile')
-rw-r--r--sysdeps/linux-gnu/Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/sysdeps/linux-gnu/Makefile b/sysdeps/linux-gnu/Makefile
index 7163709..6cbff83 100644
--- a/sysdeps/linux-gnu/Makefile
+++ b/sysdeps/linux-gnu/Makefile
@@ -1,20 +1,34 @@
-ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
+ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/ppc64/ppc/ -e s/s390x/s390/)
CPPFLAGS += -I$(TOPDIR)/sysdeps/linux-gnu/$(ARCH)
OBJ = trace.o proc.o breakpoint.o
-all: sysdep.h signalent.h syscallent.h ../sysdep.o
+all: sysdep.h signalent.h syscallent.h signalent1.h syscallent1.h ../sysdep.o
sysdep.h: $(ARCH)/arch.h
cat $(ARCH)/arch.h > sysdep.h
signalent.h:
cp $(ARCH)/signalent.h signalent.h
+signalent1.h:
+ if [ -f $(ARCH)/signalent1.h ]; then \
+ cp $(ARCH)/signalent1.h signalent1.h; \
+ else \
+ > signalent1.h; \
+ fi
syscallent.h:
cp $(ARCH)/syscallent.h syscallent.h
+syscallent1.h:
+ if [ -f $(ARCH)/syscallent1.h ]; then \
+ cp $(ARCH)/syscallent1.h syscallent1.h; \
+ else \
+ > syscallent1.h; \
+ fi
+
../sysdep.o: os.o $(ARCH)/arch.o
$(CC) -nostdlib -r -o ../sysdep.o os.o $(ARCH)/arch.o
@@ -26,6 +40,7 @@ $(ARCH)/arch.o: dummy
clean:
$(MAKE) -C $(ARCH) clean
- rm -f $(OBJ) sysdep.h signalent.h syscallent.h os.o sysdep.o ../sysdep.o
+ rm -f $(OBJ) sysdep.h signalent.h signalent1.h syscallent.h
+ rm -f syscallent1.h os.o sysdep.o ../sysdep.o
dummy: