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

4.104.114.84.95
Last change on this file since fc1a3ba was fc1a3ba, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/12/06 at 10:12:31

Remove all-local:.

  • Property mode set to 100644
File size: 6.5 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/compile.am
6
7DISTCLEANFILES =
8CLEANFILES =
9BUILT_SOURCES =
10MAINTAINERCLEANFILES =
11
12## FIXME: This Makefile.am is one blatant ugly HACK
13## May-be this should be put into libcpu?
14
15if HAS_RDBG
16include_rdbgdir = $(includedir)/rdbg
17
18include_rdbg_HEADERS = include/rdbg/rdbg.h include/rdbg/servrpc.h
19
20noinst_LIBRARIES = librdbg.a
21librdbg_a_CPPFLAGS = $(AM_CPPFLAGS)
22librdbg_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
25endif
26
27X_FILES = src/remdeb.x
28EXTRA_DIST = src/remdeb.x
29
30if HAS_RDBG
31if HAS_RDBG_powerpc
32librdbg_a_SOURCES += src/powerpc/excep_f.c src/powerpc/rdbg_f.c \
33    src/powerpc/rdbg_cpu_asm.S
34
35# Generated sources
36librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c
37librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c
38librdbg_a_SOURCES += src/powerpc/new_exception_processing/remdeb.h
39include_rdbg_HEADERS += src/powerpc/new_exception_processing/remdeb.h
40include_rdbg_HEADERS += include/rdbg/powerpc/rdbg_f.h \
41    include/rdbg/powerpc/reg.h
42endif
43endif
44
45# X source names
46EXTRA_DIST += src/powerpc/new_exception_processing/remdeb_f.x
47
48BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb.h
49BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_xdr.c
50BUILT_SOURCES += src/powerpc/new_exception_processing/remdeb_svc.c
51MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_xdr.c
52MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb_svc.c
53MAINTAINERCLEANFILES += src/powerpc/new_exception_processing/remdeb.h
54
55if 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 )
79endif
80
81if HAS_RDBG
82if HAS_RDBG_i386
83librdbg_a_SOURCES += src/i386/excep_f.c src/i386/rdbg_f.c \
84    src/i386/rdbg_cpu_asm.S
85
86# Generated sources
87librdbg_a_SOURCES += src/i386/any/remdeb_xdr.c
88librdbg_a_SOURCES += src/i386/any/remdeb_svc.c
89librdbg_a_SOURCES += src/i386/any/remdeb.h
90include_rdbg_HEADERS += src/i386/any/remdeb.h
91include_rdbg_HEADERS += include/rdbg/i386/rdbg_f.h include/rdbg/i386/reg.h
92endif
93endif
94
95# X source names
96EXTRA_DIST += src/i386/any/remdeb_f.x
97BUILT_SOURCES += src/i386/any/remdeb.h
98BUILT_SOURCES += src/i386/any/remdeb_xdr.c
99BUILT_SOURCES += src/i386/any/remdeb_svc.c
100MAINTAINERCLEANFILES += src/i386/any/remdeb_xdr.c
101MAINTAINERCLEANFILES += src/i386/any/remdeb_svc.c
102MAINTAINERCLEANFILES += src/i386/any/remdeb.h
103
104if 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 )
125endif
126
127if HAS_RDBG
128if HAS_RDBG_m68k
129librdbg_a_SOURCES += src/m68k/excep_f.c src/m68k/rdbg_f.c \
130    src/m68k/rdbg_cpu_asm.S
131
132# Generated sources
133librdbg_a_SOURCES += src/m68k/any/remdeb_xdr.c
134librdbg_a_SOURCES += src/m68k/any/remdeb_svc.c
135librdbg_a_SOURCES += src/m68k/any/remdeb.h
136include_rdbg_HEADERS += src/m68k/any/remdeb.h
137include_rdbg_HEADERS += include/rdbg/m68k/rdbg_f.h include/rdbg/m68k/reg.h
138endif
139endif
140
141# X source names
142EXTRA_DIST += src/m68k/any/remdeb_f.x
143BUILT_SOURCES += src/m68k/any/remdeb.h
144BUILT_SOURCES += src/m68k/any/remdeb_xdr.c
145BUILT_SOURCES += src/m68k/any/remdeb_svc.c
146MAINTAINERCLEANFILES += src/m68k/any/remdeb_xdr.c
147MAINTAINERCLEANFILES += src/m68k/any/remdeb_svc.c
148MAINTAINERCLEANFILES += src/m68k/any/remdeb.h
149
150if 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 )
169endif
170
171EXTRA_DIST += src/awk.svc
172
173include $(srcdir)/preinstall.am
174include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.