mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am: Add $(ARCH)/$(dirstamp) rules. * wrapup/Makefile.am: Reflect $(dirstamp) changes.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
|
* automake/compile.am: Add $(ARCH)/$(dirstamp) rules.
|
||||||
|
* wrapup/Makefile.am: Reflect $(dirstamp) changes.
|
||||||
|
|
||||||
2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* Makefile.am: Add $(dirstamp) to preinstallation rules.
|
* Makefile.am: Add $(dirstamp) to preinstallation rules.
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ CCLD = $(CC)
|
|||||||
|
|
||||||
CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
|
CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
|
||||||
|
|
||||||
${ARCH}/%.$(OBJEXT): %.c
|
${ARCH}/%.$(OBJEXT): %.c $(ARCH)/$(dirstamp)
|
||||||
${COMPILE} -o $@ -c $<
|
${COMPILE} -o $@ -c $<
|
||||||
|
|
||||||
${ARCH}/%.$(OBJEXT): %.S
|
${ARCH}/%.$(OBJEXT): %.S $(ARCH)/$(dirstamp)
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
${CCASCOMPILE} -o $@ -c $<
|
||||||
|
|
||||||
# Make foo.rel from foo.$(OBJEXT)
|
# Make foo.rel from foo.$(OBJEXT)
|
||||||
@@ -116,8 +116,9 @@ ARCH_DEBUG_V = o-debug
|
|||||||
ARCH__V = $(ARCH_OPTIMIZE_V)
|
ARCH__V = $(ARCH_OPTIMIZE_V)
|
||||||
ARCH = $(ARCH_$(VARIANT_V)_V)
|
ARCH = $(ARCH_$(VARIANT_V)_V)
|
||||||
|
|
||||||
${ARCH}:
|
${ARCH}/$(dirstamp):
|
||||||
mkdir ${ARCH}
|
@$(mkinstalldirs) $(ARCH)
|
||||||
|
@: > $(ARCH)/$(dirstamp)
|
||||||
|
|
||||||
## Setup the library suffix
|
## Setup the library suffix
|
||||||
LIBSUFFIX_OPTIMIZE_V =
|
LIBSUFFIX_OPTIMIZE_V =
|
||||||
|
|||||||
@@ -66,9 +66,11 @@ LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a
|
|||||||
LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a
|
LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(LIBS): $(ARCH)/$(dirstamp)
|
||||||
|
|
||||||
$(LIB): ${LIBS}
|
$(LIB): ${LIBS}
|
||||||
rm -f $@
|
rm -f $@
|
||||||
rm -rf $(ARCH)/*
|
rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
|
||||||
for f in $(LIBS); do \
|
for f in $(LIBS); do \
|
||||||
case $$f in \
|
case $$f in \
|
||||||
*.$(OBJEXT) | *.rel) \
|
*.$(OBJEXT) | *.rel) \
|
||||||
@@ -94,12 +96,12 @@ $(LIB): ${LIBS}
|
|||||||
done
|
done
|
||||||
test -d $(project_libdir) || $(mkinstalldirs) $(project_libdir)
|
test -d $(project_libdir) || $(mkinstalldirs) $(project_libdir)
|
||||||
$(AR) rc $@ $(ARCH)/*
|
$(AR) rc $@ $(ARCH)/*
|
||||||
rm -f $(ARCH)/*.$(OBJEXT)
|
rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
TMPINSTALL_FILES += $(project_libdir)/librtemscpu$(LIB_VARIANT).a
|
TMPINSTALL_FILES += $(project_libdir)/librtemscpu$(LIB_VARIANT).a
|
||||||
|
|
||||||
all-am: $(ARCH) $(LIB) $(TMPINSTALL_FILES)
|
all-am: $(LIB) $(TMPINSTALL_FILES)
|
||||||
|
|
||||||
install-data-hook: $(LIB)
|
install-data-hook: $(LIB)
|
||||||
@$(mkinstalldirs) $(DESTDIR)$(libdir)
|
@$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user