source: rtems/c/src/librdbg/src/Makefile.in @ 163b29a

4.104.114.84.95
Last change on this file since 163b29a was 163b29a, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 3, 1999 at 6:11:35 PM

Generated files were accidentally included in the library.

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