source: rtems/c/src/librdbg/src/i386/any/Makefile.am @ 39e6bbe1

4.104.114.84.95
Last change on this file since 39e6bbe1 was 39e6bbe1, checked in by Joel Sherrill <joel.sherrill@…>, on 12/06/99 at 13:44:56

Patch patches-rc-19991203-1.diff from Ralf Corsepius <corsepiu@…>
which makes i386 code available for all BSPs not just pc386. This is correct
since the code is really general to all i386 BSPs now.

  • Property mode set to 100644
File size: 2.3 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, if any, go here -- minus the .c or .cc
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, if any, go here -- minus the .s
18S_FILES = rdbg_cpu_asm.S
19S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
20
21# Generated C source names, if any, go here -- minus the .c
22GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
23GEN_C_O_FILES = $(GEN_C_PIECES:%.c=${ARCH}/%.o)
24
25# H source names, if any, go here -- minus the .h
26H_FILES = remdeb.h
27
28# X source names
29X_FILES = remdeb.x remdeb_f.x
30
31SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES)
32OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
33
34RPCGEN = @RPCGEN@
35AWK = @AWK@
36
37include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
38include $(top_srcdir)/../../../automake/lib.am
39
40PREINSTALL_FILES = \
41$(PROJECT_INCLUDE)/rdbg \
42$(PROJECT_INCLUDE)/rdbg/remdeb.h
43
44$(PROJECT_INCLUDE)/rdbg:
45        @$(mkinstalldirs) $@
46
47TMPINSTALL_FILES += \
48$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a
49
50#
51# Add local stuff here using +=
52#
53
54#
55# Add your list of files to delete here.  The config files
56#  already know how to delete some stuff, so you may want
57#  to just run 'make clean' first to see what gets missed.
58#  'make clobber' already includes 'make clean'
59#
60
61CLEANFILES += $(LIB) $(H_FILES) $(GEN_C_FILES)
62
63FRONTEND = \"$(RTEMS_CPU)/any/remdeb_f.x\"
64
65$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIBVARIANT).a: $(LIB)
66        $(INSTALL_DATA) $< $@
67
68all: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
69
70$(LIB): ${OBJS}
71        $(make-library)
72
73remdeb.h: $(X_FILES)
74        @rm -f $@
75        ( pwd=`pwd`; cd $(srcdir)/../..; \
76        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
77          -o $$pwd/$@ remdeb.x )
78
79$(PROJECT_INCLUDE)/rdbg/remdeb.h: remdeb.h
80        $(INSTALL_DATA) $< $@
81
82remdeb_xdr.c: $(X_FILES)
83        @rm -f $@
84        ( pwd=`pwd`; cd $(srcdir)/../..; \
85        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
86          -o $$pwd/$@ remdeb.x )
87
88remdeb_svc.c: $(X_FILES)
89        @rm -f $@ tmpSvc.c
90        ( pwd=`pwd`; cd $(srcdir)/../..; \
91        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
92          -o $$pwd/tmpSvc.c remdeb.x )
93        $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
94        @rm -f tmpSvc.c
95
96EXTRA_DIST = remdeb_f.x
97
98include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.