forked from Imagelibrary/rtems
2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Require automake >= 1.8.2. * Makefile.am, mpc505/Makefile.am, mpc6xx/Makefile.am, mpc8260/Makefile.am, mpc8xx/Makefile.am, ppc403/Makefile.am, shared/Makefile.am: Use automake compilation rules. Add PREINSTALL_DIRS.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
|
* configure.ac: Require automake >= 1.8.2.
|
||||||
|
* Makefile.am, mpc505/Makefile.am, mpc6xx/Makefile.am,
|
||||||
|
mpc8260/Makefile.am, mpc8xx/Makefile.am, ppc403/Makefile.am,
|
||||||
|
shared/Makefile.am: Use automake compilation rules.
|
||||||
|
Add PREINSTALL_DIRS.
|
||||||
|
|
||||||
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
|
* Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
|
||||||
|
|||||||
@@ -8,41 +8,17 @@ include_rtems_powerpcdir = $(includedir)/rtems/powerpc
|
|||||||
include_rtems_powerpc_HEADERS = rtems/powerpc/cache.h \
|
include_rtems_powerpc_HEADERS = rtems/powerpc/cache.h \
|
||||||
rtems/powerpc/debugmod.h
|
rtems/powerpc/debugmod.h
|
||||||
|
|
||||||
## Check configure.in for conditions to set the conditionals below
|
SUBDIRS = shared mpc505 mpc6xx mpc8260 mpc8xx ppc403 wrapup
|
||||||
if shared
|
|
||||||
SHARED_LIB = shared
|
|
||||||
endif
|
|
||||||
|
|
||||||
if mpc505
|
|
||||||
CPU_SUBDIR = mpc505
|
|
||||||
endif
|
|
||||||
if mpc6xx
|
|
||||||
CPU_SUBDIR = mpc6xx
|
|
||||||
endif
|
|
||||||
if mpc8xx
|
|
||||||
CPU_SUBDIR = mpc8xx
|
|
||||||
endif
|
|
||||||
if mpc8260
|
|
||||||
CPU_SUBDIR = mpc8260
|
|
||||||
endif
|
|
||||||
if ppc403
|
|
||||||
CPU_SUBDIR = ppc403
|
|
||||||
endif
|
|
||||||
if ppc405
|
|
||||||
## 403 and 405 chips use the same CPU sources...
|
|
||||||
CPU_SUBDIR = ppc403
|
|
||||||
endif
|
|
||||||
|
|
||||||
SUBDIRS = $(SHARED_LIB) $(CPU_SUBDIR) wrapup
|
|
||||||
|
|
||||||
all-local: $(TMPINSTALL_FILES)
|
all-local: $(TMPINSTALL_FILES)
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp):
|
$(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/rtems/powerpc
|
@$(mkdir_p) $(PROJECT_INCLUDE)/rtems/powerpc
|
||||||
@: > $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/rtems/powerpc/cache.h: rtems/powerpc/cache.h $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
$(PROJECT_INCLUDE)/rtems/powerpc/cache.h: rtems/powerpc/cache.h $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/powerpc/cache.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/powerpc/cache.h
|
||||||
@@ -53,6 +29,7 @@ $(PROJECT_INCLUDE)/rtems/powerpc/debugmod.h: rtems/powerpc/debugmod.h $(PROJECT_
|
|||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc/debugmod.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc/debugmod.h
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
CLEANFILES = $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/subdirs.am
|
include $(top_srcdir)/../../../automake/subdirs.am
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -9,13 +9,12 @@ RTEMS_TOP(../../../../..)
|
|||||||
|
|
||||||
RTEMS_CANONICAL_TARGET_CPU
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([no-define foreign 1.8])
|
AM_INIT_AUTOMAKE([no-define foreign 1.8.2])
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
RTEMS_ENABLE_BARE
|
RTEMS_ENABLE_BARE
|
||||||
RTEMS_ENV_RTEMSBSP
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
|
||||||
RTEMS_PROJECT_ROOT
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
RTEMS_PROG_CC_FOR_TARGET
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
@@ -42,7 +41,10 @@ AM_CONDITIONAL(mpc8xx, test "$RTEMS_CPU_MODEL" = "mpc8xx" \
|
|||||||
|| test "$RTEMS_CPU_MODEL" = "mpc821" \
|
|| test "$RTEMS_CPU_MODEL" = "mpc821" \
|
||||||
|| test "$RTEMS_CPU_MODEL" = "mpc860" )
|
|| test "$RTEMS_CPU_MODEL" = "mpc860" )
|
||||||
AM_CONDITIONAL(mpc8260, test "$RTEMS_CPU_MODEL" = "mpc8260")
|
AM_CONDITIONAL(mpc8260, test "$RTEMS_CPU_MODEL" = "mpc8260")
|
||||||
AM_CONDITIONAL(ppc403, test "$RTEMS_CPU_MODEL" = "ppc403")
|
|
||||||
|
# the ppc405 shares files with the ppc403
|
||||||
|
AM_CONDITIONAL(ppc403,[test "$RTEMS_CPU_MODEL" = "ppc403" \
|
||||||
|
|| test "$RTEMS_CPU_MODEL" = "ppc405"])
|
||||||
AM_CONDITIONAL(ppc405, test "$RTEMS_CPU_MODEL" = "ppc405")
|
AM_CONDITIONAL(ppc405, test "$RTEMS_CPU_MODEL" = "ppc405")
|
||||||
|
|
||||||
# Explicitly list all Makefiles here
|
# Explicitly list all Makefiles here
|
||||||
|
|||||||
@@ -2,79 +2,84 @@
|
|||||||
## $Id$
|
## $Id$
|
||||||
##
|
##
|
||||||
|
|
||||||
CLEANDIRS =
|
CLEANFILES =
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
|
EXTRA_PROGRAMS =
|
||||||
noinst_DATA =
|
noinst_DATA =
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/compile.am
|
include $(top_srcdir)/../../../automake/compile.am
|
||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
|
if mpc505
|
||||||
|
# ictrl
|
||||||
include_HEADERS = ictrl/ictrl.h
|
include_HEADERS = ictrl/ictrl.h
|
||||||
|
|
||||||
# ictrl
|
EXTRA_PROGRAMS += ictrl.rel
|
||||||
ictrl_C_FILES = ictrl/ictrl.c
|
CLEANFILES += ictrl.rel
|
||||||
EXTRA_DIST += $(ictrl_C_FILES)
|
ictrl_rel_SOURCES = ictrl//ictrl.c
|
||||||
|
ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
ictrl_rel_OBJECTS = $(ictrl_C_FILES:ictrl/%.c=icrtl/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += ictrl_g.rel
|
||||||
|
CLEANFILES += ictrl_g.rel
|
||||||
|
ictrl_g_rel_SOURCES = $(ictrl_rel_SOURCES)
|
||||||
|
ictrl_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
ictrl_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
ictrl/$(ARCH)/$(dirstamp):
|
noinst_DATA += ictrl$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) ictrl/$(ARCH)
|
|
||||||
@: > ictrl/$(ARCH)/$(dirstamp)
|
|
||||||
ictrl/$(ARCH)/%.$(OBJEXT): ictrl/%.c ictrl/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
ictrl/$(ARCH)/ictrl.rel: $(ictrl_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += ictrl/o-optimize ictrl/o-debug
|
|
||||||
noinst_DATA += ictrl/$(ARCH)/ictrl.rel
|
|
||||||
|
|
||||||
## timer
|
## timer
|
||||||
timer_C_FILES = timer/timer.c
|
EXTRA_PROGRAMS += timer.rel
|
||||||
EXTRA_DIST += $(timer_C_FILES)
|
CLEANFILES += timer.rel
|
||||||
|
timer_rel_SOURCES = timer/timer.c
|
||||||
|
timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += timer_g.rel
|
||||||
|
CLEANFILES += timer_g.rel
|
||||||
|
timer_g_rel_SOURCES = $(timer_rel_SOURCES)
|
||||||
|
timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer/$(ARCH)/$(dirstamp):
|
noinst_DATA += timer$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) timer/$(ARCH)
|
|
||||||
@: > timer/$(ARCH)/$(dirstamp)
|
|
||||||
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += timer/o-optimize timer/o-debug
|
|
||||||
noinst_DATA += timer/$(ARCH)/timer.rel
|
|
||||||
|
|
||||||
## vector
|
## vector
|
||||||
vectors_S_FILES = vectors/vectors.S
|
vectors_S_FILES = vectors/vectors.S
|
||||||
EXTRA_DIST += $(vectors_S_FILES)
|
|
||||||
|
|
||||||
vectors_rel_OBJECTS = \
|
EXTRA_PROGRAMS += vectors.rel
|
||||||
$(vectors_S_FILES:vectors/%.S=vectors/${ARCH}/%.$(OBJEXT))
|
CLEANFILES += vectors.rel
|
||||||
|
vectors_rel_SOURCES = vectors/vectors.S
|
||||||
|
vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
vectors/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += vectors_g.rel
|
||||||
@$(mkdir_p) vectors/$(ARCH)
|
CLEANFILES += vectors_g.rel
|
||||||
@: > vectors/$(ARCH)/$(dirstamp)
|
vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
|
||||||
vectors/$(ARCH)/%.$(OBJEXT): vectors/%.S vectors/$(ARCH)/$(dirstamp)
|
vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
vectors/$(ARCH)/vectors.rel: $(vectors_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += vectors$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += vectors/o-optimize vectors/o-debug
|
endif
|
||||||
noinst_DATA += vectors/$(ARCH)/vectors.rel
|
|
||||||
|
|
||||||
## --
|
## --
|
||||||
|
|
||||||
all-local: $(PREINSTALL_FILES)
|
all-local: $(PREINSTALL_FILES)
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/$(dirstamp):
|
$(PROJECT_INCLUDE)/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)
|
@$(mkdir_p) $(PROJECT_INCLUDE)
|
||||||
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
|
|
||||||
|
if mpc505
|
||||||
$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/ictrl.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/ictrl.h
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
CLEANFILES += $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -6,98 +6,91 @@ include $(top_srcdir)/../../../automake/compile.am
|
|||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
CLEANDIRS =
|
EXTRA_PROGRAMS =
|
||||||
|
CLEANFILES =
|
||||||
noinst_DATA =
|
noinst_DATA =
|
||||||
|
|
||||||
|
if mpc6xx
|
||||||
include_libcpudir = $(includedir)/libcpu
|
include_libcpudir = $(includedir)/libcpu
|
||||||
include_libcpu_HEADERS = exceptions/raw_exception.h
|
include_libcpu_HEADERS = exceptions/raw_exception.h
|
||||||
|
|
||||||
# exceptions
|
# exceptions
|
||||||
exceptions_C_FILES = exceptions/raw_exception.c
|
EXTRA_PROGRAMS += exceptions.rel
|
||||||
exceptions_S_FILES = exceptions/asm_utils.S
|
CLEANFILES += exceptions.rel
|
||||||
EXTRA_DIST += $(exceptions_C_FILES) $(exceptions_S_FILES)
|
exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S
|
||||||
|
exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
exceptions_rel_OBJECTS = \
|
EXTRA_PROGRAMS += exceptions_g.rel
|
||||||
$(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
|
CLEANFILES += exceptions_g.rel
|
||||||
$(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
|
exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
|
||||||
|
exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
exceptions/$(ARCH)/$(dirstamp):
|
noinst_DATA += exceptions$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) exceptions/$(ARCH)
|
|
||||||
@: > exceptions/$(ARCH)/$(dirstamp)
|
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
|
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
|
||||||
exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += exceptions/o-optimize exceptions/o-debug
|
|
||||||
noinst_DATA += exceptions/$(ARCH)/exceptions.rel
|
|
||||||
|
|
||||||
# mmu
|
# mmu
|
||||||
include_libcpu_HEADERS += mmu/bat.h mmu/pte121.h
|
include_libcpu_HEADERS += mmu/bat.h mmu/pte121.h
|
||||||
mmu_C_FILES = mmu/bat.c mmu/pte121.c
|
|
||||||
mmu_S_FILES = mmu/mmuAsm.S
|
|
||||||
EXTRA_DIST += $(mmu_C_FILES) $(mmu_S_FILES)
|
|
||||||
|
|
||||||
mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/$(ARCH)/%.$(OBJEXT)) \
|
EXTRA_PROGRAMS += mmu.rel
|
||||||
$(mmu_S_FILES:mmu/%.S=mmu/$(ARCH)/%.$(OBJEXT))
|
CLEANFILES += mmu.rel
|
||||||
|
mmu_rel_SOURCES = mmu/bat.c mmu/bat.h mmu/pte121.c mmu/pte121.h \
|
||||||
|
mmu/mmuAsm.S
|
||||||
|
mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
mmu/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += mmu_g.rel
|
||||||
@$(mkdir_p) mmu/$(ARCH)
|
CLEANFILES += mmu_g.rel
|
||||||
@: > mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
|
||||||
mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
mmu/$(ARCH)/%.$(OBJEXT): mmu/%.S mmu/$(ARCH)/$(dirstamp)
|
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
noinst_DATA += mmu$(LIB_VARIANT).rel
|
||||||
mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += mmu/o-optimize mmu/o-debug
|
|
||||||
noinst_DATA += mmu/$(ARCH)/mmu.rel
|
|
||||||
|
|
||||||
# clock
|
# clock
|
||||||
include_libcpu_HEADERS += clock/c_clock.h
|
include_libcpu_HEADERS += clock/c_clock.h
|
||||||
|
|
||||||
clock_C_FILES = clock/c_clock.c
|
EXTRA_PROGRAMS += clock.rel
|
||||||
EXTRA_DIST += $(clock_C_FILES)
|
CLEANFILES += clock.rel
|
||||||
|
clock_rel_SOURCES = clock/c_clock.c clock/c_clock.h
|
||||||
|
clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += clock_g.rel
|
||||||
|
CLEANFILES += clock_g.rel
|
||||||
|
clock_g_rel_SOURCES = $(clock_rel_SOURCES)
|
||||||
|
clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock/$(ARCH)/$(dirstamp):
|
noinst_DATA += clock$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) clock/$(ARCH)
|
|
||||||
@: > clock/$(ARCH)/$(dirstamp)
|
|
||||||
clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += clock/o-optimize clock/o-debug
|
|
||||||
noinst_DATA += clock/$(ARCH)/clock.rel
|
|
||||||
|
|
||||||
# timer
|
# timer
|
||||||
|
EXTRA_PROGRAMS += timer.rel
|
||||||
|
CLEANFILES += timer.rel
|
||||||
|
timer_rel_SOURCES = timer/timer.c
|
||||||
|
timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_C_FILES = timer/timer.c
|
EXTRA_PROGRAMS += timer_g.rel
|
||||||
EXTRA_DIST += $(timer_C_FILES)
|
CLEANFILES += timer_g.rel
|
||||||
|
timer_g_rel_SOURCES = $(timer_rel_SOURCES)
|
||||||
|
timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
|
noinst_DATA += timer$(LIB_VARIANT).rel
|
||||||
|
endif
|
||||||
timer/$(ARCH)/$(dirstamp):
|
|
||||||
@$(mkdir_p) timer/$(ARCH)
|
|
||||||
@: > timer/$(ARCH)/$(dirstamp)
|
|
||||||
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += timer/o-optimize timer/o-debug
|
|
||||||
noinst_DATA += timer/$(ARCH)/timer.rel
|
|
||||||
|
|
||||||
## ----
|
## ----
|
||||||
all-local: $(PREINSTALL_FILES)
|
all-local: $(PREINSTALL_FILES)
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
|
if mpc6xx
|
||||||
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
||||||
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
@@ -114,7 +107,9 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/pte121.h
|
|||||||
$(PROJECT_INCLUDE)/libcpu/c_clock.h: clock/c_clock.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/c_clock.h: clock/c_clock.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/c_clock.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/c_clock.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/c_clock.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/c_clock.h
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
CLEANFILES += $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -3,160 +3,171 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
CLEANDIRS =
|
EXTRA_PROGRAMS =
|
||||||
|
CLEANFILES =
|
||||||
noinst_DATA =
|
noinst_DATA =
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/compile.am
|
include $(top_srcdir)/../../../automake/compile.am
|
||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
|
if mpc8260
|
||||||
include_mpc8260dir = $(includedir)/mpc8260
|
include_mpc8260dir = $(includedir)/mpc8260
|
||||||
|
|
||||||
include_HEADERS = include/mpc8260.h
|
include_HEADERS = include/mpc8260.h
|
||||||
include_mpc8260_HEADERS = include/console.h include/mmu.h include/cpm.h
|
|
||||||
|
|
||||||
include_libcpudir = $(includedir)/libcpu
|
include_libcpudir = $(includedir)/libcpu
|
||||||
include_libcpu_HEADERS = exceptions/raw_exception.h
|
include_libcpu_HEADERS = exceptions/raw_exception.h
|
||||||
|
|
||||||
## console-generic
|
## console-generic
|
||||||
console_C_FILES = console-generic/console-generic.c
|
include_mpc8260_HEADERS = include/console.h
|
||||||
EXTRA_DIST += $(console_C_FILES)
|
|
||||||
|
|
||||||
console_rel_OBJECTS = \
|
EXTRA_PROGRAMS += console-generic.rel
|
||||||
$(console_C_FILES:console-generic/%.c=console-generic/${ARCH}/%.$(OBJEXT))
|
CLEANFILES += console-generic.rel
|
||||||
|
console_generic_rel_SOURCES = console-generic/console-generic.c \
|
||||||
|
include/console.h
|
||||||
|
console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
console-generic/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += console-generic_g.rel
|
||||||
@$(mkdir_p) console-generic/$(ARCH)
|
CLEANFILES += console-generic_g.rel
|
||||||
@: > console-generic/$(ARCH)/$(dirstamp)
|
console_generic_g_rel_SOURCES = $(console_generic_rel_SOURCES)
|
||||||
console-generic/$(ARCH)/%.$(OBJEXT): console-generic/%.c console-generic/$(ARCH)/$(dirstamp)
|
console_generic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
console_generic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
console-generic/$(ARCH)/console-generic.rel: $(console_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += console-generic$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += console-generic/o-optimize console-generic/o-debug
|
|
||||||
noinst_DATA += console-generic/$(ARCH)/console-generic.rel
|
|
||||||
|
|
||||||
## clock
|
## clock
|
||||||
clock_C_FILES = clock/clock.c
|
EXTRA_PROGRAMS += clock.rel
|
||||||
EXTRA_DIST += $(clock_C_FILES)
|
CLEANFILES += clock.rel
|
||||||
|
clock_rel_SOURCES = clock/clock.c
|
||||||
|
clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += clock_g.rel
|
||||||
|
CLEANFILES += clock_g.rel
|
||||||
|
clock_g_rel_SOURCES = $(clock_rel_SOURCES)
|
||||||
|
clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock/$(ARCH)/$(dirstamp):
|
noinst_DATA += clock$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) clock/$(ARCH)
|
|
||||||
@: > clock/$(ARCH)/$(dirstamp)
|
|
||||||
clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += clock/o-optimize clock/o-debug
|
|
||||||
noinst_DATA += clock/$(ARCH)/clock.rel
|
|
||||||
|
|
||||||
## cpm
|
## cpm
|
||||||
cpm_C_FILES = cpm/cp.c cpm/dpram.c cpm/brg.c
|
include_mpc8260_HEADERS += include/cpm.h
|
||||||
EXTRA_DIST += $(cpm_C_FILES)
|
|
||||||
|
|
||||||
cpm_rel_OBJECTS = $(cpm_C_FILES:cpm/%.c=cpm/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += cpm.rel
|
||||||
|
CLEANFILES += cpm.rel
|
||||||
|
cpm_rel_SOURCES = cpm/cp.c cpm/dpram.c cpm/brg.c include/cpm.h
|
||||||
|
cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
cpm/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += cpm_g.rel
|
||||||
@$(mkdir_p) cpm/$(ARCH)
|
CLEANFILES += cpm_g.rel
|
||||||
@: > cpm/$(ARCH)/$(dirstamp)
|
cpm_g_rel_SOURCES = $(cpm_rel_SOURCES)
|
||||||
cpm/$(ARCH)/%.$(OBJEXT): cpm/%.c cpm/$(ARCH)/$(dirstamp)
|
cpm_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
cpm_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
cpm/$(ARCH)/cp.rel: $(cpm_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += cpm$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += cpm/o-optimize cpm/o-debug
|
|
||||||
noinst_DATA += cpm/$(ARCH)/cp.rel
|
|
||||||
|
|
||||||
## exceptions
|
## exceptions
|
||||||
exceptions_C_FILES = exceptions/raw_exception.c
|
include_libcpu_HEADERS += exceptions/raw_exception.h
|
||||||
exceptions_S_FILES = exceptions/asm_utils.S
|
|
||||||
|
|
||||||
exceptions_rel_OBJECTS = \
|
EXTRA_PROGRAMS += exceptions.rel
|
||||||
$(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
|
CLEANFILES += exceptions.rel
|
||||||
$(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
|
exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S \
|
||||||
|
exceptions/raw_exception.h
|
||||||
|
exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
exceptions/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += exceptions_g.rel
|
||||||
@$(mkdir_p) exceptions/$(ARCH)
|
CLEANFILES += exceptions_g.rel
|
||||||
@: > exceptions/$(ARCH)/$(dirstamp)
|
exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
|
exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
|
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
noinst_DATA += exceptions$(LIB_VARIANT).rel
|
||||||
exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += exceptions/o-optimize exceptions/o-debug
|
|
||||||
noinst_DATA += exceptions/$(ARCH)/exceptions.rel
|
|
||||||
|
|
||||||
## mmu
|
## mmu
|
||||||
mmu_C_FILES = mmu/mmu.c
|
include_mpc8260_HEADERS += include/mmu.h
|
||||||
EXTRA_DIST += $(mmu_C_FILES)
|
|
||||||
|
|
||||||
mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += mmu.rel
|
||||||
|
CLEANFILES += mmu.rel
|
||||||
|
mmu_rel_SOURCES = mmu/mmu.c include/mmu.h
|
||||||
|
mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
mmu/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += mmu_g.rel
|
||||||
@$(mkdir_p) mmu/$(ARCH)
|
CLEANFILES += mmu_g.rel
|
||||||
@: > mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
|
||||||
mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += mmu$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += mmu/o-optimize mmu/o-debug
|
|
||||||
noinst_DATA += mmu/$(ARCH)/mmu.rel
|
|
||||||
|
|
||||||
## timer
|
## timer
|
||||||
timer_C_FILES = timer/timer.c
|
EXTRA_PROGRAMS += timer.rel
|
||||||
EXTRA_DIST += $(timer_C_FILES)
|
CLEANFILES += timer.rel
|
||||||
|
timer_rel_SOURCES = timer/timer.c
|
||||||
|
timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += timer_g.rel
|
||||||
|
CLEANFILES += timer_g.rel
|
||||||
|
timer_g_rel_SOURCES = $(timer_rel_SOURCES)
|
||||||
|
timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer/$(ARCH)/$(dirstamp):
|
noinst_DATA += timer$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) timer/$(ARCH)
|
endif
|
||||||
@: > timer/$(ARCH)/$(dirstamp)
|
|
||||||
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
|
all-local: $(PREINSTALL_FILES)
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += timer/o-optimize timer/o-debug
|
|
||||||
noinst_DATA += timer/$(ARCH)/timer.rel
|
|
||||||
|
|
||||||
## --
|
## --
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/$(dirstamp):
|
$(PROJECT_INCLUDE)/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)
|
@$(mkdir_p) $(PROJECT_INCLUDE)
|
||||||
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
|
|
||||||
|
if mpc8260
|
||||||
$(PROJECT_INCLUDE)/mpc8260/$(dirstamp):
|
$(PROJECT_INCLUDE)/mpc8260/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/mpc8260
|
@$(mkdir_p) $(PROJECT_INCLUDE)/mpc8260
|
||||||
@: > $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8260.h: include/mpc8260.h $(PROJECT_INCLUDE)/$(dirstamp)
|
$(PROJECT_INCLUDE)/mpc8260.h: include/mpc8260.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260.h
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8260/console.h: include/console.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/console.h
|
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/console.h
|
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8260/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/mmu.h
|
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/mmu.h
|
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8260/cpm.h: include/cpm.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/cpm.h
|
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/cpm.h
|
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
||||||
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
$(PROJECT_INCLUDE)/mpc8260/console.h: include/console.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
||||||
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/console.h
|
||||||
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/console.h
|
||||||
|
|
||||||
|
$(PROJECT_INCLUDE)/mpc8260/cpm.h: include/cpm.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
||||||
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/cpm.h
|
||||||
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/cpm.h
|
||||||
|
|
||||||
|
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
|
|
||||||
|
$(PROJECT_INCLUDE)/mpc8260/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
|
||||||
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/mmu.h
|
||||||
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/mmu.h
|
||||||
|
endif
|
||||||
|
|
||||||
|
CLEANFILES += $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -2,137 +2,140 @@
|
|||||||
## $Id$
|
## $Id$
|
||||||
##
|
##
|
||||||
|
|
||||||
CLEANDIRS =
|
CLEANFILES =
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
|
EXTRA_PROGRAMS =
|
||||||
noinst_DATA =
|
noinst_DATA =
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/compile.am
|
include $(top_srcdir)/../../../automake/compile.am
|
||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
|
if mpc8xx
|
||||||
include_mpc8xxdir = $(includedir)/mpc8xx
|
include_mpc8xxdir = $(includedir)/mpc8xx
|
||||||
|
include_libcpudir = $(includedir)/libcpu
|
||||||
|
|
||||||
include_HEADERS = include/mpc8xx.h
|
include_HEADERS = include/mpc8xx.h
|
||||||
include_mpc8xx_HEADERS = include/console.h include/cpm.h include/mmu.h
|
|
||||||
|
|
||||||
include_libcpudir = $(includedir)/libcpu
|
|
||||||
include_libcpu_HEADERS = exceptions/raw_exception.h
|
|
||||||
|
|
||||||
## clock
|
## clock
|
||||||
clock_C_FILES = clock/clock.c
|
EXTRA_PROGRAMS += clock.rel
|
||||||
EXTRA_DIST += $(clock_C_FILES)
|
CLEANFILES += clock.rel
|
||||||
|
clock_rel_SOURCES = clock/clock.c
|
||||||
|
clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += clock_g.rel
|
||||||
|
CLEANFILES += clock_g.rel
|
||||||
|
clock_g_rel_SOURCES = $(clock_rel_SOURCES)
|
||||||
|
clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock/$(ARCH)/$(dirstamp):
|
noinst_DATA += clock$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) clock/$(ARCH)
|
|
||||||
@: > clock/$(ARCH)/$(dirstamp)
|
|
||||||
clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += clock/o-optimize clock/o-debug
|
|
||||||
noinst_DATA += clock/$(ARCH)/clock.rel
|
|
||||||
|
|
||||||
## console-generic
|
## console-generic
|
||||||
console_C_FILES = console-generic/console-generic.c
|
include_mpc8xx_HEADERS = include/console.h
|
||||||
EXTRA_DIST += $(console_C_FILES)
|
|
||||||
|
|
||||||
console_rel_OBJECTS = \
|
EXTRA_PROGRAMS += console-generic.rel
|
||||||
$(console_C_FILES:console-generic/%.c=console-generic/${ARCH}/%.$(OBJEXT))
|
CLEANFILES += console-generic.rel
|
||||||
|
console_generic_rel_SOURCES = console-generic/console-generic.c
|
||||||
|
console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
console-generic/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += console-generic_g.rel
|
||||||
@$(mkdir_p) console-generic/$(ARCH)
|
CLEANFILES += console-generic_g.rel
|
||||||
@: > console-generic/$(ARCH)/$(dirstamp)
|
console_generic_g_rel_SOURCES = $(console_generic_rel_SOURCES)
|
||||||
console-generic/$(ARCH)/%.$(OBJEXT): console-generic/%.c console-generic/$(ARCH)/$(dirstamp)
|
console_generic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
console_generic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
console-generic/$(ARCH)/console-generic.rel: $(console_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += console-generic$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += console-generic/o-optimize console-generic/o-debug
|
|
||||||
noinst_DATA += console-generic/$(ARCH)/console-generic.rel
|
|
||||||
|
|
||||||
## cpm
|
## cpm
|
||||||
cpm_C_FILES = cpm/cp.c cpm/dpram.c
|
include_mpc8xx_HEADERS += include/cpm.h
|
||||||
EXTRA_DIST += $(cpm_C_FILES)
|
|
||||||
|
|
||||||
cpm_rel_OBJECTS = $(cpm_C_FILES:cpm/%.c=cpm/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += cpm.rel
|
||||||
|
CLEANFILES += cpm.rel
|
||||||
|
cpm_rel_SOURCES = cpm/cp.c cpm/dpram.c
|
||||||
|
cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
cpm/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += cpm_g.rel
|
||||||
@$(mkdir_p) cpm/$(ARCH)
|
CLEANFILES += cpm_g.rel
|
||||||
@: > cpm/$(ARCH)/$(dirstamp)
|
cpm_g_rel_SOURCES = $(cpm_rel_SOURCES)
|
||||||
cpm/$(ARCH)/%.$(OBJEXT): cpm/%.c cpm/$(ARCH)/$(dirstamp)
|
cpm_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
cpm_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
cpm/$(ARCH)/cpm.rel: $(cpm_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += cpm$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += cpm/o-optimize cpm/o-debug
|
|
||||||
noinst_DATA += cpm/$(ARCH)/cpm.rel
|
|
||||||
|
|
||||||
## exceptions
|
## exceptions
|
||||||
exceptions_C_FILES = exceptions/raw_exception.c
|
include_libcpu_HEADERS = exceptions/raw_exception.h
|
||||||
exceptions_S_FILES = exceptions/asm_utils.S
|
|
||||||
EXTRA_DIST += $(exceptions_C_FILES) $(exceptions_S_FILES)
|
|
||||||
|
|
||||||
exceptions_rel_OBJECTS = \
|
EXTRA_PROGRAMS += exceptions.rel
|
||||||
$(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
|
CLEANFILES += exceptions.rel
|
||||||
$(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
|
exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S
|
||||||
|
exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
exceptions/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += exceptions_g.rel
|
||||||
@$(mkdir_p) exceptions/$(ARCH)
|
CLEANFILES += exceptions_g.rel
|
||||||
@: > exceptions/$(ARCH)/$(dirstamp)
|
exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
|
exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
|
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
noinst_DATA += exceptions$(LIB_VARIANT).rel
|
||||||
exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += exceptions/o-optimize exceptions/o-debug
|
|
||||||
noinst_DATA += exceptions/$(ARCH)/exceptions.rel
|
|
||||||
|
|
||||||
## mmu
|
## mmu
|
||||||
mmu_C_FILES = mmu/mmu.c
|
include_mpc8xx_HEADERS += include/mmu.h
|
||||||
EXTRA_DIST += $(mmu_C_FILES)
|
|
||||||
|
|
||||||
mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += mmu.rel
|
||||||
|
CLEANFILES += mmu.rel
|
||||||
|
mmu_rel_SOURCES = mmu/mmu.c
|
||||||
|
mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
mmu/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += mmu_g.rel
|
||||||
@$(mkdir_p) mmu/$(ARCH)
|
CLEANFILES += mmu_g.rel
|
||||||
@: > mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
|
||||||
mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
|
mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += mmu$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += mmu/o-optimize mmu/o-debug
|
|
||||||
noinst_DATA += mmu/$(ARCH)/mmu.rel
|
|
||||||
|
|
||||||
## timer
|
## timer
|
||||||
timer_C_FILES = timer/timer.c
|
EXTRA_PROGRAMS += timer.rel
|
||||||
EXTRA_DIST += $(timer_C_FILES)
|
CLEANFILES += timer.rel
|
||||||
|
timer_rel_SOURCES = timer/timer.c
|
||||||
|
timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/${ARCH}/%.$(OBJEXT))
|
EXTRA_PROGRAMS += timer_g.rel
|
||||||
|
CLEANFILES += timer_g.rel
|
||||||
|
timer_g_rel_SOURCES = $(timer_rel_SOURCES)
|
||||||
|
timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer/$(ARCH)/$(dirstamp):
|
noinst_DATA += timer$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) timer/$(ARCH)
|
endif
|
||||||
@: > timer/$(ARCH)/$(dirstamp)
|
|
||||||
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += timer/o-optimize timer/o-debug
|
|
||||||
noinst_DATA += timer/$(ARCH)/timer.rel
|
|
||||||
|
|
||||||
## --
|
## --
|
||||||
all-local: $(PREINSTALL_FILES)
|
all-local: $(PREINSTALL_FILES)
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/$(dirstamp):
|
$(PROJECT_INCLUDE)/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)
|
@$(mkdir_p) $(PROJECT_INCLUDE)
|
||||||
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
|
|
||||||
|
if mpc8xx
|
||||||
$(PROJECT_INCLUDE)/mpc8xx/$(dirstamp):
|
$(PROJECT_INCLUDE)/mpc8xx/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/mpc8xx
|
@$(mkdir_p) $(PROJECT_INCLUDE)/mpc8xx
|
||||||
@: > $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
||||||
|
|
||||||
|
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
||||||
|
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
||||||
|
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8xx.h: include/mpc8xx.h $(PROJECT_INCLUDE)/$(dirstamp)
|
$(PROJECT_INCLUDE)/mpc8xx.h: include/mpc8xx.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx.h
|
||||||
@@ -146,19 +149,16 @@ $(PROJECT_INCLUDE)/mpc8xx/cpm.h: include/cpm.h $(PROJECT_INCLUDE)/mpc8xx/$(dirst
|
|||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/cpm.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/cpm.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/cpm.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/cpm.h
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/mpc8xx/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/mmu.h
|
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/mmu.h
|
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
|
||||||
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
$(PROJECT_INCLUDE)/mpc8xx/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
|
||||||
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/mmu.h
|
||||||
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/mmu.h
|
||||||
|
endif
|
||||||
|
|
||||||
|
CLEANFILES += $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -2,128 +2,128 @@
|
|||||||
## $Id$
|
## $Id$
|
||||||
##
|
##
|
||||||
|
|
||||||
CLEANDIRS =
|
CLEANFILES =
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
|
EXTRA_PROGRAMS =
|
||||||
noinst_DATA =
|
noinst_DATA =
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/compile.am
|
include $(top_srcdir)/../../../automake/compile.am
|
||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
|
if ppc403
|
||||||
## clock
|
## clock
|
||||||
clock_C_FILES = clock/clock.c
|
EXTRA_PROGRAMS += clock.rel
|
||||||
EXTRA_DIST += $(clock_C_FILES)
|
CLEANFILES += clock.rel
|
||||||
|
clock_rel_SOURCES = clock/clock.c
|
||||||
|
clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += clock_g.rel
|
||||||
|
CLEANFILES += clock_g.rel
|
||||||
|
clock_g_rel_SOURCES = $(clock_rel_SOURCES)
|
||||||
|
clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
clock/$(ARCH)/$(dirstamp):
|
noinst_DATA += clock$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) clock/$(ARCH)
|
|
||||||
@: > clock/$(ARCH)/$(dirstamp)
|
|
||||||
clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += clock/o-optimize clock/o-debug
|
|
||||||
noinst_DATA += clock/$(ARCH)/clock.rel
|
|
||||||
|
|
||||||
## console
|
## console
|
||||||
if ppc403
|
EXTRA_PROGRAMS += console.rel
|
||||||
console_C_FILES = console/console.c
|
CLEANFILES += console.rel
|
||||||
endif
|
|
||||||
EXTRA_DIST += console/console.c
|
|
||||||
if ppc405
|
if ppc405
|
||||||
console_C_FILES = console/console405.c
|
console_rel_SOURCES = console/console405.c
|
||||||
|
else
|
||||||
|
console_rel_SOURCES = console/console.c
|
||||||
endif
|
endif
|
||||||
EXTRA_DIST += console/console405.c
|
console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
console_rel_OBJECTS = \
|
EXTRA_PROGRAMS += console_g.rel
|
||||||
$(console_C_FILES:console/%.c=console/$(ARCH)/%.$(OBJEXT))
|
CLEANFILES += console_g.rel
|
||||||
console/$(ARCH)/$(dirstamp):
|
console_g_rel_SOURCES = $(console_rel_SOURCES)
|
||||||
@$(mkdir_p) console/$(ARCH)
|
console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
@: > console/$(ARCH)/$(dirstamp)
|
console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
console/$(ARCH)/%.$(OBJEXT): console/%.c console/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
noinst_DATA += console$(LIB_VARIANT).rel
|
||||||
console/$(ARCH)/console.rel: $(console_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += console/o-optimize console/o-debug
|
|
||||||
noinst_DATA += console/$(ARCH)/console.rel
|
|
||||||
|
|
||||||
## ictrl
|
## ictrl
|
||||||
include_HEADERS = ictrl/ictrl.h
|
include_HEADERS = ictrl/ictrl.h
|
||||||
ictrl_C_FILES = ictrl/ictrl.c
|
|
||||||
EXTRA_DIST += $(ictrl_C_FILES)
|
|
||||||
|
|
||||||
ictrl_rel_OBJECTS = $(ictrl_C_FILES:ictrl/%.c=ictrl/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += ictrl.rel
|
||||||
ictrl/$(ARCH)/$(dirstamp):
|
CLEANFILES += ictrl.rel
|
||||||
@$(mkdir_p) ictrl/$(ARCH)
|
ictrl_rel_SOURCES = ictrl/ictrl.c ictrl/ictrl.h
|
||||||
@: > ictrl/$(ARCH)/$(dirstamp)
|
ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
ictrl/$(ARCH)/%.$(OBJEXT): ictrl/%.c ictrl/$(ARCH)/$(dirstamp)
|
ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
ictrl/$(ARCH)/ictrl.rel: $(ictrl_rel_OBJECTS)
|
EXTRA_PROGRAMS += ictrl_g.rel
|
||||||
$(make-rel)
|
CLEANFILES += ictrl_g.rel
|
||||||
CLEANDIRS += ictrl/o-optimize ictrl/o-debug
|
ictrl_g_rel_SOURCES = $(ictrl_rel_SOURCES)
|
||||||
noinst_DATA += ictrl/$(ARCH)/ictrl.rel
|
ictrl_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
ictrl_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
|
noinst_DATA += ictrl$(LIB_VARIANT).rel
|
||||||
|
|
||||||
## timer
|
## timer
|
||||||
timer_C_FILES = timer/timer.c
|
EXTRA_PROGRAMS += timer.rel
|
||||||
|
CLEANFILES += timer.rel
|
||||||
|
timer_rel_SOURCES = timer/timer.c
|
||||||
|
timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
|
EXTRA_PROGRAMS += timer_g.rel
|
||||||
|
CLEANFILES += timer_g.rel
|
||||||
|
timer_g_rel_SOURCES = $(timer_rel_SOURCES)
|
||||||
|
timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
timer/$(ARCH)/$(dirstamp):
|
noinst_DATA += timer$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) timer/$(ARCH)
|
|
||||||
@: > timer/$(ARCH)/$(dirstamp)
|
|
||||||
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
|
|
||||||
${COMPILE} -o $@ -c $<
|
|
||||||
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += timer/o-optimize timer/o-debug
|
|
||||||
noinst_DATA += timer/$(ARCH)/timer.rel
|
|
||||||
|
|
||||||
## tty_drv
|
## tty_drv
|
||||||
if ppc405
|
if ppc405
|
||||||
include_HEADERS += tty_drv/tty_drv.h
|
include_HEADERS += tty_drv/tty_drv.h
|
||||||
tty_drv_C_FILES = tty_drv/tty_drv.c
|
|
||||||
EXTRA_DIST += $(tty_drv_C_FILES)
|
|
||||||
|
|
||||||
tty_drv_rel_OBJECTS = \
|
EXTRA_PROGRAMS += tty_drv.rel
|
||||||
$(tty_drv_C_FILES:tty_drv/%.c=tty_drv/$(ARCH)/%.$(OBJEXT))
|
CLEANFILES += tty_drv.rel
|
||||||
|
tty_drv_rel_SOURCES = tty_drv/tty_drv.c tty_drv/tty_drv.h
|
||||||
|
tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
tty_drv/$(ARCH)/$(dirstamp):
|
EXTRA_PROGRAMS += tty_drv_g.rel
|
||||||
@$(mkdir_p) tty_drv/$(ARCH)
|
CLEANFILES += tty_drv_g.rel
|
||||||
@: > tty_drv/$(ARCH)/$(dirstamp)
|
tty_drv_g_rel_SOURCES = $(tty_drv_rel_SOURCES)
|
||||||
tty_drv/$(ARCH)/%.$(OBJEXT): tty_drv/%.c tty_drv/$(ARCH)/$(dirstamp)
|
tty_drv_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
${COMPILE} -o $@ -c $<
|
tty_drv_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
tty_drv/$(ARCH)/tty_drv.rel: $(tty_drv_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
noinst_DATA += tty_drv$(LIB_VARIANT).rel
|
||||||
CLEANDIRS += tty_drv/o-optimize tty_drv/o-debug
|
|
||||||
noinst_DATA += tty_drv/$(ARCH)/tty_drv.rel
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## vectors
|
## vectors
|
||||||
vectors_S_FILES = vectors/vectors.S vectors/align_h.S
|
EXTRA_PROGRAMS += vectors.rel
|
||||||
EXTRA_DIST += $(vectors_S_FILES)
|
CLEANFILES += vectors.rel
|
||||||
|
vectors_rel_SOURCES = vectors/vectors.S vectors/align_h.S
|
||||||
|
vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
|
||||||
|
vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
vectors_rel_OBJECTS = \
|
EXTRA_PROGRAMS += vectors_g.rel
|
||||||
$(vectors_S_FILES:vectors/%.S=vectors/${ARCH}/%.$(OBJEXT))
|
CLEANFILES += vectors_g.rel
|
||||||
|
vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
|
||||||
|
vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
|
||||||
|
vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||||
|
|
||||||
vectors/$(ARCH)/$(dirstamp):
|
noinst_DATA += vectors$(LIB_VARIANT).rel
|
||||||
@$(mkdir_p) vectors/$(ARCH)
|
endif
|
||||||
@: > vectors/$(ARCH)/$(dirstamp)
|
|
||||||
vectors/$(ARCH)/%.$(OBJEXT): vectors/%.S vectors/$(ARCH)/$(dirstamp)
|
|
||||||
${CCASCOMPILE} -o $@ -c $<
|
|
||||||
vectors/$(ARCH)/vectors.rel: $(vectors_rel_OBJECTS)
|
|
||||||
$(make-rel)
|
|
||||||
CLEANDIRS += vectors/o-optimize vectors/o-debug
|
|
||||||
noinst_DATA += vectors/$(ARCH)/vectors.rel
|
|
||||||
|
|
||||||
## --
|
## --
|
||||||
all-local: $(PREINSTALL_FILES)
|
all-local: $(PREINSTALL_FILES)
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/$(dirstamp):
|
$(PROJECT_INCLUDE)/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)
|
@$(mkdir_p) $(PROJECT_INCLUDE)
|
||||||
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
|
|
||||||
|
if ppc403
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
|
||||||
@@ -134,7 +134,9 @@ $(PROJECT_INCLUDE)/tty_drv.h: tty_drv/tty_drv.h $(PROJECT_INCLUDE)/$(dirstamp)
|
|||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tty_drv.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tty_drv.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tty_drv.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tty_drv.h
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
CLEANFILES += $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ include $(top_srcdir)/../../../automake/compile.am
|
|||||||
include $(top_srcdir)/../../../automake/lib.am
|
include $(top_srcdir)/../../../automake/lib.am
|
||||||
|
|
||||||
# include
|
# include
|
||||||
|
if shared
|
||||||
libcpuspec_C_FILES = include/cpuIdent.c
|
libcpuspec_C_FILES = include/cpuIdent.c
|
||||||
libcpuspec_OBJS = \
|
libcpuspec_OBJS = \
|
||||||
$(libcpuspec_C_FILES:include/%.c=include/$(ARCH)/%.$(OBJEXT))
|
$(libcpuspec_C_FILES:include/%.c=include/$(ARCH)/%.$(OBJEXT))
|
||||||
@@ -52,13 +52,16 @@ include_libcpu_HEADERS += src/stackTrace.h
|
|||||||
include_libcpu_HEADERS += $(top_srcdir)/../shared/include/cache.h
|
include_libcpu_HEADERS += $(top_srcdir)/../shared/include/cache.h
|
||||||
|
|
||||||
all-local: $(PREINSTALL_FILES) include/$(ARCH)/libcpuspec.a $(src_O_FILES) $(common_O_FILES)
|
all-local: $(PREINSTALL_FILES) include/$(ARCH)/libcpuspec.a $(src_O_FILES) $(common_O_FILES)
|
||||||
|
endif
|
||||||
|
|
||||||
|
PREINSTALL_DIRS =
|
||||||
PREINSTALL_FILES =
|
PREINSTALL_FILES =
|
||||||
|
|
||||||
|
if shared
|
||||||
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
|
||||||
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
@$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
|
||||||
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
@: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
|
|
||||||
$(PROJECT_INCLUDE)/libcpu/spr.h: include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/spr.h: include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/spr.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/spr.h
|
||||||
@@ -95,7 +98,9 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/stackTrace.h
|
|||||||
$(PROJECT_INCLUDE)/libcpu/cache.h: $(top_srcdir)/../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
$(PROJECT_INCLUDE)/libcpu/cache.h: $(top_srcdir)/../shared/include/cache.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
|
||||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
|
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
|
||||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
|
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES = $(PREINSTALL_FILES)
|
CLEANFILES = $(PREINSTALL_FILES)
|
||||||
|
DISTCLEANFILES = $(PREINSTALL_DIRS)
|
||||||
|
|
||||||
include $(top_srcdir)/../../../automake/local.am
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
|
|||||||
Reference in New Issue
Block a user