shmdr Makeefile problems

Francesco Poletti fpoletti at libero.it
Tue Jan 21 16:33:55 UTC 2003


I have changed, my Makefile.am in the c/src/lib/libbsp/shmdr directory and now
in the install directory I found mpci.h and shm_driver.h. This is good for me
because now I can build an mp_applications. Now I'm able to change the
node_number by the makefile applications. Have someone else had this kind of
problems?
P.S.I'm not really expert like this probably I make some changes which wasn't
necessary, I take another Makefile.am as base...

##
## Makefile.am,v 1.6 2002/08/11 07:17:05 ralf Exp
##


PGM = $(ARCH)/shmdr.rel

C_FILES = addlq.c cnvpkt.c getlq.c dump.c fatal.c getpkt.c init.c initlq.c \
intr.c mpisr.c poll.c receive.c retpkt.c send.c setckvec.c
include_HEADERS = shm_driver.h mpci.h

C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))

OBJS = $(C_O_FILES)

$(PROJECT_INCLUDE):
$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/%.h: %.h
$(INSTALL_DATA) $< $@

PREINSTALL_FILES = $(PROJECT_INCLUDE) $(include_HEADERS:%=$(PROJECT_INCLUDE)/%)

#$(PROJECT_INCLUDE)/shm_driver.h \
# $(PROJECT_INCLUDE)/mpci.h

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

#
# (OPTIONAL) Add local stuff here using +=
#

$(PROJECT_RELEASE)/lib/shmdr$(LIB_VARIANT).rel: $(ARCH)/shmdr.rel
$(INSTALL_DATA) $< $@

# the .rel file built here will be put into libbsp.a by
# ../$(RTEMS_BSP_FAMILY)/wrapup/Makefile

TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/shmdr$(LIB_VARIANT).rel

$(PGM): $(OBJS)
$(make-rel)

if HAS_MP
all-local: $(PREINSTALL_FILES) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
endif

if HAS_MP
all: $(PREINSTALL_FILES) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
endif

EXTRA_DIST = README addlq.c cnvpkt.c dump.c fatal.c getlq.c getpkt.c init.c \
initlq.c intr.c mpci.h mpisr.c poll.c receive.c retpkt.c send.c \
setckvec.c shm_driver.h

.PRECIOUS: $(PGM)

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





More information about the users mailing list