source: rtems/c/src/librdbg/src/powerpc/Makefile.am @ 6436254a

4.104.114.84.95
Last change on this file since 6436254a was 97380b4, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/09/04 at 14:52:00

2004-02-09 Ralf Corsepius <corsepiu@…>

  • libchip/Makefile.am: Don't include lib.am.
  • librdbg/src/i386/Makefile.am, librdbg/src/m68k/Makefile.am, librdbg/src/powerpc/Makefile.am: Don't include lib.am. Remove unnecessary EXTRA_DISTs.
  • Property mode set to 100644
File size: 3.0 KB
Line 
1##
2## $Id$
3##
4
5RPCCPUDIR = $(RTEMS_CPU)/new_exception_processing
6
7EXTRA_LIBRARIES = librdbg.a
8CLEANFILES = librdbg.a
9librdbg_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
10
11EXTRA_LIBRARIES += librdbg_g.a
12CLEANFILES += librdbg_g.a
13librdbg_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
14librdbg_g_a_SOURCES = $(librdbg_a_SOURCES)
15
16project_lib_DATA = librdbg$(LIB_VARIANT).a
17
18librdbg_a_SOURCES = excep_f.c rdbg_f.c
19
20librdbg_a_SOURCES += ../rdbg.c ../servcon.c ../servbkpt.c ../servrpc.c \
21    ../excep.c ../servtgt.c ../servtsp.c ../servutil.c ../_servtgt.c \
22    ../ptrace.c
23
24# Asm source names
25librdbg_a_SOURCES += rdbg_cpu_asm.S
26
27# Generated C source names
28librdbg_a_SOURCES += new_exception_processing/remdeb_xdr.c \
29    new_exception_processing/remdeb_svc.c
30
31# H source names
32H_FILES = new_exception_processing/remdeb.h
33
34# X source names
35X_FILES = ../remdeb.x new_exception_processing/remdeb_f.x
36
37MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
38
39include $(top_srcdir)/automake/compile.am
40
41FRONTEND = \"$(RPCCPUDIR)/remdeb_f.x\"
42
43$(srcdir)/new_exception_processing/remdeb.h: $(X_FILES)
44if RPCTOOLS
45        @rm -f $@
46        ( cd $(top_srcdir)/librdbg/src; \
47        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
48          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
49endif
50$(srcdir)/new_exception_processing/remdeb_xdr.c: $(X_FILES)
51if RPCTOOLS
52        @rm -f $@
53        ( cd $(top_srcdir)/librdbg/src; \
54        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
55          -o $(RPCCPUDIR)/remdeb_xdr.c remdeb.x )
56endif
57
58$(srcdir)/new_exception_processing/remdeb_svc.c: $(X_FILES)
59if RPCTOOLS
60        @rm -f $@ tmpSvc.c
61        ( cd $(top_srcdir)/librdbg/src; \
62        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
63          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
64        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
65          > $(RPCCPUDIR)/remdeb_svc.c; \
66        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
67        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
68        rm -f $(RPCCPUDIR)/tmpSvc.c )
69endif
70
71include_rdbgdir = $(includedir)/rdbg
72include_rdbg_HEADERS = $(srcdir)/new_exception_processing/remdeb.h
73
74all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
75
76EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
77
78PREINSTALL_DIRS =
79PREINSTALL_FILES =
80TMPINSTALL_FILES =
81
82$(PROJECT_LIB)/$(dirstamp):
83        @$(mkdir_p) $(PROJECT_LIB)
84        @: > $(PROJECT_LIB)/$(dirstamp)
85TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
86
87$(PROJECT_LIB)/librdbg$(LIB_VARIANT).a: librdbg$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
89TMPINSTALL_FILES += $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
90
91$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
92        @$(mkdir_p) $(PROJECT_INCLUDE)/rdbg
93        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
94PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
95
96$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/new_exception_processing/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
99
100CLEANFILES += $(PREINSTALL_FILES)
101DISTCLEANFILES = $(PREINSTALL_DIRS)
102CLEANFILES += $(TMPINSTALL_FILES)
103
104include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.