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

4.104.114.84.9
Last change on this file since dbba1d6d was dbba1d6d, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 28, 2002 at 12:49:46 AM

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

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