source: rtems/c/src/librdbg/src/powerpc/new_exception_processing/Makefile.am @ 46d6d648

4.104.114.84.95
Last change on this file since 46d6d648 was 46d6d648, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 22, 2003 at 3:02:00 AM

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

  • src/i386/any/Makefile.am, src/m68k/any/Makefile.am, src/powerpc/new_exception_processing/Makefile.am: Don't include @RTEMS_BSP@.cfg.
  • Property mode set to 100644
File size: 2.2 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 $(top_srcdir)/automake/compile.am
37include $(top_srcdir)/automake/lib.am
38
39#
40# Add local stuff here using +=
41#
42
43FRONTEND = \"$(RPCCPUDIR)/remdeb_f.x\"
44
45$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
46        $(INSTALL_DATA) $< $@
47
48$(LIB): ${OBJS}
49        $(make-library)
50
51$(srcdir)/remdeb.h: $(X_FILES)
52if RPCTOOLS
53        @rm -f $@
54        ( cd $(top_srcdir)/librdbg/src; \
55        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
56          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
57endif
58$(srcdir)/remdeb_xdr.c: $(X_FILES)
59if RPCTOOLS
60        @rm -f $@
61        ( cd $(top_srcdir)/librdbg/src; \
62        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
63          -o $(RPCCPUDIR)/remdeb_xdr.c remdeb.x )
64endif
65
66$(srcdir)/remdeb_svc.c: $(X_FILES)
67if RPCTOOLS
68        @rm -f $@ tmpSvc.c
69        ( cd $(top_srcdir)/librdbg/src; \
70        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
71          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
72        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
73          > $(RPCCPUDIR)/remdeb_svc.c; \
74        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
75        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
76        rm -f $(RPCCPUDIR)/tmpSvc.c )
77endif
78
79$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
80        $(INSTALL_DATA) $< $@
81
82$(PROJECT_INCLUDE)/rdbg:
83        @$(mkinstalldirs) $@
84
85PREINSTALL_FILES = $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h
86
87TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
88
89all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
90
91EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
92
93include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.