Changeset ba4eefd in rtems


Ignore:
Timestamp:
Jan 21, 2004, 6:05:13 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d844a182
Parents:
faf45cc
Message:

2004-01-21 Ralf Corsepius <corsepiu@…>

  • 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.
Location:
c/src/lib/libcpu/powerpc
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    rfaf45cc rba4eefd  
     12004-01-21      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * configure.ac: Require automake >= 1.8.2.
     4        * Makefile.am, mpc505/Makefile.am, mpc6xx/Makefile.am,
     5        mpc8260/Makefile.am, mpc8xx/Makefile.am, ppc403/Makefile.am,
     6        shared/Makefile.am: Use automake compilation rules.
     7        Add PREINSTALL_DIRS.
     8
    192004-01-14      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    210
  • c/src/lib/libcpu/powerpc/Makefile.am

    rfaf45cc rba4eefd  
    99    rtems/powerpc/debugmod.h
    1010
    11 ## Check configure.in for conditions to set the conditionals below
    12 if shared
    13 SHARED_LIB = shared
    14 endif
    15 
    16 if mpc505
    17 CPU_SUBDIR = mpc505
    18 endif
    19 if mpc6xx
    20 CPU_SUBDIR = mpc6xx
    21 endif
    22 if mpc8xx
    23 CPU_SUBDIR = mpc8xx
    24 endif
    25 if mpc8260
    26 CPU_SUBDIR = mpc8260
    27 endif
    28 if ppc403
    29 CPU_SUBDIR = ppc403
    30 endif
    31 if ppc405
    32 ## 403 and 405 chips use the same CPU sources...
    33 CPU_SUBDIR = ppc403
    34 endif
    35 
    36 SUBDIRS = $(SHARED_LIB) $(CPU_SUBDIR) wrapup
     11SUBDIRS = shared mpc505 mpc6xx mpc8260 mpc8xx ppc403 wrapup
    3712
    3813all-local: $(TMPINSTALL_FILES)
    3914
     15PREINSTALL_DIRS =
    4016PREINSTALL_FILES =
    4117
     
    4319        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/powerpc
    4420        @: > $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
    45 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
     21PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
    4622
    4723$(PROJECT_INCLUDE)/rtems/powerpc/cache.h: rtems/powerpc/cache.h $(PROJECT_INCLUDE)/rtems/powerpc/$(dirstamp)
     
    5430
    5531CLEANFILES = $(PREINSTALL_FILES)
     32DISTCLEANFILES = $(PREINSTALL_DIRS)
    5633
    5734include $(top_srcdir)/../../../automake/subdirs.am
  • c/src/lib/libcpu/powerpc/configure.ac

    rfaf45cc rba4eefd  
    1010RTEMS_CANONICAL_TARGET_CPU
    1111
    12 AM_INIT_AUTOMAKE([no-define foreign 1.8])
     12AM_INIT_AUTOMAKE([no-define foreign 1.8.2])
    1313AM_MAINTAINER_MODE
    1414
    1515RTEMS_ENABLE_BARE
    1616RTEMS_ENV_RTEMSBSP
    17 
    1817
    1918RTEMS_PROJECT_ROOT
     
    4342|| test "$RTEMS_CPU_MODEL" = "mpc860" )
    4443AM_CONDITIONAL(mpc8260, test "$RTEMS_CPU_MODEL" = "mpc8260")
    45 AM_CONDITIONAL(ppc403, test "$RTEMS_CPU_MODEL" = "ppc403")
     44
     45# the ppc405 shares files with the ppc403
     46AM_CONDITIONAL(ppc403,[test "$RTEMS_CPU_MODEL" = "ppc403" \
     47|| test "$RTEMS_CPU_MODEL" = "ppc405"])
    4648AM_CONDITIONAL(ppc405, test "$RTEMS_CPU_MODEL" = "ppc405")
    4749
  • c/src/lib/libcpu/powerpc/mpc505/Makefile.am

    rfaf45cc rba4eefd  
    33##
    44
    5 CLEANDIRS =
     5CLEANFILES =
    66EXTRA_DIST =
     7EXTRA_PROGRAMS =
    78noinst_DATA =
    89
     
    1011include $(top_srcdir)/../../../automake/lib.am
    1112
     13if mpc505
     14# ictrl
    1215include_HEADERS = ictrl/ictrl.h
    1316
    14 # ictrl
    15 ictrl_C_FILES = ictrl/ictrl.c
    16 EXTRA_DIST += $(ictrl_C_FILES)
     17EXTRA_PROGRAMS += ictrl.rel
     18CLEANFILES += ictrl.rel
     19ictrl_rel_SOURCES = ictrl//ictrl.c
     20ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     21ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    1722
    18 ictrl_rel_OBJECTS = $(ictrl_C_FILES:ictrl/%.c=icrtl/$(ARCH)/%.$(OBJEXT))
     23EXTRA_PROGRAMS += ictrl_g.rel
     24CLEANFILES += ictrl_g.rel
     25ictrl_g_rel_SOURCES = $(ictrl_rel_SOURCES)
     26ictrl_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     27ictrl_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    1928
    20 ictrl/$(ARCH)/$(dirstamp):
    21         @$(mkdir_p) ictrl/$(ARCH)
    22         @: > ictrl/$(ARCH)/$(dirstamp)
    23 ictrl/$(ARCH)/%.$(OBJEXT): ictrl/%.c ictrl/$(ARCH)/$(dirstamp)
    24         ${COMPILE} -o $@ -c $<
    25 ictrl/$(ARCH)/ictrl.rel: $(ictrl_rel_OBJECTS)
    26         $(make-rel)
    27 CLEANDIRS += ictrl/o-optimize ictrl/o-debug
    28 noinst_DATA += ictrl/$(ARCH)/ictrl.rel
     29noinst_DATA += ictrl$(LIB_VARIANT).rel
    2930
    3031## timer
    31 timer_C_FILES = timer/timer.c
    32 EXTRA_DIST += $(timer_C_FILES)
     32EXTRA_PROGRAMS += timer.rel
     33CLEANFILES += timer.rel
     34timer_rel_SOURCES = timer/timer.c
     35timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     36timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    3337
    34 timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
     38EXTRA_PROGRAMS += timer_g.rel
     39CLEANFILES += timer_g.rel
     40timer_g_rel_SOURCES = $(timer_rel_SOURCES)
     41timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     42timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    3543
    36 timer/$(ARCH)/$(dirstamp):
    37         @$(mkdir_p) timer/$(ARCH)
    38         @: > timer/$(ARCH)/$(dirstamp)
    39 timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
    40         ${COMPILE} -o $@ -c $<
    41 timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
    42         $(make-rel)
    43 CLEANDIRS += timer/o-optimize timer/o-debug
    44 noinst_DATA += timer/$(ARCH)/timer.rel
     44noinst_DATA += timer$(LIB_VARIANT).rel
    4545
    4646## vector
    4747vectors_S_FILES = vectors/vectors.S
    48 EXTRA_DIST += $(vectors_S_FILES)
    4948
    50 vectors_rel_OBJECTS = \
    51     $(vectors_S_FILES:vectors/%.S=vectors/${ARCH}/%.$(OBJEXT))
     49EXTRA_PROGRAMS += vectors.rel
     50CLEANFILES += vectors.rel
     51vectors_rel_SOURCES = vectors/vectors.S
     52vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     53vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    5254
    53 vectors/$(ARCH)/$(dirstamp):
    54         @$(mkdir_p) vectors/$(ARCH)
    55         @: > vectors/$(ARCH)/$(dirstamp)
    56 vectors/$(ARCH)/%.$(OBJEXT): vectors/%.S vectors/$(ARCH)/$(dirstamp)
    57         ${CCASCOMPILE} -o $@ -c $<
    58 vectors/$(ARCH)/vectors.rel: $(vectors_rel_OBJECTS)
    59         $(make-rel)
    60 CLEANDIRS += vectors/o-optimize vectors/o-debug
    61 noinst_DATA += vectors/$(ARCH)/vectors.rel
     55EXTRA_PROGRAMS += vectors_g.rel
     56CLEANFILES += vectors_g.rel
     57vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
     58vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     59vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     60
     61noinst_DATA += vectors$(LIB_VARIANT).rel
     62endif
    6263
    6364## --
     
    6566all-local: $(PREINSTALL_FILES)
    6667
     68PREINSTALL_DIRS =
    6769PREINSTALL_FILES =
    6870
     
    7072        @$(mkdir_p) $(PROJECT_INCLUDE)
    7173        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    72 PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
     74PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
    7375
     76if mpc505
    7477$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
    7578        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
    7679PREINSTALL_FILES += $(PROJECT_INCLUDE)/ictrl.h
     80endif
    7781
    78 CLEANFILES = $(PREINSTALL_FILES)
     82CLEANFILES += $(PREINSTALL_FILES)
     83DISTCLEANFILES = $(PREINSTALL_DIRS)
    7984
    8085include $(top_srcdir)/../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc6xx/Makefile.am

    rfaf45cc rba4eefd  
    77
    88EXTRA_DIST =
    9 CLEANDIRS =
     9EXTRA_PROGRAMS =
     10CLEANFILES =
    1011noinst_DATA =
    1112
     13if mpc6xx
    1214include_libcpudir = $(includedir)/libcpu
    1315include_libcpu_HEADERS = exceptions/raw_exception.h
    1416
    1517# exceptions
    16 exceptions_C_FILES = exceptions/raw_exception.c
    17 exceptions_S_FILES = exceptions/asm_utils.S
    18 EXTRA_DIST += $(exceptions_C_FILES) $(exceptions_S_FILES)
     18EXTRA_PROGRAMS += exceptions.rel
     19CLEANFILES += exceptions.rel
     20exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S
     21exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     22exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    1923
    20 exceptions_rel_OBJECTS = \
    21     $(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
    22     $(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
     24EXTRA_PROGRAMS += exceptions_g.rel
     25CLEANFILES += exceptions_g.rel
     26exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
     27exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     28exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    2329
    24 exceptions/$(ARCH)/$(dirstamp):
    25         @$(mkdir_p) exceptions/$(ARCH)
    26         @: > exceptions/$(ARCH)/$(dirstamp)
    27 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
    28         ${COMPILE} -o $@ -c $<
    29 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
    30         ${CCASCOMPILE} -o $@ -c $<
    31 exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
    32         $(make-rel)
    33 CLEANDIRS += exceptions/o-optimize exceptions/o-debug
    34 noinst_DATA += exceptions/$(ARCH)/exceptions.rel
     30noinst_DATA += exceptions$(LIB_VARIANT).rel
    3531
    3632# mmu
    3733include_libcpu_HEADERS += mmu/bat.h mmu/pte121.h
    38 mmu_C_FILES = mmu/bat.c mmu/pte121.c
    39 mmu_S_FILES = mmu/mmuAsm.S
    40 EXTRA_DIST += $(mmu_C_FILES) $(mmu_S_FILES)
    4134
    42 mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/$(ARCH)/%.$(OBJEXT)) \
    43     $(mmu_S_FILES:mmu/%.S=mmu/$(ARCH)/%.$(OBJEXT))
     35EXTRA_PROGRAMS += mmu.rel
     36CLEANFILES += mmu.rel
     37mmu_rel_SOURCES = mmu/bat.c mmu/bat.h mmu/pte121.c mmu/pte121.h \
     38    mmu/mmuAsm.S
     39mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     40mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    4441
    45 mmu/$(ARCH)/$(dirstamp):
    46         @$(mkdir_p) mmu/$(ARCH)
    47         @: > mmu/$(ARCH)/$(dirstamp)
    48 mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
    49         ${COMPILE} -o $@ -c $<
    50 mmu/$(ARCH)/%.$(OBJEXT): mmu/%.S mmu/$(ARCH)/$(dirstamp)
    51         ${CCASCOMPILE} -o $@ -c $<
    52 mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
    53         $(make-rel)
    54 CLEANDIRS += mmu/o-optimize mmu/o-debug
    55 noinst_DATA += mmu/$(ARCH)/mmu.rel
     42EXTRA_PROGRAMS += mmu_g.rel
     43CLEANFILES += mmu_g.rel
     44mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
     45mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     46mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     47
     48noinst_DATA += mmu$(LIB_VARIANT).rel
    5649
    5750# clock
    5851include_libcpu_HEADERS += clock/c_clock.h
    5952
    60 clock_C_FILES = clock/c_clock.c
    61 EXTRA_DIST += $(clock_C_FILES)
     53EXTRA_PROGRAMS += clock.rel
     54CLEANFILES += clock.rel
     55clock_rel_SOURCES = clock/c_clock.c clock/c_clock.h
     56clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     57clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    6258
    63 clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/$(ARCH)/%.$(OBJEXT))
     59EXTRA_PROGRAMS += clock_g.rel
     60CLEANFILES += clock_g.rel
     61clock_g_rel_SOURCES = $(clock_rel_SOURCES)
     62clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     63clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    6464
    65 clock/$(ARCH)/$(dirstamp):
    66         @$(mkdir_p) clock/$(ARCH)
    67         @: > clock/$(ARCH)/$(dirstamp)
    68 clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
    69         ${COMPILE} -o $@ -c $<
    70 clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
    71         $(make-rel)
    72 CLEANDIRS += clock/o-optimize clock/o-debug
    73 noinst_DATA += clock/$(ARCH)/clock.rel
     65noinst_DATA += clock$(LIB_VARIANT).rel
    7466
    7567# timer
     68EXTRA_PROGRAMS += timer.rel
     69CLEANFILES += timer.rel
     70timer_rel_SOURCES = timer/timer.c
     71timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     72timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    7673
    77 timer_C_FILES = timer/timer.c
    78 EXTRA_DIST += $(timer_C_FILES)
     74EXTRA_PROGRAMS += timer_g.rel
     75CLEANFILES += timer_g.rel
     76timer_g_rel_SOURCES = $(timer_rel_SOURCES)
     77timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     78timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    7979
    80 timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
    81 
    82 timer/$(ARCH)/$(dirstamp):
    83         @$(mkdir_p) timer/$(ARCH)
    84         @: > timer/$(ARCH)/$(dirstamp)
    85 timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
    86         ${COMPILE} -o $@ -c $<
    87 timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
    88         $(make-rel)
    89 CLEANDIRS += timer/o-optimize timer/o-debug
    90 noinst_DATA += timer/$(ARCH)/timer.rel
     80noinst_DATA += timer$(LIB_VARIANT).rel
     81endif
    9182
    9283## ----
    9384all-local: $(PREINSTALL_FILES)
    9485
     86PREINSTALL_DIRS =
    9587PREINSTALL_FILES =
    9688
     89if mpc6xx
    9790$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
    9891        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
    9992        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    100 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     93PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    10194
    10295$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     
    115108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/c_clock.h
    116109PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/c_clock.h
     110endif
    117111
    118 CLEANFILES = $(PREINSTALL_FILES)
     112CLEANFILES += $(PREINSTALL_FILES)
     113DISTCLEANFILES = $(PREINSTALL_DIRS)
    119114
    120115include $(top_srcdir)/../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc8260/Makefile.am

    rfaf45cc rba4eefd  
    44
    55EXTRA_DIST =
    6 CLEANDIRS =
     6EXTRA_PROGRAMS =
     7CLEANFILES =
    78noinst_DATA =
    89
     
    1011include $(top_srcdir)/../../../automake/lib.am
    1112
     13if mpc8260
    1214include_mpc8260dir = $(includedir)/mpc8260
    1315
    1416include_HEADERS = include/mpc8260.h
    15 include_mpc8260_HEADERS = include/console.h include/mmu.h include/cpm.h
    1617
    1718include_libcpudir = $(includedir)/libcpu
     
    1920
    2021## console-generic
    21 console_C_FILES = console-generic/console-generic.c
    22 EXTRA_DIST += $(console_C_FILES)
     22include_mpc8260_HEADERS = include/console.h
    2323
    24 console_rel_OBJECTS = \
    25     $(console_C_FILES:console-generic/%.c=console-generic/${ARCH}/%.$(OBJEXT))
     24EXTRA_PROGRAMS += console-generic.rel
     25CLEANFILES += console-generic.rel
     26console_generic_rel_SOURCES = console-generic/console-generic.c \
     27    include/console.h
     28console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     29console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    2630
    27 console-generic/$(ARCH)/$(dirstamp):
    28         @$(mkdir_p) console-generic/$(ARCH)
    29         @: > console-generic/$(ARCH)/$(dirstamp)
    30 console-generic/$(ARCH)/%.$(OBJEXT): console-generic/%.c console-generic/$(ARCH)/$(dirstamp)
    31         ${COMPILE} -o $@ -c $<
    32 console-generic/$(ARCH)/console-generic.rel: $(console_rel_OBJECTS)
    33         $(make-rel)
    34 CLEANDIRS += console-generic/o-optimize console-generic/o-debug
    35 noinst_DATA += console-generic/$(ARCH)/console-generic.rel
     31EXTRA_PROGRAMS += console-generic_g.rel
     32CLEANFILES += console-generic_g.rel
     33console_generic_g_rel_SOURCES = $(console_generic_rel_SOURCES)
     34console_generic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     35console_generic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     36
     37noinst_DATA += console-generic$(LIB_VARIANT).rel
    3638
    3739## clock
    38 clock_C_FILES = clock/clock.c
    39 EXTRA_DIST += $(clock_C_FILES)
     40EXTRA_PROGRAMS += clock.rel
     41CLEANFILES += clock.rel
     42clock_rel_SOURCES = clock/clock.c
     43clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     44clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    4045
    41 clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/${ARCH}/%.$(OBJEXT))
     46EXTRA_PROGRAMS += clock_g.rel
     47CLEANFILES += clock_g.rel
     48clock_g_rel_SOURCES = $(clock_rel_SOURCES)
     49clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     50clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    4251
    43 clock/$(ARCH)/$(dirstamp):
    44         @$(mkdir_p) clock/$(ARCH)
    45         @: > clock/$(ARCH)/$(dirstamp)
    46 clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
    47         ${COMPILE} -o $@ -c $<
    48 clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
    49         $(make-rel)
    50 CLEANDIRS += clock/o-optimize clock/o-debug
    51 noinst_DATA += clock/$(ARCH)/clock.rel
     52noinst_DATA += clock$(LIB_VARIANT).rel
    5253
    5354## cpm
    54 cpm_C_FILES = cpm/cp.c cpm/dpram.c cpm/brg.c
    55 EXTRA_DIST += $(cpm_C_FILES)
     55include_mpc8260_HEADERS += include/cpm.h
    5656
    57 cpm_rel_OBJECTS = $(cpm_C_FILES:cpm/%.c=cpm/${ARCH}/%.$(OBJEXT))
     57EXTRA_PROGRAMS += cpm.rel
     58CLEANFILES += cpm.rel
     59cpm_rel_SOURCES = cpm/cp.c cpm/dpram.c cpm/brg.c include/cpm.h
     60cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     61cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    5862
    59 cpm/$(ARCH)/$(dirstamp):
    60         @$(mkdir_p) cpm/$(ARCH)
    61         @: > cpm/$(ARCH)/$(dirstamp)
    62 cpm/$(ARCH)/%.$(OBJEXT): cpm/%.c cpm/$(ARCH)/$(dirstamp)
    63         ${COMPILE} -o $@ -c $<
    64 cpm/$(ARCH)/cp.rel: $(cpm_rel_OBJECTS)
    65         $(make-rel)
    66 CLEANDIRS += cpm/o-optimize cpm/o-debug
    67 noinst_DATA += cpm/$(ARCH)/cp.rel
     63EXTRA_PROGRAMS += cpm_g.rel
     64CLEANFILES += cpm_g.rel
     65cpm_g_rel_SOURCES = $(cpm_rel_SOURCES)
     66cpm_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     67cpm_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     68
     69noinst_DATA += cpm$(LIB_VARIANT).rel
    6870
    6971## exceptions
    70 exceptions_C_FILES = exceptions/raw_exception.c
    71 exceptions_S_FILES = exceptions/asm_utils.S
     72include_libcpu_HEADERS += exceptions/raw_exception.h
    7273
    73 exceptions_rel_OBJECTS = \
    74     $(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
    75     $(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
     74EXTRA_PROGRAMS += exceptions.rel
     75CLEANFILES += exceptions.rel
     76exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S \
     77    exceptions/raw_exception.h
     78exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     79exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    7680
    77 exceptions/$(ARCH)/$(dirstamp):
    78         @$(mkdir_p) exceptions/$(ARCH)
    79         @: > exceptions/$(ARCH)/$(dirstamp)
    80 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
    81         ${COMPILE} -o $@ -c $<
    82 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
    83         ${CCASCOMPILE} -o $@ -c $<
    84 exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
    85         $(make-rel)
    86 CLEANDIRS += exceptions/o-optimize exceptions/o-debug
    87 noinst_DATA += exceptions/$(ARCH)/exceptions.rel
     81EXTRA_PROGRAMS += exceptions_g.rel
     82CLEANFILES += exceptions_g.rel
     83exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
     84exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     85exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     86
     87noinst_DATA += exceptions$(LIB_VARIANT).rel
    8888
    8989## mmu
    90 mmu_C_FILES = mmu/mmu.c
    91 EXTRA_DIST += $(mmu_C_FILES)
     90include_mpc8260_HEADERS += include/mmu.h
    9291
    93 mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/${ARCH}/%.$(OBJEXT))
     92EXTRA_PROGRAMS += mmu.rel
     93CLEANFILES += mmu.rel
     94mmu_rel_SOURCES = mmu/mmu.c include/mmu.h
     95mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     96mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    9497
    95 mmu/$(ARCH)/$(dirstamp):
    96         @$(mkdir_p) mmu/$(ARCH)
    97         @: > mmu/$(ARCH)/$(dirstamp)
    98 mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
    99         ${COMPILE} -o $@ -c $<
    100 mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
    101         $(make-rel)
    102 CLEANDIRS += mmu/o-optimize mmu/o-debug
    103 noinst_DATA += mmu/$(ARCH)/mmu.rel
     98EXTRA_PROGRAMS += mmu_g.rel
     99CLEANFILES += mmu_g.rel
     100mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
     101mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     102mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     103
     104noinst_DATA += mmu$(LIB_VARIANT).rel
    104105
    105106## timer
    106 timer_C_FILES = timer/timer.c
    107 EXTRA_DIST += $(timer_C_FILES)
     107EXTRA_PROGRAMS += timer.rel
     108CLEANFILES += timer.rel
     109timer_rel_SOURCES = timer/timer.c
     110timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     111timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    108112
    109 timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/${ARCH}/%.$(OBJEXT))
     113EXTRA_PROGRAMS += timer_g.rel
     114CLEANFILES += timer_g.rel
     115timer_g_rel_SOURCES = $(timer_rel_SOURCES)
     116timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     117timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    110118
    111 timer/$(ARCH)/$(dirstamp):
    112         @$(mkdir_p) timer/$(ARCH)
    113         @: > timer/$(ARCH)/$(dirstamp)
    114 timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
    115         ${COMPILE} -o $@ -c $<
    116 timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
    117         $(make-rel)
    118 CLEANDIRS += timer/o-optimize timer/o-debug
    119 noinst_DATA += timer/$(ARCH)/timer.rel
     119noinst_DATA += timer$(LIB_VARIANT).rel
     120endif
     121
     122all-local: $(PREINSTALL_FILES)
    120123
    121124## --
    122125
     126PREINSTALL_DIRS =
    123127PREINSTALL_FILES =
    124128
     
    126130        @$(mkdir_p) $(PROJECT_INCLUDE)
    127131        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    128 PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
     132PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
    129133
     134if mpc8260
    130135$(PROJECT_INCLUDE)/mpc8260/$(dirstamp):
    131136        @$(mkdir_p) $(PROJECT_INCLUDE)/mpc8260
    132137        @: > $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
    133 PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
     138PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
    134139
    135140$(PROJECT_INCLUDE)/mpc8260.h: include/mpc8260.h $(PROJECT_INCLUDE)/$(dirstamp)
     
    137142PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260.h
    138143
     144$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
     145        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
     146        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     147PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     148
     149$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
     151PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
     152
    139153$(PROJECT_INCLUDE)/mpc8260/console.h: include/console.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
    140154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/console.h
    141155PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/console.h
    142 
    143 $(PROJECT_INCLUDE)/mpc8260/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
    144         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/mmu.h
    145 PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/mmu.h
    146156
    147157$(PROJECT_INCLUDE)/mpc8260/cpm.h: include/cpm.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
     
    149159PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/cpm.h
    150160
    151 $(PROJECT_INCLUDE)/libcpu/$(dirstamp):
    152         @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
    153         @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    154 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    155 
    156161$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    157162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    158163PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    159164
    160 CLEANFILES = $(PREINSTALL_FILES)
     165$(PROJECT_INCLUDE)/mpc8260/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8260/$(dirstamp)
     166        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8260/mmu.h
     167PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8260/mmu.h
     168endif
     169
     170CLEANFILES += $(PREINSTALL_FILES)
     171DISTCLEANFILES = $(PREINSTALL_DIRS)
    161172
    162173include $(top_srcdir)/../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc8xx/Makefile.am

    rfaf45cc rba4eefd  
    33##
    44
    5 CLEANDIRS =
     5CLEANFILES =
    66EXTRA_DIST =
     7EXTRA_PROGRAMS =
    78noinst_DATA =
    89
     
    1011include $(top_srcdir)/../../../automake/lib.am
    1112
     13if mpc8xx
    1214include_mpc8xxdir = $(includedir)/mpc8xx
     15include_libcpudir = $(includedir)/libcpu
    1316
    1417include_HEADERS = include/mpc8xx.h
    15 include_mpc8xx_HEADERS = include/console.h include/cpm.h include/mmu.h
    1618
    17 include_libcpudir = $(includedir)/libcpu
     19## clock
     20EXTRA_PROGRAMS += clock.rel
     21CLEANFILES += clock.rel
     22clock_rel_SOURCES = clock/clock.c
     23clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     24clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     25
     26EXTRA_PROGRAMS += clock_g.rel
     27CLEANFILES += clock_g.rel
     28clock_g_rel_SOURCES = $(clock_rel_SOURCES)
     29clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     30clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     31
     32noinst_DATA += clock$(LIB_VARIANT).rel
     33
     34## console-generic
     35include_mpc8xx_HEADERS = include/console.h
     36
     37EXTRA_PROGRAMS += console-generic.rel
     38CLEANFILES += console-generic.rel
     39console_generic_rel_SOURCES = console-generic/console-generic.c
     40console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     41console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     42
     43EXTRA_PROGRAMS += console-generic_g.rel
     44CLEANFILES += console-generic_g.rel
     45console_generic_g_rel_SOURCES = $(console_generic_rel_SOURCES)
     46console_generic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     47console_generic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     48
     49noinst_DATA += console-generic$(LIB_VARIANT).rel
     50
     51## cpm
     52include_mpc8xx_HEADERS += include/cpm.h
     53
     54EXTRA_PROGRAMS += cpm.rel
     55CLEANFILES += cpm.rel
     56cpm_rel_SOURCES = cpm/cp.c cpm/dpram.c
     57cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     58cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     59
     60EXTRA_PROGRAMS += cpm_g.rel
     61CLEANFILES += cpm_g.rel
     62cpm_g_rel_SOURCES = $(cpm_rel_SOURCES)
     63cpm_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     64cpm_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     65
     66noinst_DATA += cpm$(LIB_VARIANT).rel
     67
     68## exceptions
    1869include_libcpu_HEADERS = exceptions/raw_exception.h
    1970
    20 ## clock
    21 clock_C_FILES = clock/clock.c
    22 EXTRA_DIST += $(clock_C_FILES)
     71EXTRA_PROGRAMS += exceptions.rel
     72CLEANFILES += exceptions.rel
     73exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S
     74exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     75exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    2376
    24 clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/${ARCH}/%.$(OBJEXT))
     77EXTRA_PROGRAMS += exceptions_g.rel
     78CLEANFILES += exceptions_g.rel
     79exceptions_g_rel_SOURCES = $(exceptions_rel_SOURCES)
     80exceptions_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     81exceptions_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    2582
    26 clock/$(ARCH)/$(dirstamp):
    27         @$(mkdir_p) clock/$(ARCH)
    28         @: > clock/$(ARCH)/$(dirstamp)
    29 clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
    30         ${COMPILE} -o $@ -c $<
    31 clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
    32         $(make-rel)
    33 CLEANDIRS += clock/o-optimize clock/o-debug
    34 noinst_DATA += clock/$(ARCH)/clock.rel
    35 
    36 ## console-generic
    37 console_C_FILES = console-generic/console-generic.c
    38 EXTRA_DIST += $(console_C_FILES)
    39 
    40 console_rel_OBJECTS = \
    41     $(console_C_FILES:console-generic/%.c=console-generic/${ARCH}/%.$(OBJEXT))
    42 
    43 console-generic/$(ARCH)/$(dirstamp):
    44         @$(mkdir_p) console-generic/$(ARCH)
    45         @: > console-generic/$(ARCH)/$(dirstamp)
    46 console-generic/$(ARCH)/%.$(OBJEXT): console-generic/%.c console-generic/$(ARCH)/$(dirstamp)
    47         ${COMPILE} -o $@ -c $<
    48 console-generic/$(ARCH)/console-generic.rel: $(console_rel_OBJECTS)
    49         $(make-rel)
    50 CLEANDIRS += console-generic/o-optimize console-generic/o-debug
    51 noinst_DATA += console-generic/$(ARCH)/console-generic.rel
    52 
    53 ## cpm
    54 cpm_C_FILES = cpm/cp.c cpm/dpram.c
    55 EXTRA_DIST += $(cpm_C_FILES)
    56 
    57 cpm_rel_OBJECTS = $(cpm_C_FILES:cpm/%.c=cpm/${ARCH}/%.$(OBJEXT))
    58 
    59 cpm/$(ARCH)/$(dirstamp):
    60         @$(mkdir_p) cpm/$(ARCH)
    61         @: > cpm/$(ARCH)/$(dirstamp)
    62 cpm/$(ARCH)/%.$(OBJEXT): cpm/%.c cpm/$(ARCH)/$(dirstamp)
    63         ${COMPILE} -o $@ -c $<
    64 cpm/$(ARCH)/cpm.rel: $(cpm_rel_OBJECTS)
    65         $(make-rel)
    66 CLEANDIRS += cpm/o-optimize cpm/o-debug
    67 noinst_DATA += cpm/$(ARCH)/cpm.rel
    68 
    69 ## exceptions
    70 exceptions_C_FILES = exceptions/raw_exception.c
    71 exceptions_S_FILES = exceptions/asm_utils.S
    72 EXTRA_DIST += $(exceptions_C_FILES) $(exceptions_S_FILES)
    73 
    74 exceptions_rel_OBJECTS = \
    75     $(exceptions_C_FILES:exceptions/%.c=exceptions/$(ARCH)/%.$(OBJEXT)) \
    76     $(exceptions_S_FILES:exceptions/%.S=exceptions/$(ARCH)/%.$(OBJEXT))
    77 
    78 exceptions/$(ARCH)/$(dirstamp):
    79         @$(mkdir_p) exceptions/$(ARCH)
    80         @: > exceptions/$(ARCH)/$(dirstamp)
    81 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.c exceptions/$(ARCH)/$(dirstamp)
    82         ${COMPILE} -o $@ -c $<
    83 exceptions/$(ARCH)/%.$(OBJEXT): exceptions/%.S exceptions/$(ARCH)/$(dirstamp)
    84         ${CCASCOMPILE} -o $@ -c $<
    85 exceptions/$(ARCH)/exceptions.rel: $(exceptions_rel_OBJECTS)
    86         $(make-rel)
    87 CLEANDIRS += exceptions/o-optimize exceptions/o-debug
    88 noinst_DATA += exceptions/$(ARCH)/exceptions.rel
     83noinst_DATA += exceptions$(LIB_VARIANT).rel
    8984
    9085## mmu
    91 mmu_C_FILES = mmu/mmu.c
    92 EXTRA_DIST += $(mmu_C_FILES)
     86include_mpc8xx_HEADERS += include/mmu.h
    9387
    94 mmu_rel_OBJECTS = $(mmu_C_FILES:mmu/%.c=mmu/${ARCH}/%.$(OBJEXT))
     88EXTRA_PROGRAMS += mmu.rel
     89CLEANFILES += mmu.rel
     90mmu_rel_SOURCES = mmu/mmu.c
     91mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     92mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    9593
    96 mmu/$(ARCH)/$(dirstamp):
    97         @$(mkdir_p) mmu/$(ARCH)
    98         @: > mmu/$(ARCH)/$(dirstamp)
    99 mmu/$(ARCH)/%.$(OBJEXT): mmu/%.c mmu/$(ARCH)/$(dirstamp)
    100         ${COMPILE} -o $@ -c $<
    101 mmu/$(ARCH)/mmu.rel: $(mmu_rel_OBJECTS)
    102         $(make-rel)
    103 CLEANDIRS += mmu/o-optimize mmu/o-debug
    104 noinst_DATA += mmu/$(ARCH)/mmu.rel
     94EXTRA_PROGRAMS += mmu_g.rel
     95CLEANFILES += mmu_g.rel
     96mmu_g_rel_SOURCES = $(mmu_rel_SOURCES)
     97mmu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     98mmu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     99
     100noinst_DATA += mmu$(LIB_VARIANT).rel
    105101
    106102## timer
    107 timer_C_FILES = timer/timer.c
    108 EXTRA_DIST += $(timer_C_FILES)
     103EXTRA_PROGRAMS += timer.rel
     104CLEANFILES += timer.rel
     105timer_rel_SOURCES = timer/timer.c
     106timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     107timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    109108
    110 timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/${ARCH}/%.$(OBJEXT))
     109EXTRA_PROGRAMS += timer_g.rel
     110CLEANFILES += timer_g.rel
     111timer_g_rel_SOURCES = $(timer_rel_SOURCES)
     112timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     113timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    111114
    112 timer/$(ARCH)/$(dirstamp):
    113         @$(mkdir_p) timer/$(ARCH)
    114         @: > timer/$(ARCH)/$(dirstamp)
    115 timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
    116         ${COMPILE} -o $@ -c $<
    117 timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
    118         $(make-rel)
    119 CLEANDIRS += timer/o-optimize timer/o-debug
    120 noinst_DATA += timer/$(ARCH)/timer.rel
     115noinst_DATA += timer$(LIB_VARIANT).rel
     116endif
    121117
    122118## --
    123119all-local: $(PREINSTALL_FILES)
    124120
     121PREINSTALL_DIRS =
    125122PREINSTALL_FILES =
    126123
     
    128125        @$(mkdir_p) $(PROJECT_INCLUDE)
    129126        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    130 PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
     127PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
    131128
     129if mpc8xx
    132130$(PROJECT_INCLUDE)/mpc8xx/$(dirstamp):
    133131        @$(mkdir_p) $(PROJECT_INCLUDE)/mpc8xx
    134132        @: > $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
    135 PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
     133PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
     134
     135$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
     136        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
     137        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     138PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    136139
    137140$(PROJECT_INCLUDE)/mpc8xx.h: include/mpc8xx.h $(PROJECT_INCLUDE)/$(dirstamp)
     
    147150PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/cpm.h
    148151
    149 $(PROJECT_INCLUDE)/mpc8xx/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
    150         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/mmu.h
    151 PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/mmu.h
    152 
    153 $(PROJECT_INCLUDE)/libcpu/$(dirstamp):
    154         @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
    155         @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    156 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    157 
    158152$(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    159153        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    160154PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    161155
    162 CLEANFILES = $(PREINSTALL_FILES)
     156$(PROJECT_INCLUDE)/mpc8xx/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp)
     157        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/mmu.h
     158PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/mmu.h
     159endif
     160
     161CLEANFILES += $(PREINSTALL_FILES)
     162DISTCLEANFILES = $(PREINSTALL_DIRS)
    163163
    164164include $(top_srcdir)/../../../automake/local.am
  • c/src/lib/libcpu/powerpc/ppc403/Makefile.am

    rfaf45cc rba4eefd  
    33##
    44
    5 CLEANDIRS =
     5CLEANFILES =
    66EXTRA_DIST =
     7EXTRA_PROGRAMS =
    78noinst_DATA =
    89
     
    1011include $(top_srcdir)/../../../automake/lib.am
    1112
     13if ppc403
    1214## clock
    13 clock_C_FILES = clock/clock.c
    14 EXTRA_DIST += $(clock_C_FILES)
     15EXTRA_PROGRAMS += clock.rel
     16CLEANFILES += clock.rel
     17clock_rel_SOURCES = clock/clock.c
     18clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     19clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    1520
    16 clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=clock/$(ARCH)/%.$(OBJEXT))
     21EXTRA_PROGRAMS += clock_g.rel
     22CLEANFILES += clock_g.rel
     23clock_g_rel_SOURCES = $(clock_rel_SOURCES)
     24clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     25clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    1726
    18 clock/$(ARCH)/$(dirstamp):
    19         @$(mkdir_p) clock/$(ARCH)
    20         @: > clock/$(ARCH)/$(dirstamp)
    21 clock/$(ARCH)/%.$(OBJEXT): clock/%.c clock/$(ARCH)/$(dirstamp)
    22         ${COMPILE} -o $@ -c $<
    23 clock/$(ARCH)/clock.rel: $(clock_rel_OBJECTS)
    24         $(make-rel)
    25 CLEANDIRS += clock/o-optimize clock/o-debug
    26 noinst_DATA += clock/$(ARCH)/clock.rel
     27noinst_DATA += clock$(LIB_VARIANT).rel
    2728
    2829## console
    29 if ppc403
    30 console_C_FILES = console/console.c
     30EXTRA_PROGRAMS += console.rel
     31CLEANFILES += console.rel
     32if ppc405
     33console_rel_SOURCES = console/console405.c
     34else
     35console_rel_SOURCES = console/console.c
    3136endif
    32 EXTRA_DIST += console/console.c
    33 if ppc405
    34 console_C_FILES = console/console405.c
    35 endif
    36 EXTRA_DIST += console/console405.c
     37console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     38console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    3739
    38 console_rel_OBJECTS = \
    39     $(console_C_FILES:console/%.c=console/$(ARCH)/%.$(OBJEXT))
    40 console/$(ARCH)/$(dirstamp):
    41         @$(mkdir_p) console/$(ARCH)
    42         @: > console/$(ARCH)/$(dirstamp)
    43 console/$(ARCH)/%.$(OBJEXT): console/%.c console/$(ARCH)/$(dirstamp)
    44         ${COMPILE} -o $@ -c $<
    45 console/$(ARCH)/console.rel: $(console_rel_OBJECTS)
    46         $(make-rel)
    47 CLEANDIRS += console/o-optimize console/o-debug
    48 noinst_DATA += console/$(ARCH)/console.rel
     40EXTRA_PROGRAMS += console_g.rel
     41CLEANFILES += console_g.rel
     42console_g_rel_SOURCES = $(console_rel_SOURCES)
     43console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     44console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     45
     46noinst_DATA += console$(LIB_VARIANT).rel
    4947
    5048## ictrl
    5149include_HEADERS = ictrl/ictrl.h
    52 ictrl_C_FILES = ictrl/ictrl.c
    53 EXTRA_DIST += $(ictrl_C_FILES)
    5450
    55 ictrl_rel_OBJECTS = $(ictrl_C_FILES:ictrl/%.c=ictrl/$(ARCH)/%.$(OBJEXT))
    56 ictrl/$(ARCH)/$(dirstamp):
    57         @$(mkdir_p) ictrl/$(ARCH)
    58         @: > ictrl/$(ARCH)/$(dirstamp)
    59 ictrl/$(ARCH)/%.$(OBJEXT): ictrl/%.c ictrl/$(ARCH)/$(dirstamp)
    60         ${COMPILE} -o $@ -c $<
    61 ictrl/$(ARCH)/ictrl.rel: $(ictrl_rel_OBJECTS)
    62         $(make-rel)
    63 CLEANDIRS += ictrl/o-optimize ictrl/o-debug
    64 noinst_DATA += ictrl/$(ARCH)/ictrl.rel
     51EXTRA_PROGRAMS += ictrl.rel
     52CLEANFILES += ictrl.rel
     53ictrl_rel_SOURCES = ictrl/ictrl.c ictrl/ictrl.h
     54ictrl_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     55ictrl_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     56
     57EXTRA_PROGRAMS += ictrl_g.rel
     58CLEANFILES += ictrl_g.rel
     59ictrl_g_rel_SOURCES = $(ictrl_rel_SOURCES)
     60ictrl_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     61ictrl_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     62
     63noinst_DATA += ictrl$(LIB_VARIANT).rel
    6564
    6665## timer
    67 timer_C_FILES = timer/timer.c
     66EXTRA_PROGRAMS += timer.rel
     67CLEANFILES += timer.rel
     68timer_rel_SOURCES = timer/timer.c
     69timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     70timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    6871
    69 timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))
     72EXTRA_PROGRAMS += timer_g.rel
     73CLEANFILES += timer_g.rel
     74timer_g_rel_SOURCES = $(timer_rel_SOURCES)
     75timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     76timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    7077
    71 timer/$(ARCH)/$(dirstamp):
    72         @$(mkdir_p) timer/$(ARCH)
    73         @: > timer/$(ARCH)/$(dirstamp)
    74 timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
    75         ${COMPILE} -o $@ -c $<
    76 timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
    77         $(make-rel)
    78 CLEANDIRS += timer/o-optimize timer/o-debug
    79 noinst_DATA += timer/$(ARCH)/timer.rel
     78noinst_DATA += timer$(LIB_VARIANT).rel
    8079
    8180## tty_drv
    8281if ppc405
    8382include_HEADERS += tty_drv/tty_drv.h
    84 tty_drv_C_FILES = tty_drv/tty_drv.c
    85 EXTRA_DIST += $(tty_drv_C_FILES)
    8683
    87 tty_drv_rel_OBJECTS = \
    88     $(tty_drv_C_FILES:tty_drv/%.c=tty_drv/$(ARCH)/%.$(OBJEXT))
     84EXTRA_PROGRAMS += tty_drv.rel
     85CLEANFILES += tty_drv.rel
     86tty_drv_rel_SOURCES = tty_drv/tty_drv.c tty_drv/tty_drv.h
     87tty_drv_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     88tty_drv_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    8989
    90 tty_drv/$(ARCH)/$(dirstamp):
    91         @$(mkdir_p) tty_drv/$(ARCH)
    92         @: > tty_drv/$(ARCH)/$(dirstamp)
    93 tty_drv/$(ARCH)/%.$(OBJEXT): tty_drv/%.c tty_drv/$(ARCH)/$(dirstamp)
    94         ${COMPILE} -o $@ -c $<
    95 tty_drv/$(ARCH)/tty_drv.rel: $(tty_drv_rel_OBJECTS)
    96         $(make-rel)
    97 CLEANDIRS += tty_drv/o-optimize tty_drv/o-debug
    98 noinst_DATA += tty_drv/$(ARCH)/tty_drv.rel
     90EXTRA_PROGRAMS += tty_drv_g.rel
     91CLEANFILES += tty_drv_g.rel
     92tty_drv_g_rel_SOURCES = $(tty_drv_rel_SOURCES)
     93tty_drv_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     94tty_drv_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     95
     96noinst_DATA += tty_drv$(LIB_VARIANT).rel
    9997endif
    10098
    10199## vectors
    102 vectors_S_FILES = vectors/vectors.S vectors/align_h.S
    103 EXTRA_DIST += $(vectors_S_FILES)
     100EXTRA_PROGRAMS += vectors.rel
     101CLEANFILES += vectors.rel
     102vectors_rel_SOURCES = vectors/vectors.S vectors/align_h.S
     103vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     104vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    104105
    105 vectors_rel_OBJECTS = \
    106     $(vectors_S_FILES:vectors/%.S=vectors/${ARCH}/%.$(OBJEXT))
     106EXTRA_PROGRAMS += vectors_g.rel
     107CLEANFILES += vectors_g.rel
     108vectors_g_rel_SOURCES = $(vectors_rel_SOURCES)
     109vectors_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     110vectors_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    107111
    108 vectors/$(ARCH)/$(dirstamp):
    109         @$(mkdir_p) vectors/$(ARCH)
    110         @: > vectors/$(ARCH)/$(dirstamp)
    111 vectors/$(ARCH)/%.$(OBJEXT): vectors/%.S vectors/$(ARCH)/$(dirstamp)
    112         ${CCASCOMPILE} -o $@ -c $<
    113 vectors/$(ARCH)/vectors.rel: $(vectors_rel_OBJECTS)
    114         $(make-rel)
    115 CLEANDIRS += vectors/o-optimize vectors/o-debug
    116 noinst_DATA += vectors/$(ARCH)/vectors.rel
     112noinst_DATA += vectors$(LIB_VARIANT).rel
     113endif
    117114
    118115## --
    119116all-local: $(PREINSTALL_FILES)
    120117
     118PREINSTALL_DIRS =
    121119PREINSTALL_FILES =
    122120
     
    124122        @$(mkdir_p) $(PROJECT_INCLUDE)
    125123        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    126 PREINSTALL_FILES += $(PROJECT_INCLUDE)/$(dirstamp)
     124PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
     125
     126if ppc403
    127127
    128128$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
     
    135135PREINSTALL_FILES += $(PROJECT_INCLUDE)/tty_drv.h
    136136endif
     137endif
    137138
    138 CLEANFILES = $(PREINSTALL_FILES)
     139CLEANFILES += $(PREINSTALL_FILES)
     140DISTCLEANFILES = $(PREINSTALL_DIRS)
    139141
    140142include $(top_srcdir)/../../../automake/local.am
  • c/src/lib/libcpu/powerpc/shared/Makefile.am

    rfaf45cc rba4eefd  
    77
    88# include
    9 
     9if shared
    1010libcpuspec_C_FILES = include/cpuIdent.c
    1111libcpuspec_OBJS = \
     
    5353
    5454all-local: $(PREINSTALL_FILES) include/$(ARCH)/libcpuspec.a $(src_O_FILES) $(common_O_FILES)
     55endif
    5556
     57PREINSTALL_DIRS =
    5658PREINSTALL_FILES =
    5759
     60if shared
    5861$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
    5962        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
    6063        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    61 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     64PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
    6265
    6366$(PROJECT_INCLUDE)/libcpu/spr.h: include/spr.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
     
    9699        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/cache.h
    97100PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/cache.h
     101endif
    98102
    99103CLEANFILES = $(PREINSTALL_FILES)
     104DISTCLEANFILES = $(PREINSTALL_DIRS)
    100105
    101106include $(top_srcdir)/../../../automake/local.am
Note: See TracChangeset for help on using the changeset viewer.