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

4.104.114.84.9
Last change on this file since cb8e48e was cb8e48e, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 20, 2002 at 2:24:46 PM

2002-03-20 Ralf Corsepius <corsepiu@…>

PR 149

  • src/i386/any/Makefile.am: s/$(SED)/sed/.
  • src/m68k/any/Makefile.am: s/$(SED)/sed/.
  • src/powerpc/new_exception_processing/Makefile.am: s/$(SED)/sed/. (Reported by Till Straumann <strauman@…>)
  • Property mode set to 100644
File size: 2.5 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
8
9LIBNAME = librdbg
10LIB = ${ARCH}/${LIBNAME}.a
11
12# C and C++ source names
13C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
14    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
15C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
16
17# Asm source names
18S_FILES = rdbg_cpu_asm.S
19S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
20
21# Generated C source names
22GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
23GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.o)
24
25# H source names
26H_FILES = remdeb.h
27
28# X source names
29X_FILES = remdeb.x remdeb_f.x
30
31OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
32
33MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
34
35include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
36include $(top_srcdir)/../../../automake/compile.am
37include $(top_srcdir)/../../../automake/lib.am
38
39#
40# Add local stuff here using +=
41#
42
43FRONTEND = \"$(RTEMS_CPU)/new_exception_processing/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)/src; \
55        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
56          -o powerpc/new_exception_processing/remdeb.h remdeb.x )
57endif
58$(srcdir)/remdeb_xdr.c: $(X_FILES)
59if RPCTOOLS
60        @rm -f $@
61        ( cd $(top_srcdir)/src; \
62        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
63          -o powerpc/new_exception_processing/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)/src; \
70        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
71          -o powerpc/new_exception_processing/tmpSvc.c remdeb.x; \
72        $(AWK) -f ./awk.svc THEPROG="remdeb.h" powerpc/new_exception_processing/tmpSvc.c \
73          > powerpc/new_exception_processing/remdeb_svc.c; \
74        sed -e 's/fprintf.*,/printf(/'  powerpc/new_exception_processing/remdeb_svc.c > powerpc/new_exception_processing/remdeb_svc.tmp; \
75        mv powerpc/new_exception_processing/remdeb_svc.tmp powerpc/new_exception_processing/remdeb_svc.c; \
76        rm -f powerpc/new_exception_processing/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.