source: rtems/c/src/librdbg/src/powerpc/mcp750/Makefile.am @ 7d91d72

4.104.114.84.95
Last change on this file since 7d91d72 was 4090ebe, checked in by Joel Sherrill <joel.sherrill@…>, on 12/03/99 at 13:25:00

Patch rtems-rc-19991123-rc-3.diff from Ralf Corsepius
<corsepiu@…>:

The patch below provides

  • automake support for score/cpu/powerpc
  • The hack to propagate values from *.cfg to automake configuration
  • A fix for librdbg/powerpc/mcp750/Makefile.am (Was completely corrupted before)
  • Fixes some files which apparently where missing in rtems-rc-19991123-rc-2.diff
  • some minor configuration related patches

To apply:

rm -rf ./c/src/exec/score/cpu/powerpc/wrap
patch -p1 < rtems-rc-19991123-rc-3.diff

Attention:

c/src/exec/score/cpu/[configure.in|aclocal.m4|configure] should be
removed after applying the patch.

Modifications had been made to the score/cpu/powerpc directory after
the snapshot this was based on. In particular, the mpc750 and
other_cpu directories had been renamed to new_exception_processing
and old_exception_processing. After this patch was applied, modifications
were made to account for this.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../..
9subdir = src/powerpc/mcp750
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
15
16LIBNAME = librdbg.a
17LIB = ${ARCH}/${LIBNAME}
18
19# C and C++ source names, if any, go here -- minus the .c or .cc
20C_PIECES = rdbg servcon servbkpt servrpc excep excep_f servtgt servtsp \
21    servutil _servtgt rdbg_f ptrace
22C_FILES = $(C_PIECES:%=%.c)
23C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
24
25# Asm source names, if any, go here -- minus the .s
26S_PIECES = rdbg_cpu_asm
27S_FILES = $(S_PIECES:%=%.S)
28S_O_FILES = $(S_PIECES:%=${ARCH}/%.o)
29
30# Generated C source names, if any, go here -- minus the .c
31GEN_C_PIECES = remdeb_xdr remdeb_svc
32GEN_C_FILES = $(GEN_C_PIECES:%=%.c)
33GEN_C_O_FILES = $(GEN_C_PIECES:%=${ARCH}/%.o)
34
35# H source names, if any, go here -- minus the .h
36H_PIECES = remdeb
37H_FILES = $(H_PIECES:%=%.h)
38
39# X source names
40X_FILES = remdeb.x remdeb_f.x
41
42SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES)
43OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
44
45RPCGEN = @RPCGEN@
46AWK = @AWK@
47
48include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
49include $(top_srcdir)/../../../automake/lib.am
50
51PREINSTALL_FILES = \
52$(PROJECT_INCLUDE)/rdbg \
53$(PROJECT_INCLUDE)/rdbg/remdeb.h
54
55$(PROJECT_INCLUDE)/rdbg:
56        @$(mkinstalldirs) $@
57
58TMPINSTALL_FILES += \
59$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a
60
61#
62# Add local stuff here using +=
63#
64
65#
66# Add your list of files to delete here.  The config files
67#  already know how to delete some stuff, so you may want
68#  to just run 'make clean' first to see what gets missed.
69#  'make clobber' already includes 'make clean'
70#
71
72CLEANFILES += $(LIB) $(H_FILES) $(GEN_C_FILES)
73
74FRONTEND = \"$(RTEMS_CPU)/@RTEMS_BSP@/remdeb_f.x\"
75
76$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a: $(LIB)
77        $(INSTALL_DATA) $< $@
78
79all: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
80
81$(LIB): ${OBJS}
82        $(make-library)
83
84remdeb.h: $(X_FILES)
85        @rm -f $@
86        ( pwd=`pwd`; cd $(srcdir)/../..; \
87        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
88          -o $$pwd/$@ remdeb.x )
89
90$(PROJECT_INCLUDE)/rdbg/remdeb.h: remdeb.h
91        $(INSTALL_DATA) $< $@
92
93remdeb_xdr.c: $(X_FILES)
94        @rm -f $@
95        ( pwd=`pwd`; cd $(srcdir)/../..; \
96        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
97          -o $$pwd/$@ remdeb.x )
98
99remdeb_svc.c: $(X_FILES)
100        @rm -f $@ tmpSvc.c
101        ( pwd=`pwd`; cd $(srcdir)/../..; \
102        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
103          -o $$pwd/tmpSvc.c remdeb.x )
104        $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
105        @rm -f tmpSvc.c
106
107EXTRA_DIST = remdeb_f.x
108
109include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.