OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [librdbg/] [src/] [i386/] [any/] [Makefile.am] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
##
2
##  Makefile.am,v 1.14 2002/03/28 00:49:46 joel Exp
3
##
4
 
5
 
6
VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..
7
 
8
LIBNAME = librdbg
9
LIB = ${ARCH}/${LIBNAME}.a
10
 
11
# C and C++ source names
12
C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
13
    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
14
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
15
 
16
# Asm source names
17
S_FILES = rdbg_cpu_asm.S
18
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
19
 
20
# Generated C source names
21
GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
22
GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.o)
23
 
24
# H source names
25
H_FILES = remdeb.h
26
 
27
# X source names
28
X_FILES = remdeb.x remdeb_f.x
29
 
30
OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)
31
 
32
MAINTAINERCLEANFILES = $(H_FILES) $(GEN_C_FILES)
33
 
34
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
35
include $(top_srcdir)/../../../automake/compile.am
36
include $(top_srcdir)/../../../automake/lib.am
37
 
38
#
39
# Add local stuff here using +=
40
#
41
 
42
FRONTEND = \"$(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)
51
if RPCTOOLS
52
        @rm -f $@
53
        ( cd $(top_srcdir)/src; \
54
        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
55
          -o i386/any/remdeb.h remdeb.x )
56
endif
57
$(srcdir)/remdeb_xdr.c: $(X_FILES)
58
if RPCTOOLS
59
        @rm -f $@
60
        ( cd $(top_srcdir)/src; \
61
        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
62
          -o i386/any/remdeb_xdr.c remdeb.x )
63
endif
64
 
65
$(srcdir)/remdeb_svc.c: $(X_FILES)
66
if 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
        sed -e 's/fprintf.*,/printf(/'  i386/any/remdeb_svc.c > i386/any/remdeb_svc.tmp; \
74
        mv i386/any/remdeb_svc.tmp i386/any/remdeb_svc.c; \
75
        rm -f i386/any/tmpSvc.c )
76
endif
77
 
78
$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
79
        $(INSTALL_DATA) $< $@
80
 
81
$(PROJECT_INCLUDE)/rdbg:
82
        @$(mkinstalldirs) $@
83
 
84
PREINSTALL_FILES = $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h
85
 
86
TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
87
 
88
all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
89
 
90
EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)
91
 
92
include $(top_srcdir)/../../../automake/local.am

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.