source: rtems/c/src/librdbg/src/powerpc/Makefile.am @ 948c0d2

4.104.114.84.95
Last change on this file since 948c0d2 was 948c0d2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/21/04 at 15:42:50

2004-01-21 Ralf Corsepius <corsepiu@…>

  • include/rdbg/Makefile.am: Add PREINSTALL_DIRS.
  • include/rdbg/i386/Makefile.am: Add PREINSTALL_DIRS.
  • include/rdbg/m68k/Makefile.am: Add PREINSTALL_DIRS.
  • include/rdbg/powerpc/Makefile.am: Add PREINSTALL_DIRS.
  • src/i386/Makefile.am: Add PREINSTALL_DIRS.
  • src/m68k/Makefile.am: Add PREINSTALL_DIRS.
  • src/powerpc/Makefile.am: Add PREINSTALL_DIRS.
  • Property mode set to 100644
File size: 3.1 KB
Line 
1##
2## $Id$
3##
4
5EXTRA_DIST = excep_f.c rdbg_cpu_asm.S rdbg_f.c
6
7RPCCPUDIR = $(RTEMS_CPU)/new_exception_processing
8
9EXTRA_LIBRARIES = librdbg.a
10CLEANFILES = librdbg.a
11librdbg_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
12
13EXTRA_LIBRARIES += librdbg_g.a
14CLEANFILES += librdbg_g.a
15librdbg_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
16librdbg_g_a_SOURCES = $(librdbg_a_SOURCES)
17
18project_lib_DATA = librdbg$(LIB_VARIANT).a
19
20librdbg_a_SOURCES = excep_f.c rdbg_f.c
21
22librdbg_a_SOURCES += ../rdbg.c ../servcon.c ../servbkpt.c ../servrpc.c \
23    ../excep.c ../servtgt.c ../servtsp.c ../servutil.c ../_servtgt.c \
24    ../ptrace.c
25
26# Asm source names
27librdbg_a_SOURCES += rdbg_cpu_asm.S
28
29# Generated C source names
30librdbg_a_SOURCES += new_exception_processing/remdeb_xdr.c \
31    new_exception_processing/remdeb_svc.c
32
33# H source names
34H_FILES = new_exception_processing/remdeb.h
35
36# X source names
37X_FILES = ../remdeb.x new_exception_processing/remdeb_f.x
38
39MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
40
41include $(top_srcdir)/automake/compile.am
42include $(top_srcdir)/automake/lib.am
43
44FRONTEND = \"$(RPCCPUDIR)/remdeb_f.x\"
45
46$(srcdir)/new_exception_processing/remdeb.h: $(X_FILES)
47if RPCTOOLS
48        @rm -f $@
49        ( cd $(top_srcdir)/librdbg/src; \
50        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
51          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
52endif
53$(srcdir)/new_exception_processing/remdeb_xdr.c: $(X_FILES)
54if RPCTOOLS
55        @rm -f $@
56        ( cd $(top_srcdir)/librdbg/src; \
57        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
58          -o $(RPCCPUDIR)/remdeb_xdr.c remdeb.x )
59endif
60
61$(srcdir)/new_exception_processing/remdeb_svc.c: $(X_FILES)
62if RPCTOOLS
63        @rm -f $@ tmpSvc.c
64        ( cd $(top_srcdir)/librdbg/src; \
65        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
66          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
67        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
68          > $(RPCCPUDIR)/remdeb_svc.c; \
69        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
70        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
71        rm -f $(RPCCPUDIR)/tmpSvc.c )
72endif
73
74include_rdbgdir = $(includedir)/rdbg
75include_rdbg_HEADERS = $(srcdir)/new_exception_processing/remdeb.h
76
77all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
78
79EXTRA_DIST += remdeb_f.x $(GEN_C_FILES)
80
81PREINSTALL_DIRS =
82PREINSTALL_FILES =
83TMPINSTALL_FILES =
84
85$(PROJECT_LIB)/$(dirstamp):
86        @$(mkdir_p) $(PROJECT_LIB)
87        @: > $(PROJECT_LIB)/$(dirstamp)
88TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
89
90$(PROJECT_LIB)/librdbg$(LIB_VARIANT).a: librdbg$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
91        $(INSTALL_DATA) $< $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
92TMPINSTALL_FILES += $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
93
94$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
95        @$(mkdir_p) $(PROJECT_INCLUDE)/rdbg
96        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
97PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
98
99$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/new_exception_processing/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
102
103CLEANFILES += $(PREINSTALL_FILES)
104DISTCLEANFILES = $(PREINSTALL_DIRS)
105CLEANFILES += $(TMPINSTALL_FILES)
106
107include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.