source: rtems/c/src/librdbg/Makefile.am @ 2977f24c

4.104.114.84.95
Last change on this file since 2977f24c was ddeb7693, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 30, 2004 at 3:00:29 PM

2004-03-30 Ralf Corsepius <ralf_corsepius@…>

  • librdbg/Makefile.am: Fix rpcgen rules.
  • librdbg/src/i386/any/remdeb_xdr.c, librdbg/src/m68k/any/remdeb_xdr.c, librdbg/src/powerpc/new_exception_processing/remdeb_xdr.c: Reflect changes to librdbg/Makefile.am.
  • Property mode set to 100644
File size: 9.7 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6
7CLEANFILES =
8BUILT_SOURCES =
9MAINTAINERCLEANFILES =
10
11## FIXME: This Makefile.am is one blatant ugly HACK
12## May-be this should be put into libcpu?
13
14if HAS_RDBG
15include_rdbgdir = $(includedir)/rdbg
16
17include_rdbg_HEADERS = include/rdbg/rdbg.h include/rdbg/servrpc.h
18
19EXTRA_LIBRARIES = librdbg.a
20CLEANFILES += librdbg.a
21librdbg_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
22
23EXTRA_LIBRARIES += librdbg_g.a
24CLEANFILES += librdbg_g.a
25librdbg_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
26librdbg_g_a_SOURCES = $(librdbg_a_SOURCES)
27
28project_lib_DATA = librdbg$(LIB_VARIANT).a
29
30librdbg_a_SOURCES = src/rdbg.c src/servcon.c src/servbkpt.c src/servrpc.c \
31    src/excep.c src/servtgt.c src/servtsp.c src/servutil.c src/_servtgt.c \
32    src/ptrace.c
33endif
34
35X_FILES = src/remdeb.x
36EXTRA_DIST = src/remdeb.x
37
38if HAS_RDBG
39if HAS_RDBG_powerpc
40librdbg_a_SOURCES += src/powerpc/excep_f.c src/powerpc/rdbg_f.c \
41    src/powerpc/rdbg_cpu_asm.S
42
43# Generated sources
44librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c
45librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c
46librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb.h
47include_rdbg_HEADERS += src/powerpc/new_exception_processing/remdeb.h
48include_rdbg_HEADERS += include/rdbg/powerpc/rdbg_f.h \
49    include/rdbg/powerpc/reg.h
50endif
51endif
52
53# X source names
54EXTRA_DIST += src/powerpc/new_exception_processing/remdeb_f.x
55
56BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb.h
57BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c
58BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c
59MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_xdr.c
60MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_svc.c
61MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb.h
62
63if RPCTOOLS
64$(srcdir)/src/powerpc/new_exception_processing/remdeb.h: $(X_FILES) \
65    src/powerpc/new_exception_processing/remdeb_f.x
66        rm -f $@; ( cd $(srcdir) && \
67        $(RPCGEN) -h -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" \
68          -o src/powerpc/new_exception_processing/remdeb.h src/remdeb.x )
69
70$(srcdir)/src/powerpc/new_exception_processing/remdeb_xdr.c: $(X_FILES) \
71   src/powerpc/new_exception_processing/remdeb_f.x
72        rm -f $@; ( cd $(srcdir) && \
73        $(RPCGEN) -c -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" src/remdeb.x \
74         | sed "s,^#include.*remdeb\.h.*,#include \"src/powerpc/new_exception_processing/remdeb.h\"," \
75         > src/powerpc/new_exception_processing/remdeb_xdr.c )
76
77$(srcdir)/src/powerpc/new_exception_processing/remdeb_svc.c: $(X_FILES) \
78   src/powerpc/new_exception_processing/remdeb_f.x
79        rm -f $@; ( cd $(srcdir) && \
80        $(RPCGEN) -m -DFRONTEND=\"powerpc/new_exception_processing/remdeb_f.x\" \
81          -o src/powerpc/new_exception_processing/tmpSvc.c src/remdeb.x; \
82        $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/powerpc/new_exception_processing/tmpSvc.c \
83          > src/powerpc/new_exception_processing/remdeb_svc.c; \
84        sed -e 's/fprintf.*,/printf(/'  src/powerpc/new_exception_processing/remdeb_svc.c > src/powerpc/new_exception_processing/remdeb_svc.tmp; \
85        mv src/powerpc/new_exception_processing/remdeb_svc.tmp src/powerpc/new_exception_processing/remdeb_svc.c; \
86        rm -f src/powerpc/new_exception_processing/tmpSvc.c )
87endif
88
89if HAS_RDBG
90if HAS_RDBG_i386
91librdbg_a_SOURCES += src/i386/excep_f.c src/i386/rdbg_f.c \
92    src/i386/rdbg_cpu_asm.S
93
94# Generated sources
95librdbg_a_SOURCES += src/i386/any/remdeb_xdr.c
96librdbg_a_SOURCES += src/i386/any/remdeb_svc.c
97librdbg_a_SOURCES += src/i386/any/remdeb.h
98include_rdbg_HEADERS += src/i386/any/remdeb.h
99include_rdbg_HEADERS += include/rdbg/i386/rdbg_f.h include/rdbg/i386/reg.h
100endif
101endif
102
103# X source names
104EXTRA_DIST += src/i386/any/remdeb_f.x
105BUILT_SOURCES += src/i386/any/remdeb.h
106BUILT_SOURCES += src/i386/any/remdeb_xdr.c
107BUILT_SOURCES += src/i386/any/remdeb_svc.c
108MAINTAINERCLEANFILES += src/i386/any/remdeb_xdr.c
109MAINTAINERCLEANFILES += src/i386/any/remdeb_svc.c
110MAINTAINERCLEANFILES += src/i386/any/remdeb.h
111
112if RPCTOOLS
113$(srcdir)/src/i386/any/remdeb.h: $(X_FILES) src/i386/any/remdeb_f.x
114        rm -f $@; ( cd $(srcdir) && \
115        $(RPCGEN) -h -DFRONTEND=\"i386/any/remdeb_f.x\" \
116          -o src/i386/any/remdeb.h src/remdeb.x )
117
118$(srcdir)/src/i386/any/remdeb_xdr.c: $(X_FILES) src/i386/any/remdeb_f.x
119        rm -f $@; ( cd $(srcdir) && \
120        $(RPCGEN) -c -DFRONTEND=\"i386/any/remdeb_f.x\" src/remdeb.x \
121         | sed "s,^#include.*remdeb\.h.*,#include \"src/i386/any/remdeb.h\"," \
122         > src/i386/any/remdeb_xdr.c )
123
124$(srcdir)/src/i386/any/remdeb_svc.c: $(X_FILES) src/i386/any/remdeb_f.x
125        rm -f $@; ( cd $(srcdir) && \
126        $(RPCGEN) -m -DFRONTEND=\"i386/any/remdeb_f.x\" \
127          -o src/i386/any/tmpSvc.c src/remdeb.x; \
128        $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/i386/any/tmpSvc.c \
129          > src/i386/any/remdeb_svc.c; \
130        sed -e 's/fprintf.*,/printf(/'  src/i386/any/remdeb_svc.c > src/i386/any/remdeb_svc.tmp; \
131        mv src/i386/any/remdeb_svc.tmp src/i386/any/remdeb_svc.c; \
132        rm -f src/i386/any/tmpSvc.c )
133endif
134
135if HAS_RDBG
136if HAS_RDBG_m68k
137librdbg_a_SOURCES += src/m68k/excep_f.c src/m68k/rdbg_f.c \
138    src/m68k/rdbg_cpu_asm.S
139
140# Generated sources
141librdbg_a_SOURCES += src/m68k/any/remdeb_xdr.c
142librdbg_a_SOURCES += src/m68k/any/remdeb_svc.c
143librdbg_a_SOURCES += src/m68k/any/remdeb.h
144include_rdbg_HEADERS += src/m68k/any/remdeb.h
145include_rdbg_HEADERS += include/rdbg/m68k/rdbg_f.h include/rdbg/m68k/reg.h
146endif
147endif
148
149# X source names
150EXTRA_DIST += src/m68k/any/remdeb_f.x
151BUILT_SOURCES += src/m68k/any/remdeb.h
152BUILT_SOURCES += src/m68k/any/remdeb_xdr.c
153BUILT_SOURCES += src/m68k/any/remdeb_svc.c
154MAINTAINERCLEANFILES += src/m68k/any/remdeb_xdr.c
155MAINTAINERCLEANFILES += src/m68k/any/remdeb_svc.c
156MAINTAINERCLEANFILES += src/m68k/any/remdeb.h
157
158if RPCTOOLS
159$(srcdir)/src/m68k/any/remdeb.h: $(X_FILES) src/m68k/any/remdeb_f.x
160        rm -f $@; ( cd $(srcdir) && \
161        $(RPCGEN) -h -DFRONTEND=\"m68k/any/remdeb_f.x\" \
162          -o src/m68k/any/remdeb.h src/remdeb.x )
163$(srcdir)/src/m68k/any/remdeb_xdr.c: $(X_FILES) src/m68k/any/remdeb_f.x
164        rm -f $@; ( cd $(srcdir) && \
165        $(RPCGEN) -c -DFRONTEND=\"m68k/any/remdeb_f.x\" src/remdeb.x \
166         | sed "s,^#include.*remdeb\.h.*,#include \"src/m68k/any/remdeb.h\"," \
167         > src/m68k/any/remdeb_xdr.c )
168$(srcdir)/src/m68k/any/remdeb_svc.c: $(X_FILES) src/m68k/any/remdeb_f.x
169        rm -f $@; ( cd $(srcdir) && \
170        $(RPCGEN) -m -DFRONTEND=\"m68k/any/remdeb_f.x\" \
171          -o src/m68k/any/tmpSvc.c src/remdeb.x; \
172        $(AWK) -f src/awk.svc THEPROG="remdeb.h" src/m68k/any/tmpSvc.c \
173          > src/m68k/any/remdeb_svc.c; \
174        sed -e 's/fprintf.*,/printf(/'  src/m68k/any/remdeb_svc.c > src/m68k/any/remdeb_svc.tmp; \
175        mv src/m68k/any/remdeb_svc.tmp src/m68k/any/remdeb_svc.c; \
176        rm -f src/m68k/any/tmpSvc.c )
177endif
178
179EXTRA_DIST += src/awk.svc
180
181all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
182
183PREINSTALL_DIRS =
184PREINSTALL_FILES =
185TMPINSTALL_FILES =
186
187$(PROJECT_LIB)/$(dirstamp):
188        @$(mkdir_p) $(PROJECT_LIB)
189        @: > $(PROJECT_LIB)/$(dirstamp)
190TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
191
192if HAS_RDBG
193$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
194        @$(mkdir_p) $(PROJECT_INCLUDE)/rdbg
195        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
196PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
197
198$(PROJECT_INCLUDE)/rdbg/rdbg.h: include/rdbg/rdbg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
199        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg.h
200PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg.h
201
202$(PROJECT_INCLUDE)/rdbg/servrpc.h: include/rdbg/servrpc.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/servrpc.h
204PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/servrpc.h
205
206$(PROJECT_LIB)/librdbg$(LIB_VARIANT).a: librdbg$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
207        $(INSTALL_DATA) $< $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
208TMPINSTALL_FILES += $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
209endif
210
211if HAS_RDBG
212if HAS_RDBG_powerpc
213$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/powerpc/new_exception_processing/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
214        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
215PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
216
217$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/powerpc/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
218        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
219PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
220
221$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/powerpc/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
222        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
223PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
224endif
225endif
226
227if HAS_RDBG
228if HAS_RDBG_i386
229$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/i386/any/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
230        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
231PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
232
233$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/i386/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
234        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
235PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
236
237$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/i386/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
239PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
240endif
241endif
242
243if HAS_RDBG
244if HAS_RDBG_m68k
245$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/m68k/any/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
246        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
247PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
248
249$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/m68k/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
250        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
251PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
252
253$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/m68k/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
254        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
255PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
256endif
257endif
258
259CLEANFILES += $(PREINSTALL_FILES)
260DISTCLEANFILES = $(PREINSTALL_DIRS)
261CLEANFILES += $(TMPINSTALL_FILES)
262
263include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.