source: rtems/c/src/librdbg/src/powerpc/Makefile.am @ 7597ba1a

4.104.114.84.95
Last change on this file since 7597ba1a was 7597ba1a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 13, 2003 at 5:23:34 AM

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

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