1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/compile.am |
---|
6 | |
---|
7 | DISTCLEANFILES = |
---|
8 | CLEANFILES = |
---|
9 | BUILT_SOURCES = |
---|
10 | MAINTAINERCLEANFILES = |
---|
11 | |
---|
12 | ## FIXME: This Makefile.am is one blatant ugly HACK |
---|
13 | ## May-be this should be put into libcpu? |
---|
14 | |
---|
15 | if HAS_RDBG |
---|
16 | include_rdbgdir = $(includedir)/rdbg |
---|
17 | |
---|
18 | include_rdbg_HEADERS = include/rdbg/rdbg.h include/rdbg/servrpc.h |
---|
19 | |
---|
20 | noinst_LIBRARIES = librdbg.a |
---|
21 | librdbg_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
22 | librdbg_a_SOURCES = src/rdbg.c src/servcon.c src/servbkpt.c src/servrpc.c \ |
---|
23 | src/excep.c src/servtgt.c src/servtsp.c src/servutil.c src/_servtgt.c \ |
---|
24 | src/ptrace.c |
---|
25 | endif |
---|
26 | |
---|
27 | X_FILES = src/remdeb.x |
---|
28 | EXTRA_DIST = src/remdeb.x |
---|
29 | |
---|
30 | if HAS_RDBG |
---|
31 | if HAS_RDBG_powerpc |
---|
32 | librdbg_a_SOURCES += src/powerpc/excep_f.c src/powerpc/rdbg_f.c \ |
---|
33 | src/powerpc/rdbg_cpu_asm.S |
---|
34 | |
---|
35 | # Generated sources |
---|
36 | librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c |
---|
37 | librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c |
---|
38 | librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb.h |
---|
39 | include_rdbg_HEADERS += src/powerpc/new_exception_processing/remdeb.h |
---|
40 | include_rdbg_HEADERS += include/rdbg/powerpc/rdbg_f.h \ |
---|
41 | include/rdbg/powerpc/reg.h |
---|
42 | endif |
---|
43 | endif |
---|
44 | |
---|
45 | # X source names |
---|
46 | EXTRA_DIST += src/powerpc/new_exception_processing/remdeb_f.x |
---|
47 | |
---|
48 | BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb.h |
---|
49 | BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c |
---|
50 | BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c |
---|
51 | MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_xdr.c |
---|
52 | MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_svc.c |
---|
53 | MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb.h |
---|
54 | |
---|
55 | if RPCTOOLS |
---|
56 | $(srcdir)/src/powerpc/new_exception_processing/remdeb.h: $(X_FILES) \ |
---|
57 | src/powerpc/new_exception_processing/remdeb_f.x |
---|
58 | rm -f $@; ( cd $(srcdir) && \ |
---|
59 | $(RPCGEN) -h -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" \ |
---|
60 | -o src/powerpc/new_exception_processing/remdeb.h src/remdeb.x ) |
---|
61 | |
---|
62 | $(srcdir)/src/powerpc/new_exception_processing/remdeb_xdr.c: $(X_FILES) \ |
---|
63 | src/powerpc/new_exception_processing/remdeb_f.x |
---|
64 | rm -f $@; ( cd $(srcdir) && \ |
---|
65 | $(RPCGEN) -c -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" src/remdeb.x \ |
---|
66 | | sed "s,^#include.*remdeb\.h.*,#include \"src/powerpc/new_exception_processing/remdeb.h\"," \ |
---|
67 | > src/powerpc/new_exception_processing/remdeb_xdr.c ) |
---|
68 | |
---|
69 | $(srcdir)/src/powerpc/new_exception_processing/remdeb_svc.c: $(X_FILES) \ |
---|
70 | src/powerpc/new_exception_processing/remdeb_f.x |
---|
71 | rm -f $@; ( cd $(srcdir) && \ |
---|
72 | $(RPCGEN) -m -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" \ |
---|
73 | -o src/powerpc/new_exception_processing/tmpSvc.c src/remdeb.x; \ |
---|
74 | $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/powerpc/new_exception_processing/tmpSvc.c \ |
---|
75 | > src/powerpc/new_exception_processing/remdeb_svc.c; \ |
---|
76 | sed -e 's/fprintf.*,/printf(/' src/powerpc/new_exception_processing/remdeb_svc.c > src/powerpc/new_exception_processing/remdeb_svc.tmp; \ |
---|
77 | mv src/powerpc/new_exception_processing/remdeb_svc.tmp src/powerpc/new_exception_processing/remdeb_svc.c; \ |
---|
78 | rm -f src/powerpc/new_exception_processing/tmpSvc.c ) |
---|
79 | endif |
---|
80 | |
---|
81 | if HAS_RDBG |
---|
82 | if HAS_RDBG_i386 |
---|
83 | librdbg_a_SOURCES += src/i386/excep_f.c src/i386/rdbg_f.c \ |
---|
84 | src/i386/rdbg_cpu_asm.S |
---|
85 | |
---|
86 | # Generated sources |
---|
87 | librdbg_a_SOURCES += src/i386/any/remdeb_xdr.c |
---|
88 | librdbg_a_SOURCES += src/i386/any/remdeb_svc.c |
---|
89 | librdbg_a_SOURCES += src/i386/any/remdeb.h |
---|
90 | include_rdbg_HEADERS += src/i386/any/remdeb.h |
---|
91 | include_rdbg_HEADERS += include/rdbg/i386/rdbg_f.h include/rdbg/i386/reg.h |
---|
92 | endif |
---|
93 | endif |
---|
94 | |
---|
95 | # X source names |
---|
96 | EXTRA_DIST += src/i386/any/remdeb_f.x |
---|
97 | BUILT_SOURCES += src/i386/any/remdeb.h |
---|
98 | BUILT_SOURCES += src/i386/any/remdeb_xdr.c |
---|
99 | BUILT_SOURCES += src/i386/any/remdeb_svc.c |
---|
100 | MAINTAINERCLEANFILES += src/i386/any/remdeb_xdr.c |
---|
101 | MAINTAINERCLEANFILES += src/i386/any/remdeb_svc.c |
---|
102 | MAINTAINERCLEANFILES += src/i386/any/remdeb.h |
---|
103 | |
---|
104 | if RPCTOOLS |
---|
105 | $(srcdir)/src/i386/any/remdeb.h: $(X_FILES) src/i386/any/remdeb_f.x |
---|
106 | rm -f $@; ( cd $(srcdir) && \ |
---|
107 | $(RPCGEN) -h -DFRONTEND=\"i386/any/remdeb_f.x\" \ |
---|
108 | -o src/i386/any/remdeb.h src/remdeb.x ) |
---|
109 | |
---|
110 | $(srcdir)/src/i386/any/remdeb_xdr.c: $(X_FILES) src/i386/any/remdeb_f.x |
---|
111 | rm -f $@; ( cd $(srcdir) && \ |
---|
112 | $(RPCGEN) -c -DFRONTEND=\"i386/any/remdeb_f.x\" src/remdeb.x \ |
---|
113 | | sed "s,^#include.*remdeb\.h.*,#include \"src/i386/any/remdeb.h\"," \ |
---|
114 | > src/i386/any/remdeb_xdr.c ) |
---|
115 | |
---|
116 | $(srcdir)/src/i386/any/remdeb_svc.c: $(X_FILES) src/i386/any/remdeb_f.x |
---|
117 | rm -f $@; ( cd $(srcdir) && \ |
---|
118 | $(RPCGEN) -m -DFRONTEND=\"i386/any/remdeb_f.x\" \ |
---|
119 | -o src/i386/any/tmpSvc.c src/remdeb.x; \ |
---|
120 | $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/i386/any/tmpSvc.c \ |
---|
121 | > src/i386/any/remdeb_svc.c; \ |
---|
122 | sed -e 's/fprintf.*,/printf(/' src/i386/any/remdeb_svc.c > src/i386/any/remdeb_svc.tmp; \ |
---|
123 | mv src/i386/any/remdeb_svc.tmp src/i386/any/remdeb_svc.c; \ |
---|
124 | rm -f src/i386/any/tmpSvc.c ) |
---|
125 | endif |
---|
126 | |
---|
127 | if HAS_RDBG |
---|
128 | if HAS_RDBG_m68k |
---|
129 | librdbg_a_SOURCES += src/m68k/excep_f.c src/m68k/rdbg_f.c \ |
---|
130 | src/m68k/rdbg_cpu_asm.S |
---|
131 | |
---|
132 | # Generated sources |
---|
133 | librdbg_a_SOURCES += src/m68k/any/remdeb_xdr.c |
---|
134 | librdbg_a_SOURCES += src/m68k/any/remdeb_svc.c |
---|
135 | librdbg_a_SOURCES += src/m68k/any/remdeb.h |
---|
136 | include_rdbg_HEADERS += src/m68k/any/remdeb.h |
---|
137 | include_rdbg_HEADERS += include/rdbg/m68k/rdbg_f.h include/rdbg/m68k/reg.h |
---|
138 | endif |
---|
139 | endif |
---|
140 | |
---|
141 | # X source names |
---|
142 | EXTRA_DIST += src/m68k/any/remdeb_f.x |
---|
143 | BUILT_SOURCES += src/m68k/any/remdeb.h |
---|
144 | BUILT_SOURCES += src/m68k/any/remdeb_xdr.c |
---|
145 | BUILT_SOURCES += src/m68k/any/remdeb_svc.c |
---|
146 | MAINTAINERCLEANFILES += src/m68k/any/remdeb_xdr.c |
---|
147 | MAINTAINERCLEANFILES += src/m68k/any/remdeb_svc.c |
---|
148 | MAINTAINERCLEANFILES += src/m68k/any/remdeb.h |
---|
149 | |
---|
150 | if RPCTOOLS |
---|
151 | $(srcdir)/src/m68k/any/remdeb.h: $(X_FILES) src/m68k/any/remdeb_f.x |
---|
152 | rm -f $@; ( cd $(srcdir) && \ |
---|
153 | $(RPCGEN) -h -DFRONTEND=\"m68k/any/remdeb_f.x\" \ |
---|
154 | -o src/m68k/any/remdeb.h src/remdeb.x ) |
---|
155 | $(srcdir)/src/m68k/any/remdeb_xdr.c: $(X_FILES) src/m68k/any/remdeb_f.x |
---|
156 | rm -f $@; ( cd $(srcdir) && \ |
---|
157 | $(RPCGEN) -c -DFRONTEND=\"m68k/any/remdeb_f.x\" src/remdeb.x \ |
---|
158 | | sed "s,^#include.*remdeb\.h.*,#include \"src/m68k/any/remdeb.h\"," \ |
---|
159 | > src/m68k/any/remdeb_xdr.c ) |
---|
160 | $(srcdir)/src/m68k/any/remdeb_svc.c: $(X_FILES) src/m68k/any/remdeb_f.x |
---|
161 | rm -f $@; ( cd $(srcdir) && \ |
---|
162 | $(RPCGEN) -m -DFRONTEND=\"m68k/any/remdeb_f.x\" \ |
---|
163 | -o src/m68k/any/tmpSvc.c src/remdeb.x; \ |
---|
164 | $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/m68k/any/tmpSvc.c \ |
---|
165 | > src/m68k/any/remdeb_svc.c; \ |
---|
166 | sed -e 's/fprintf.*,/printf(/' src/m68k/any/remdeb_svc.c > src/m68k/any/remdeb_svc.tmp; \ |
---|
167 | mv src/m68k/any/remdeb_svc.tmp src/m68k/any/remdeb_svc.c; \ |
---|
168 | rm -f src/m68k/any/tmpSvc.c ) |
---|
169 | endif |
---|
170 | |
---|
171 | EXTRA_DIST += src/awk.svc |
---|
172 | |
---|
173 | include $(srcdir)/preinstall.am |
---|
174 | include $(top_srcdir)/automake/local.am |
---|