source: rtems/c/src/librdbg/src/powerpc/mcp750/Makefile.am @ 01a83b2

4.104.114.84.95
Last change on this file since 01a83b2 was 01a83b2, checked in by Joel Sherrill <joel.sherrill@…>, on 09/05/00 at 16:08:22

2000-09-04 Ralf Corsepius <corsepiu@…>

  • src/i386/any/Makefile.am, src/powerpc/mcp750/Makefile.am: Include compile.am
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2##  $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
8
9LIBNAME = librdbg
10LIB = ${ARCH}/${LIBNAME}.a
11
12# C and C++ source names
13C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
14    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
15C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
16
17# Asm source names
18S_FILES = rdbg_cpu_asm.S
19S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
20
21# Generated C source names
22GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
23GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.o)
24
25# H source names
26H_FILES = remdeb.h
27
28# X source names
29X_FILES = remdeb.x remdeb_f.x
30
31OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
32
33include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
34include $(top_srcdir)/../../../automake/compile.am
35include $(top_srcdir)/../../../automake/lib.am
36
37#
38# Add local stuff here using +=
39#
40
41MAINTAINERCLEANFILES += $(H_FILES) $(GEN_C_FILES)
42
43FRONTEND = \"$(RTEMS_CPU)/mcp750/remdeb_f.x\"
44
45$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
46        $(INSTALL_DATA) $< $@
47
48$(LIB): ${OBJS}
49        $(make-library)
50
51$(srcdir)/remdeb.h: $(X_FILES)
52if RPCTOOLS
53        @rm -f $@
54        ( cd $(top_srcdir)/src; \
55        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
56          -o powerpc/mcp750/remdeb.h remdeb.x )
57endif
58$(srcdir)/remdeb_xdr.c: $(X_FILES)
59if RPCTOOLS
60        @rm -f $@
61        ( cd $(top_srcdir)/src; \
62        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
63          -o powerpc/mcp750/remdeb_xdr.c remdeb.x )
64endif
65
66$(srcdir)/remdeb_svc.c: $(X_FILES)
67if RPCTOOLS
68        @rm -f $@ tmpSvc.c
69        ( cd $(top_srcdir)/src; \
70        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
71          -o powerpc/mcp750/tmpSvc.c remdeb.x; \
72        $(AWK) -f ./awk.svc THEPROG="remdeb.h" powerpc/mcp750/tmpSvc.c \
73          > powerpc/mcp750/remdeb_svc.c; \
74        rm -f powerpc/mcp750/tmpSvc.c )
75endif
76
77$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
78        $(INSTALL_DATA) $< $@
79
80$(PROJECT_INCLUDE)/rdbg:
81        @$(mkinstalldirs) $@
82
83PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h
84
85TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
86
87all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
88
89EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
90
91include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.