source: rtems/c/src/librdbg/src/i386/pc386/Makefile.in @ 981b99f

4.104.114.84.95
Last change on this file since 981b99f was 981b99f, checked in by Joel Sherrill <joel.sherrill@…>, on 08/10/99 at 16:41:44

Patch from Eric Valette <valette@…> and Emmanuel Raguet
<raguet@…>:

  • the dec21140 driver code has been hardened (various bug fixed) Emmanuel,
  • bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V)
  • remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V),
  • exception handling code has also been improved in order to fully support RDBG requirements (Eric V),
  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../..
9subdir = librdbg/i386/pc386
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
15
16LIBNAME = librdbg.a
17LIB = ${ARCH}/${LIBNAME}
18
19# C and C++ source names, if any, go here -- minus the .c or .cc
20C_PIECES = rdbg servcon servbkpt servrpc excep excep_f \
21        servtgt servtsp servutil _servtgt rdbg_f \
22        ptrace
23 
24C_FILES = $(C_PIECES:%=%.c)
25C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
26
27# Asm source names, if any, go here -- minus the .s
28S_PIECES = rdbg_cpu_asm
29S_FILES = $(S_PIECES:%=%.S)
30S_O_FILES = $(S_PIECES:%=${ARCH}/%.o)
31
32# Generated C source names, if any, go here -- minus the .c
33GEN_C_PIECES = remdeb_xdr remdeb_svc
34GEN_C_FILES = $(GEN_C_PIECES:%=%.c)
35GEN_C_O_FILES = $(GEN_C_PIECES:%=${ARCH}/%.o)
36
37# H source names, if any, go here -- minus the .h
38H_PIECES = remdeb
39H_FILES = $(H_PIECES:%=%.h)
40
41# X source names
42X_FILES = remdeb.x remdeb_f.x
43
44SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES)
45OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
46
47RPCGEN = @RPCGEN@
48AWK = @AWK@
49
50include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
51include $(RTEMS_ROOT)/make/lib.cfg
52
53INSTALL_CHANGE = @INSTALL_CHANGE@
54mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
55
56INSTALLDIRS = $(PROJECT_INCLUDE)/rdbg
57
58$(INSTALLDIRS):
59        @$(mkinstalldirs) $(INSTALLDIRS)
60
61#
62# Add local stuff here using +=
63#
64
65DEFINES +=
66CPPFLAGS +=
67CFLAGS +=
68
69#
70# Add your list of files to delete here.  The config files
71#  already know how to delete some stuff, so you may want
72#  to just run 'make clean' first to see what gets missed.
73#  'make clobber' already includes 'make clean'
74#
75
76CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(GEN_C_FILES)
77CLOBBER_ADDITIONS +=
78
79FRONTEND = \"$(RTEMS_CPU)/@RTEMS_BSP@/remdeb_f.x\"
80
81all: ${ARCH} $(LIB)
82        @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
83
84$(LIB): $(SRCS) ${OBJS}
85        $(make-library)
86
87remdeb.h: $(X_FILES)
88        @rm -f $@
89        ( pwd=`pwd`; cd $(srcdir)/../..; \
90        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
91          -o $$pwd/$@ remdeb.x )
92        @$(INSTALL_CHANGE) -m 755 $@ $(PROJECT_INCLUDE)/rdbg
93
94remdeb_xdr.c: $(X_FILES)
95        @rm -f $@
96        ( pwd=`pwd`; cd $(srcdir)/../..; \
97        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
98          -o $$pwd/$@ remdeb.x )
99
100remdeb_svc.c: $(X_FILES)
101        @rm -f $@ tmpSvc.c
102        ( pwd=`pwd`; cd $(srcdir)/../..; \
103        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
104          -o $$pwd/tmpSvc.c remdeb.x )
105        $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
106        @rm -f tmpSvc.c
107
108Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
109        cd $(top_builddir) \
110         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.