source: rtems/c/src/librdbg/src/powerpc/new_exception_processing/Makefile.am @ 0bc2339

4.104.114.84.95
Last change on this file since 0bc2339 was 0bc2339, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 16, 2003 at 12:29:51 PM

2003-08-16 Ralf Corsepius <corsepiu@…>

Makefile.am: Reflect having moved automake.
include/Makefile.am: Reflect having moved automake.
include/rdbg/Makefile.am: Reflect having moved automake.
include/rdbg/i386/Makefile.am: Reflect having moved automake.
include/rdbg/m68k/Makefile.am: Reflect having moved automake.
include/rdbg/powerpc/Makefile.am: Reflect having moved automake.
src/Makefile.am: Reflect having moved automake.
src/i386/Makefile.am: Reflect having moved automake.
src/i386/any/Makefile.am: Reflect having moved automake.
src/m68k/Makefile.am: Reflect having moved automake.
src/m68k/any/Makefile.am: Reflect having moved automake.
src/powerpc/Makefile.am: Reflect having moved automake.
src/powerpc/new_exception_processing/Makefile.am: Reflect having moved automake.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1##
2##  $Id$
3##
4
5
6VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
7
8RPCCPUDIR = $(RTEMS_CPU)/new_exception_processing
9
10LIBNAME = librdbg
11LIB = ${ARCH}/${LIBNAME}.a
12
13# C and C++ source names
14C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
15    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
16C_O_FILES = $(C_FILES:%.c=${ARCH}/%.$(OBJEXT))
17
18# Asm source names
19S_FILES = rdbg_cpu_asm.S
20S_O_FILES = $(S_FILES:%.S=${ARCH}/%.$(OBJEXT))
21
22# Generated C source names
23GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
24GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.$(OBJEXT))
25
26# H source names
27H_FILES = remdeb.h
28
29# X source names
30X_FILES = remdeb.x remdeb_f.x
31
32OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
33
34MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
35
36include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
37include $(top_srcdir)/automake/compile.am
38include $(top_srcdir)/automake/lib.am
39
40#
41# Add local stuff here using +=
42#
43
44FRONTEND = \"$(RPCCPUDIR)/remdeb_f.x\"
45
46$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
47        $(INSTALL_DATA) $< $@
48
49$(LIB): ${OBJS}
50        $(make-library)
51
52$(srcdir)/remdeb.h: $(X_FILES)
53if RPCTOOLS
54        @rm -f $@
55        ( cd $(top_srcdir)/librdbg/src; \
56        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
57          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
58endif
59$(srcdir)/remdeb_xdr.c: $(X_FILES)
60if RPCTOOLS
61        @rm -f $@
62        ( cd $(top_srcdir)/librdbg/src; \
63        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
64          -o $(RPCCPUDIR)/remdeb_xdr.c remdeb.x )
65endif
66
67$(srcdir)/remdeb_svc.c: $(X_FILES)
68if RPCTOOLS
69        @rm -f $@ tmpSvc.c
70        ( cd $(top_srcdir)/librdbg/src; \
71        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
72          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
73        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
74          > $(RPCCPUDIR)/remdeb_svc.c; \
75        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
76        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
77        rm -f $(RPCCPUDIR)/tmpSvc.c )
78endif
79
80$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
81        $(INSTALL_DATA) $< $@
82
83$(PROJECT_INCLUDE)/rdbg:
84        @$(mkinstalldirs) $@
85
86PREINSTALL_FILES = $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h
87
88TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
89
90all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
91
92EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
93
94include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.