source: rtems/c/src/librdbg/src/i386/any/Makefile.am @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 2.0 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/lib.am
35
36#
37# Add local stuff here using +=
38#
39
40MAINTAINERCLEANFILES += $(H_FILES) $(GEN_C_FILES)
41
42FRONTEND = \"$(RTEMS_CPU)/any/remdeb_f.x\"
43
44$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
45        $(INSTALL_DATA) $< $@
46
47$(LIB): ${OBJS}
48        $(make-library)
49
50$(srcdir)/remdeb.h: $(X_FILES)
51if RPCTOOLS
52        @rm -f $@
53        ( cd $(top_srcdir)/src; \
54        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
55          -o i386/any/remdeb.h remdeb.x )
56endif
57$(srcdir)/remdeb_xdr.c: $(X_FILES)
58if RPCTOOLS
59        @rm -f $@
60        ( cd $(top_srcdir)/src; \
61        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
62          -o i386/any/remdeb_xdr.c remdeb.x )
63endif
64
65$(srcdir)/remdeb_svc.c: $(X_FILES)
66if RPCTOOLS
67        @rm -f $@ tmpSvc.c
68        ( cd $(top_srcdir)/src; \
69        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
70          -o i386/any/tmpSvc.c remdeb.x; \
71        $(AWK) -f ./awk.svc THEPROG="remdeb.h" i386/any/tmpSvc.c \
72          > i386/any/remdeb_svc.c; \
73        rm -f i386/any/tmpSvc.c )
74endif
75
76$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
77        $(INSTALL_DATA) $< $@
78
79$(PROJECT_INCLUDE)/rdbg:
80        @$(mkinstalldirs) $@
81
82PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h
83
84TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
85
86all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
87
88EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
89
90include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.