source: rtems/c/src/librdbg/src/m68k/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: 2.9 KB
Line 
1##
2## $Id$
3##
4
5EXTRA_DIST = excep_f.c rdbg_cpu_asm.S rdbg_f.c
6
7RPCCPUDIR = $(RTEMS_CPU)/any
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 = any/remdeb_xdr.c
28GEN_C_FILES += any/remdeb_svc.c
29C_O_FILES += $(GEN_C_FILES:any/%.c=$(ARCH)/%.$(OBJEXT))
30
31${ARCH}/%.o: any/%.c $(ARCH)/$(dirstamp)
32        ${COMPILE} -o $@ -c $<
33
34# H source names
35H_FILES = any/remdeb.h
36
37# X source names
38X_FILES = ../remdeb.x any/remdeb_f.x
39
40OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
41
42MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
43
44include $(top_srcdir)/automake/compile.am
45include $(top_srcdir)/automake/lib.am
46
47#
48# Add local stuff here using +=
49#
50
51FRONTEND = \"$(RPCCPUDIR)/remdeb_f.x\"
52
53$(ARCH)/librdbg$(LIB_VARIANT).a: ${OBJS}
54        $(make-library)
55
56$(srcdir)/any/remdeb.h: $(X_FILES)
57if RPCTOOLS
58        @rm -f $@
59        ( cd $(top_srcdir)/librdbg/src; \
60        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
61          -o $(RPCCPUDIR)/remdeb.h remdeb.x )
62endif
63$(srcdir)/any/remdeb_xdr.c: $(X_FILES)
64if RPCTOOLS
65        @rm -f $@
66        ( cd $(top_srcdir)/librdbg/src; \
67        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
68          -o $(RPCCPUDIR)/remdeb_xdr.c remdeb.x )
69endif
70
71$(srcdir)/any/remdeb_svc.c: $(X_FILES)
72if RPCTOOLS
73        @rm -f $@ tmpSvc.c
74        ( cd $(top_srcdir)/librdbg/src; \
75        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
76          -o $(RPCCPUDIR)/tmpSvc.c remdeb.x; \
77        $(AWK) -f ./awk.svc THEPROG="remdeb.h" $(RPCCPUDIR)/tmpSvc.c \
78          > $(RPCCPUDIR)/remdeb_svc.c; \
79        sed -e 's/fprintf.*,/printf(/'  $(RPCCPUDIR)/remdeb_svc.c > $(RPCCPUDIR)/remdeb_svc.tmp; \
80        mv $(RPCCPUDIR)/remdeb_svc.tmp $(RPCCPUDIR)/remdeb_svc.c; \
81        rm -f $(RPCCPUDIR)/tmpSvc.c )
82endif
83
84include_rdbgdir = $(includedir)/rdbg
85include_rdbg_HEADERS = $(srcdir)/any/remdeb.h
86
87all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
88
89EXTRA_DIST += remdeb_f.x $(GEN_C_FILES)
90
91PREINSTALL_FILES =
92
93$(PROJECT_LIB)/$(dirstamp):
94        @$(mkdir_p) $(PROJECT_LIB)
95        @: > $(PROJECT_LIB)/$(dirstamp)
96
97$(PROJECT_LIB)/librdbg$(LIB_VARIANT).a: $(ARCH)/librdbg$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
98        $(INSTALL_DATA) $< $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
99TMPINSTALL_FILES += $(PROJECT_LIB)/librdbg$(LIB_VARIANT).a
100
101$(PROJECT_INCLUDE)/rdbg/$(dirstamp):
102        @$(mkdir_p) $(PROJECT_INCLUDE)/rdbg
103        @: > $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
104
105$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/any/remdeb.h $(PROJECT_INCLUDE)/rdbg/$(dirstamp)
106        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rdbg/remdeb.h
107PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg/remdeb.h
108
109include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.