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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [librdbg/] [src/] [i386/] [any/] [Makefile.am] - Rev 389

Go to most recent revision | Compare with Previous | Blame | View Log

##
##  $Id: Makefile.am,v 1.2 2001-09-27 12:02:01 chris Exp $
##

AUTOMAKE_OPTIONS = foreign 1.4

VPATH = @srcdir@:@srcdir@/..:@srcdir@/../..

LIBNAME = librdbg
LIB = ${ARCH}/${LIBNAME}.a

# C and C++ source names
C_FILES = rdbg.c servcon.c servbkpt.c servrpc.c excep.c excep_f.c servtgt.c \
    servtsp.c servutil.c _servtgt.c rdbg_f.c ptrace.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)

# Asm source names
S_FILES = rdbg_cpu_asm.S
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)

# Generated C source names
GEN_C_FILES = remdeb_xdr.c remdeb_svc.c
GEN_C_O_FILES = $(GEN_C_FILES:%.c=${ARCH}/%.o)

# H source names
H_FILES = remdeb.h

# X source names
X_FILES = remdeb.x remdeb_f.x

OBJS = $(GEN_C_O_FILES) $(C_O_FILES) $(S_O_FILES)

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../automake/lib.am

#
# Add local stuff here using +=
#

MAINTAINERCLEANFILES += $(H_FILES) $(GEN_C_FILES)

FRONTEND = \"$(RTEMS_CPU)/any/remdeb_f.x\"

$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
        $(INSTALL_DATA) $< $@

$(LIB): ${OBJS}
        $(make-library)

$(srcdir)/remdeb.h: $(X_FILES)
if RPCTOOLS
        @rm -f $@
        ( cd $(top_srcdir)/src; \
        $(RPCGEN) -h -DFRONTEND=$(FRONTEND) \
          -o i386/any/remdeb.h remdeb.x )
endif
$(srcdir)/remdeb_xdr.c: $(X_FILES)
if RPCTOOLS
        @rm -f $@
        ( cd $(top_srcdir)/src; \
        $(RPCGEN) -c -DFRONTEND=$(FRONTEND) \
          -o i386/any/remdeb_xdr.c remdeb.x )
endif

$(srcdir)/remdeb_svc.c: $(X_FILES)
if RPCTOOLS
        @rm -f $@ tmpSvc.c
        ( cd $(top_srcdir)/src; \
        $(RPCGEN) -m -DFRONTEND=$(FRONTEND) \
          -o i386/any/tmpSvc.c remdeb.x; \
        $(AWK) -f ./awk.svc THEPROG="remdeb.h" i386/any/tmpSvc.c \
          > i386/any/remdeb_svc.c; \
        rm -f i386/any/tmpSvc.c )
endif

$(PROJECT_INCLUDE)/rdbg/remdeb.h: $(srcdir)/remdeb.h
        $(INSTALL_DATA) $< $@

$(PROJECT_INCLUDE)/rdbg:
        @$(mkinstalldirs) $@

PREINSTALL_FILES += $(PROJECT_INCLUDE)/rdbg $(PROJECT_INCLUDE)/rdbg/remdeb.h

TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a

all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)

EXTRA_DIST = remdeb_f.x $(GEN_C_FILES)

include $(top_srcdir)/../../../automake/local.am

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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