source: rtems/c/src/librdbg/src/m68k/Makefile.am @ 948c0d2

4.104.114.84.9
Last change on this file since 948c0d2 was 948c0d2, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 21, 2004 at 3:42:50 PM

2004-01-21 Ralf Corsepius <corsepiu@…>

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