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

4.104.114.84.95
Last change on this file since 7ed1e747 was 7ed1e747, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 1, 2003 at 8:39:06 AM

2003-12-01 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Reformat. Apply dirstamps to preinstallation.
  • include/Makefile.am: Ditto.
  • include/rdbg/Makefile.am: Ditto.
  • include/rdbg/i386/Makefile.am: Ditto.
  • include/rdbg/m68k/Makefile.am: Ditto.
  • include/rdbg/powerpc/Makefile.am: Ditto:
  • src/Makefile.am: Ditto.
  • src/i386/Makefile.am: Ditto.
  • src/i386/any/Makefile.am: Ditto.
  • src/m68k/Makefile.am: Ditto.
  • src/m68k/any/Makefile.am: Ditto.
  • src/powerpc/Makefile.am: Ditto.
  • src/powerpc/new_exception_processing/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1##
2##  $Id$
3##
4
5VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
6
7RPCCPUDIR = $(RTEMS_CPU)/new_exception_processing
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}/%.$(OBJEXT))
16
17# Asm source names
18S_FILES = rdbg_cpu_asm.S
19S_O_FILES = $(S_FILES:%.S=${ARCH}/%.$(OBJEXT))
20
21# Generated C source names
22GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
23GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.$(OBJEXT))
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 $(top_srcdir)/automake/compile.am
36include $(top_srcdir)/automake/lib.am
37
38#
39# Add local stuff here using +=
40#
41
42FRONTEND = \"$(RPCCPUDIR)/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)/librdbg/src; \
54        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
55          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
56endif
57$(srcdir)/remdeb_xdr.c: $(X_FILES)
58if RPCTOOLS
59        @rm -f $@
60        ( cd $(top_srcdir)/librdbg/src; \
61        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
62          -o $(RPCCPUDIR)/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)/librdbg/src; \
69        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
70          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
71        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
72          > $(RPCCPUDIR)/remdeb_svc.c; \
73        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
74        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
75        rm -f $(RPCCPUDIR)/tmpSvc.c )
76endif
77
78include_rdbgdir = $(includedir)/rdbg
79include_rdbg_HEADERS = $(srcdir)/remdeb.h
80
81TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
82
83all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
84
85EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
86
87PREINSTALL_FILES =
88
89$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
90        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rdbg
91        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
92PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
93
94$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
95        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
96PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
97
98include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.