source: rtems/c/src/lib/librdbg/Makefile.in @ 8548fe0

4.104.114.84.95
Last change on this file since 8548fe0 was 8548fe0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

5) rtems-rc-19990202-1.diff/reorg-install.sh

reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[4721cf1]1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7VPATH = @srcdir@:@srcdir@/$(RTEMS_CPU)
8RTEMS_ROOT = @top_srcdir@
9PROJECT_ROOT = @PROJECT_ROOT@
10
[8548fe0]11INSTALL = @INSTALL@
12
[4721cf1]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=$(X_FILES) $(H_FILES) $(C_GEN_FILES) $(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/$@
[8548fe0]79        $(INSTALL_CHANGE) -m 444 $@ $(PROJECT_INCLUDE)/rdbg
[4721cf1]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.