source: rtems/c/src/librdbg/src/powerpc/mcp750/Makefile.am @ 116e54ad

4.104.114.84.95
Last change on this file since 116e54ad was 116e54ad, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 30, 1999 at 2:03:29 PM

Uncommitted remains of a previous patch from Ralf Corsepius
<corsepiu@…> which converted fiels to automake.

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