source: rtems/c/src/librdbg/src/i386/any/Makefile.am @ 4e36a2f

4.104.114.84.95
Last change on this file since 4e36a2f was 4e36a2f, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 31, 2000 at 3:27:02 PM

Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@…> that contain:

  • Modifications, (minor) corrections, cleanups to most existing Makefile.ams
  • Adds automake support to all remaining BSPs which have not yet been converted to automake.
  • Makefile.am for all remaining wrapup/Makefile.ams
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
8
9LIBNAME = librdbg
10LIB = ${ARCH}/${LIBNAME}.a
11
12# C and C++ source names
13C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
14    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
15C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
16
17# Asm source names
18S_FILES = rdbg_cpu_asm.S
19S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
20
21# Generated C source names
22GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
23GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.o)
24
25# H source names
26H_FILES = remdeb.h
27
28# X source names
29X_FILES = remdeb.x remdeb_f.x
30
31OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
32
33include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
34include $(top_srcdir)/../../../automake/lib.am
35
36#
37# Add local stuff here using +=
38#
39
40MAINTAINERCLEANFILES += $(H_FILES) $(GEN_C_FILES)
41
42FRONTEND = \"$(RTEMS_CPU)/any/remdeb_f.x\"
43
44$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a: $(LIB)
45        $(INSTALL_DATA) $< $@
46
47$(LIB): ${OBJS}
48        $(make-library)
49
50$(srcdir)/remdeb.h: $(X_FILES)
51if RPCTOOLS
52        @rm -f $@
53        ( cd $(top_srcdir)/src; \
54        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
55          -o i386/any/remdeb.h remdeb.x )
56endif
57$(srcdir)/remdeb_xdr.c: $(X_FILES)
58if RPCTOOLS
59        @rm -f $@
60        ( cd $(top_srcdir)/src; \
61        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
62          -o i386/any/remdeb_xdr.c remdeb.x )
63endif
64
65$(srcdir)/remdeb_svc.c: $(X_FILES)
66if RPCTOOLS
67        @rm -f $@ tmpSvc.c
68        ( cd $(top_srcdir)/src; \
69        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
70          -o i386/any/tmpSvc.c remdeb.x; \
71        $(AWK) -f ./awk.svc THEPROG="remdeb.h" i386/any/tmpSvc.c \
72          > i386/any/remdeb_svc.c; \
73        rm -f i386/any/tmpSvc.c )
74endif
75
76$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
77        $(INSTALL_DATA) $< $@
78
79$(PROJECT_INCLUDE)/rdbg:
80        @$(mkinstalldirs) $@
81
82PREINSTALL_FILES = \
83$(PROJECT_INCLUDE)/rdbg \
84$(PROJECT_INCLUDE)/rdbg/remdeb.h
85
86TMPINSTALL_FILES += \
87$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a
88
89all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
90
91EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
92
93include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.