summaryrefslogtreecommitdiff
blob: c1f0c665c314cb55e542b12e1b5d1a122dc3d09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff -Naur ltrace-0.4.old/configure.ac ltrace-0.4/configure.ac
--- ltrace-0.4.old/configure.ac	2007-03-08 01:08:45.000000000 +0200
+++ ltrace-0.4/configure.ac	2007-03-08 01:28:15.000000000 +0200
@@ -8,6 +8,7 @@
 AC_CANONICAL_HOST
 HOST_OS="$host_os"
 AC_SUBST(HOST_OS)
+AC_SUBST(host_cpu)
 
 dnl Checks for programs.
 AC_PROG_CC
@@ -84,4 +85,4 @@
 dnl of libelf and ltrace matches.
 AC_SYS_LARGEFILE
 fi
-AC_OUTPUT(Makefile)
+AC_OUTPUT([Makefile sysdeps/linux-gnu/Makefile])
diff -Naur ltrace-0.4.old/sysdeps/linux-gnu/Makefile.in ltrace-0.4/sysdeps/linux-gnu/Makefile.in
--- ltrace-0.4.old/sysdeps/linux-gnu/Makefile.in	1970-01-01 02:00:00.000000000 +0200
+++ ltrace-0.4/sysdeps/linux-gnu/Makefile.in	2007-03-08 01:26:25.000000000 +0200
@@ -0,0 +1,46 @@
+ARCH		:=	$(shell echo @host_cpu@ | 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 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
+
+os.o:		$(OBJ)
+		$(CC) -nostdlib -r -o os.o $(OBJ)
+
+$(ARCH)/arch.o:	dummy
+		$(MAKE) -C $(ARCH)
+
+clean:
+		$(MAKE) -C $(ARCH) clean
+		rm -f $(OBJ) sysdep.h signalent.h signalent1.h syscallent.h
+		rm -f syscallent1.h os.o sysdep.o ../sysdep.o
+
+dummy: