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

4.104.114.84.95
Last change on this file since cb50837d was cb50837d, checked in by Joel Sherrill <joel.sherrill@…>, on 10/26/99 at 14:29:53

Patch from Emmanuel Raguet <raguet@…> to add missing file
reference to the Makefile.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[82307a11]1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
[45269dc]8top_builddir = ../../..
9subdir = src/i386/pc386
[82307a11]10
[6693a68]11RTEMS_ROOT = @RTEMS_ROOT@
[82307a11]12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
15
[6693a68]16LIBNAME = librdbg.a
17LIB = ${ARCH}/${LIBNAME}
[82307a11]18
19# C and C++ source names, if any, go here -- minus the .c or .cc
[cb50837d]20C_PIECES = rdbg servcon servbkpt servrpc excep excep_f servtgt servtsp \
[7c2243e3]21    servutil _servtgt rdbg_f ptrace
22
[6693a68]23C_FILES = $(C_PIECES:%=%.c)
24C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
[82307a11]25
26# Asm source names, if any, go here -- minus the .s
[6693a68]27S_PIECES = rdbg_cpu_asm
28S_FILES = $(S_PIECES:%=%.S)
29S_O_FILES = $(S_PIECES:%=${ARCH}/%.o)
[82307a11]30
31# Generated C source names, if any, go here -- minus the .c
[6693a68]32GEN_C_PIECES = remdeb_xdr remdeb_svc
33GEN_C_FILES = $(GEN_C_PIECES:%=%.c)
34GEN_C_O_FILES = $(GEN_C_PIECES:%=${ARCH}/%.o)
[82307a11]35
36# H source names, if any, go here -- minus the .h
[6693a68]37H_PIECES = remdeb
38H_FILES = $(H_PIECES:%=%.h)
[82307a11]39
40# X source names
[6693a68]41X_FILES = remdeb.x remdeb_f.x
[82307a11]42
[6693a68]43SRCS = $(C_FILES) $(S_FILES) $(GEN_C_FILES) $(H_FILES)
44OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
[82307a11]45
[6693a68]46RPCGEN = @RPCGEN@
47AWK = @AWK@
[82307a11]48
[6693a68]49include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
[82307a11]50include $(RTEMS_ROOT)/make/lib.cfg
51
[6693a68]52INSTALL_CHANGE = @INSTALL_CHANGE@
53mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
54
55INSTALLDIRS = $(PROJECT_INCLUDE)/rdbg
56
57$(INSTALLDIRS):
58        @$(mkinstalldirs) $(INSTALLDIRS)
59
[82307a11]60#
61# Add local stuff here using +=
62#
63
[6693a68]64DEFINES +=
[82307a11]65CPPFLAGS +=
[6693a68]66CFLAGS +=
[82307a11]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
[6693a68]75CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(GEN_C_FILES)
[82307a11]76CLOBBER_ADDITIONS +=
77
[6693a68]78FRONTEND = \"$(RTEMS_CPU)/@RTEMS_BSP@/remdeb_f.x\"
[82307a11]79
[638154c6]80all: ${ARCH} $(LIB)
[1896a650]81        @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib
[82307a11]82
83$(LIB): $(SRCS) ${OBJS}
84        $(make-library)
85
86remdeb.h: $(X_FILES)
87        @rm -f $@
[6693a68]88        ( pwd=`pwd`; cd $(srcdir)/../..; \
[82307a11]89        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
[6693a68]90          -o $$pwd/$@ remdeb.x )
[1896a650]91        @$(INSTALL_CHANGE) -m 755 $@ $(PROJECT_INCLUDE)/rdbg
[82307a11]92
93remdeb_xdr.c: $(X_FILES)
94        @rm -f $@
[6693a68]95        ( pwd=`pwd`; cd $(srcdir)/../..; \
[82307a11]96        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
[6693a68]97          -o $$pwd/$@ remdeb.x )
[82307a11]98
99remdeb_svc.c: $(X_FILES)
100        @rm -f $@ tmpSvc.c
[6693a68]101        ( pwd=`pwd`; cd $(srcdir)/../..; \
[82307a11]102        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
[6693a68]103          -o $$pwd/tmpSvc.c remdeb.x )
104        $(AWK) -f $(srcdir)/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
[82307a11]105        @rm -f tmpSvc.c
106
[08b5f55]107Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
[82307a11]108        cd $(top_builddir) \
109         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.