source: rtems/c/src/librdbg/Makefile.am @ fcf0034

4.104.114.84.95
Last change on this file since fcf0034 was fcf0034, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 20, 2004 at 1:11:53 AM

2004-02-20 Ralf Corsepius <corsepiu@…>

  • libchip/Makefile.am, librdbg/Makefile.am, optman/Makefile.am, wrapup/Makefile.am: Fix automake problems having been introduced in previous patch.
  • Property mode set to 100644
File size: 9.5 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
64src/powerpc/new_exception_processing/remdeb.h: $(X_FILES) \
65    src/powerpc/new_exception_processing/remdeb_f.x
66        @rm -f $@
67        ( cd $(top_srcdir)/librdbg/src; \
68        $(RPCGEN) -h -DFRONTEND=\"src/powerpc/new_exception_processing/remdeb_f.x\" \
69          -o src/powerpc/new_exception_processing/remdeb.h remdeb.x )
70
71src/powerpc/new_exception_processing/remdeb_xdr.c: $(X_FILES) \
72   src/powerpc/new_exception_processing/remdeb_f.x
73        @rm -f $@
74        ( cd $(top_srcdir)/librdbg/src; \
75        $(RPCGEN) -c -DFRONTEND=\"src/powerpc/new_exception_processing/remdeb_f.x\" \
76          -o src/powerpc/new_exception_processing/remdeb_xdr.c remdeb.x )
77
78src/powerpc/new_exception_processing/remdeb_svc.c: $(X_FILES) \
79   src/powerpc/new_exception_processing/remdeb_f.x
80        @rm -f $@ tmpSvc.c
81        ( cd $(top_srcdir)/librdbg/src; \
82        $(RPCGEN) -m -DFRONTEND=\"src/powerpc/new_exception_processing/remdeb_f.x\" \
83          -o src/powerpc/new_exception_processing/tmpSvc.c remdeb.x; \
84        $(AWK) -f ./awk.svc THEPROG="remdeb.h" src/powerpc/new_exception_processing/tmpSvc.c \
85          > src/powerpc/new_exception_processing/remdeb_svc.c; \
86        sed -e 's/fprintf.*,/printf(/'  src/powerpc/new_exception_processing/remdeb_svc.c > src/powerpc/new_exception_processing/remdeb_svc.tmp; \
87        mv src/powerpc/new_exception_processing/remdeb_svc.tmp src/powerpc/new_exception_processing/remdeb_svc.c; \
88        rm -f src/powerpc/new_exception_processing/tmpSvc.c )
89endif
90
91if HAS_RDBG
92if HAS_RDBG_i386
93librdbg_a_SOURCES += src/i386/excep_f.c src/i386/rdbg_f.c \
94    src/i386/rdbg_cpu_asm.S
95
96# Generated sources
97librdbg_a_SOURCES += src/i386/any/remdeb_xdr.c
98librdbg_a_SOURCES += src/i386/any/remdeb_svc.c
99librdbg_a_SOURCES += src/i386/any/remdeb.h
100include_rdbg_HEADERS += src/i386/any/remdeb.h
101include_rdbg_HEADERS += include/rdbg/i386/rdbg_f.h include/rdbg/i386/reg.h
102endif
103endif
104
105# X source names
106EXTRA_DIST += src/i386/any/remdeb_f.x
107BUILT_SOURCES += src/i386/any/remdeb.h
108BUILT_SOURCES += src/i386/any/remdeb_xdr.c
109BUILT_SOURCES += src/i386/any/remdeb_svc.c
110MAINTAINERCLEANFILES += src/i386/any/remdeb_xdr.c
111MAINTAINERCLEANFILES += src/i386/any/remdeb_svc.c
112MAINTAINERCLEANFILES += src/i386/any/remdeb.h
113
114if RPCTOOLS
115src/i386/any/remdeb.h: $(X_FILES) src/i386/any/remdeb_f.x
116        @rm -f $@
117        ( cd $(top_srcdir)/librdbg/src; \
118        $(RPCGEN) -h -DFRONTEND=\"src/i386/any/remdeb_f.x\" \
119          -o src/i386/any/remdeb.h remdeb.x )
120
121src/i386/any/remdeb_xdr.c: $(X_FILES) src/i386/any/remdeb_f.x
122        @rm -f $@
123        ( cd $(top_srcdir)/librdbg/src; \
124        $(RPCGEN) -c -DFRONTEND=\"src/i386/any/remdeb_f.x\" \
125          -o src/i386/any/remdeb_xdr.c remdeb.x )
126
127src/i386/any/remdeb_svc.c: $(X_FILES) src/i386/any/remdeb_f.x
128        @rm -f $@ tmpSvc.c
129        ( cd $(top_srcdir)/librdbg/src; \
130        $(RPCGEN) -m -DFRONTEND=\"src/i386/any/remdeb_f.x\" \
131          -o src/i386/any/tmpSvc.c remdeb.x; \
132        $(AWK) -f ./awk.svc THEPROG="remdeb.h" src/i386/any/tmpSvc.c \
133          > src/i386/any/remdeb_svc.c; \
134        sed -e 's/fprintf.*,/printf(/'  src/i386/any/remdeb_svc.c > src/i386/any/remdeb_svc.tmp; \
135        mv src/i386/any/remdeb_svc.tmp src/i386/any/remdeb_svc.c; \
136        rm -f src/i386/any/tmpSvc.c )
137endif
138
139if HAS_RDBG
140if HAS_RDBG_m68k
141librdbg_a_SOURCES += src/m68k/excep_f.c src/m68k/rdbg_f.c \
142    src/m68k/rdbg_cpu_asm.S
143
144# Generated sources
145librdbg_a_SOURCES += src/m68k/any/remdeb_xdr.c
146librdbg_a_SOURCES += src/m68k/any/remdeb_svc.c
147librdbg_a_SOURCES += src/m68k/any/remdeb.h
148include_rdbg_HEADERS += src/m68k/any/remdeb.h
149include_rdbg_HEADERS += include/rdbg/m68k/rdbg_f.h include/rdbg/m68k/reg.h
150endif
151endif
152
153# X source names
154EXTRA_DIST += src/m68k/any/remdeb_f.x
155BUILT_SOURCES += src/m68k/any/remdeb.h
156BUILT_SOURCES += src/m68k/any/remdeb_xdr.c
157BUILT_SOURCES += src/m68k/any/remdeb_svc.c
158MAINTAINERCLEANFILES += src/m68k/any/remdeb_xdr.c
159MAINTAINERCLEANFILES += src/m68k/any/remdeb_svc.c
160MAINTAINERCLEANFILES += src/m68k/any/remdeb.h
161
162if RPCTOOLS
163src/m68k/any/remdeb.h: $(X_FILES) src/m68k/any/remdeb_f.x
164        @rm -f $@
165        ( cd $(top_srcdir)/librdbg/src; \
166        $(RPCGEN) -h -DFRONTEND=\"src/m68k/any/remdeb_f.x\" \
167          -o src/m68k/any/remdeb.h remdeb.x )
168src/m68k/any/remdeb_xdr.c: $(X_FILES) src/m68k/any/remdeb_f.x
169        @rm -f $@
170        ( cd $(top_srcdir)/librdbg/src; \
171        $(RPCGEN) -c -DFRONTEND=\"src/m68k/any/remdeb_f.x\" \
172          -o src/m68k/any/remdeb_xdr.c remdeb.x )
173src/m68k/any/remdeb_svc.c: $(X_FILES) src/m68k/any/remdeb_f.x
174        @rm -f $@ tmpSvc.c
175        ( cd $(top_srcdir)/librdbg/src; \
176        $(RPCGEN) -m -DFRONTEND=\"src/m68k/any/remdeb_f.x\" \
177          -o src/m68k/any/tmpSvc.c remdeb.x; \
178        $(AWK) -f ./awk.svc THEPROG="remdeb.h" src/m68k/any/tmpSvc.c \
179          > src/m68k/any/remdeb_svc.c; \
180        sed -e 's/fprintf.*,/printf(/'  src/m68k/any/remdeb_svc.c > src/m68k/any/remdeb_svc.tmp; \
181        mv src/m68k/any/remdeb_svc.tmp src/m68k/any/remdeb_svc.c; \
182        rm -f src/m68k/any/tmpSvc.c )
183endif
184
185EXTRA_DIST += src/awk.svc
186
187all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
188
189PREINSTALL_DIRS =
190PREINSTALL_FILES =
191TMPINSTALL_FILES =
192
193$(PROJECT_LIB)/$(dirstamp):
194        @$(mkdir_p) $(PROJECT_LIB)
195        @: > $(PROJECT_LIB)/$(dirstamp)
196TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
197
198if HAS_RDBG
199$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
200        @$(mkdir_p) $(PROJECT_INCLUDE)/rdbg
201        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
202PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
203
204$(PROJECT_INCLUDE)/rdbg/rdbg.h: include/rdbg/rdbg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
205        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg.h
206PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg.h
207
208$(PROJECT_INCLUDE)/rdbg/servrpc.h: include/rdbg/servrpc.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
209        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/servrpc.h
210PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/servrpc.h
211
212$(PROJECT_LIB)/librdbg$(LIB_VARIANT).a: librdbg$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
213        $(INSTALL_DATA) $< $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
214TMPINSTALL_FILES += $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
215endif
216
217if HAS_RDBG
218if HAS_RDBG_powerpc
219$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/powerpc/new_exception_processing/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
220        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
221PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
222
223$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/powerpc/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
224        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
225PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
226
227$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/powerpc/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
228        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
229PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
230endif
231endif
232
233if HAS_RDBG
234if HAS_RDBG_i386
235$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/i386/any/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
236        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
237PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
238
239$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/i386/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
240        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
241PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
242
243$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/i386/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
244        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
245PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
246endif
247endif
248
249if HAS_RDBG
250if HAS_RDBG_m68k
251$(PROJECT_INCLUDE)/rdbg/remdeb.h: src/m68k/any/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
252        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
253PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
254
255$(PROJECT_INCLUDE)/rdbg/rdbg_f.h: include/rdbg/m68k/rdbg_f.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
256        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
257PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/rdbg_f.h
258
259$(PROJECT_INCLUDE)/rdbg/reg.h: include/rdbg/m68k/reg.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
260        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/reg.h
261PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/reg.h
262endif
263endif
264
265CLEANFILES += $(PREINSTALL_FILES)
266DISTCLEANFILES = $(PREINSTALL_DIRS)
267CLEANFILES += $(TMPINSTALL_FILES)
268
269include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.