source: rtems/c/src/librdbg/src/i386/pc386/Makefile.in @ 45269dc

4.104.114.84.95
Last change on this file since 45269dc was 45269dc, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 11, 1999 at 3:34:26 PM

Patch from Ralf Corsepius <corsepiu@…> to move librdbg
to its own top level package.

  • 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 = src/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_f servtgt servtsp \
21    servutil _servtgt rdbg_f ptrace
22
23C_FILES = $(C_PIECES:%=%.c)
24C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
25
26# Asm source names, if any, go here -- minus the .s
27S_PIECES = rdbg_cpu_asm
28S_FILES = $(S_PIECES:%=%.S)
29S_O_FILES = $(S_PIECES:%=${ARCH}/%.o)
30
31# Generated C source names, if any, go here -- minus the .c
32GEN_C_PIECES = remdeb_xdr remdeb_svc
33GEN_C_FILES = $(GEN_C_PIECES:%=%.c)
34GEN_C_O_FILES = $(GEN_C_PIECES:%=${ARCH}/%.o)
35
36# H source names, if any, go here -- minus the .h
37H_PIECES = remdeb
38H_FILES = $(H_PIECES:%=%.h)
39
40# X source names
41X_FILES = remdeb.x remdeb_f.x
42
43SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES)
44OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
45
46RPCGEN = @RPCGEN@
47AWK = @AWK@
48
49include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
50include $(RTEMS_ROOT)/make/lib.cfg
51
52INSTALL_CHANGE = @INSTALL_CHANGE@
53mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
54
55INSTALLDIRS = $(PROJECT_INCLUDE)/rdbg
56
57$(INSTALLDIRS):
58        @$(mkinstalldirs) $(INSTALLDIRS)
59
60#
61# Add local stuff here using +=
62#
63
64DEFINES +=
65CPPFLAGS +=
66CFLAGS +=
67
68#
69# Add your list of files to delete here.  The config files
70#  already know how to delete some stuff, so you may want
71#  to just run 'make clean' first to see what gets missed.
72#  'make clobber' already includes 'make clean'
73#
74
75CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(GEN_C_FILES)
76CLOBBER_ADDITIONS +=
77
78FRONTEND = \"$(RTEMS_CPU)/@RTEMS_BSP@/remdeb_f.x\"
79
80all: ${ARCH} $(LIB)
81        @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
82
83$(LIB): $(SRCS) ${OBJS}
84        $(make-library)
85
86remdeb.h: $(X_FILES)
87        @rm -f $@
88        ( pwd=`pwd`; cd $(srcdir)/../..; \
89        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
90          -o $$pwd/$@ remdeb.x )
91        @$(INSTALL_CHANGE) -m 755 $@ $(PROJECT_INCLUDE)/rdbg
92
93remdeb_xdr.c: $(X_FILES)
94        @rm -f $@
95        ( pwd=`pwd`; cd $(srcdir)/../..; \
96        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
97          -o $$pwd/$@ remdeb.x )
98
99remdeb_svc.c: $(X_FILES)
100        @rm -f $@ tmpSvc.c
101        ( pwd=`pwd`; cd $(srcdir)/../..; \
102        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
103          -o $$pwd/tmpSvc.c remdeb.x )
104        $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
105        @rm -f tmpSvc.c
106
107Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
108        cd $(top_builddir) \
109         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.