source: rtems/c/src/lib/librdbg/i386/pc386/Makefile.in @ 82307a11

4.104.114.84.95
Last change on this file since 82307a11 was 82307a11, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/99 at 13:25:50

New files.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../../../../..
9subdir = c/src/lib/librdbg/i386/pc386
10
11INSTALL = @INSTALL@
12
13RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
14PROJECT_ROOT = @PROJECT_ROOT@
15
16VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
17
18LIBNAME=librdbg.a
19LIB=${ARCH}/${LIBNAME}
20
21# C and C++ source names, if any, go here -- minus the .c or .cc
22C_PIECES= rdbg servcon servbkpt servrpc excep \
23          servtgt servtsp servutil _servtgt rdbg_f \
24          ptrace
25C_FILES=$(C_PIECES:%=%.c)
26C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
27
28# Asm source names, if any, go here -- minus the .s
29ASM_PIECES= rdbg_cpu_asm
30ASM_FILES=$(ASM_PIECES:%=%.S)
31ASM_O_FILES=$(ASM_PIECES:%=${ARCH}/%.o)
32
33# Generated C source names, if any, go here -- minus the .c
34C_GEN_PIECES= remdeb_xdr remdeb_svc
35C_GEN_FILES=$(C_GEN_PIECES:%=%.c)
36C_GEN_O_FILES=$(C_GEN_PIECES:%=${ARCH}/%.o)
37
38# H source names, if any, go here -- minus the .h
39H_PIECES=remdeb
40H_FILES=$(H_PIECES:%=%.h)
41
42# X source names
43X_FILES=remdeb.x remdeb_f.x
44
45SRCS=$(C_FILES) $(ASM_FILES) $(C_GEN_FILES) $(H_FILES)
46OBJS=$(C_GEN_O_FILES) $(C_O_FILES) $(ASM_O_FILES)
47
48RPCGEN=@RPCGEN@
49AWK=@AWK@
50
51include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg
52include $(RTEMS_ROOT)/make/lib.cfg
53
54#
55# Add local stuff here using +=
56#
57
58DEFINES  +=
59CPPFLAGS +=
60CFLAGS   +=
61
62#
63# Add your list of files to delete here.  The config files
64#  already know how to delete some stuff, so you may want
65#  to just run 'make clean' first to see what gets missed.
66#  'make clobber' already includes 'make clean'
67#
68
69CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(C_GEN_FILES)
70CLOBBER_ADDITIONS +=
71
72FRONTEND=\"$(RTEMS_CPU)/${RTEMS_BSP}/remdeb_f.x\"
73
74all:    ${ARCH} $(LIB)
75        $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib
76
77$(LIB): $(SRCS) ${OBJS}
78        $(make-library)
79
80remdeb.h: $(X_FILES)
81        @rm -f $@
82        ( cd $(srcdir)/../..; \
83        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
84          -o $(PROJECT_ROOT)/$(subdir)/$@ remdeb.x )
85        $(INSTALL_DATA) $@ $(PROJECT_INCLUDE)/rdbg
86
87remdeb_xdr.c: $(X_FILES)
88        @rm -f $@
89        ( cd $(srcdir)/../..; \
90        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
91          -o $(PROJECT_ROOT)/$(subdir)/$@ remdeb.x )
92
93remdeb_svc.c: $(X_FILES)
94        @rm -f $@ tmpSvc.c
95        ( cd $(srcdir)/../..; \
96        $(RPCGEN) -s udp -DFRONTEND=$(FRONTEND) \
97          -o $(PROJECT_ROOT)/$(subdir)/tmpSvc.c remdeb.x )
98        $(AWK) -f @srcdir@/../../awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
99        @rm -f tmpSvc.c
100
101Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
102        cd $(top_builddir) \
103         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.