source: rtems/c/src/librdbg/src/m68k/Makefile.am @ 97380b4

4.104.114.84.9
Last change on this file since 97380b4 was 97380b4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 9, 2004 at 2:52:00 PM

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