Changeset 4e36a2f in rtems for c/src/lib/libcpu/powerpc


Ignore:
Timestamp:
Jan 31, 2000, 3:27:02 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bb18b95
Parents:
8fbdf07
Message:

Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@…> that contain:

  • Modifications, (minor) corrections, cleanups to most existing Makefile.ams
  • Adds automake support to all remaining BSPs which have not yet been converted to automake.
  • Makefile.am for all remaining wrapup/Makefile.ams
Location:
c/src/lib/libcpu/powerpc
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc505/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C sources
    109C_FILES = timer.c
    1110
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = timer.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc6xx/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 ## C sources
    87C_FILES = c_clock.c
    98
    109H_FILES = c_clock.h
    11 noinst_HEADERS = $(H_FILES)
    1210
    13 c_clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11c_clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1412
    1513include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2119        $(INSTALL_DATA) $< $@
    2220
    23 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
    24 $(PROJECT_INCLUDE)/libcpu/c_clock.h
    25 
    2621#
    2722# (OPTIONAL) Add local stuff here using +=
     
    3025AM_CFLAGS = $(CFLAGS_OS_V)
    3126
    32 all-local: ${ARCH} $(PREINSTALL_FILES) $(c_clock_rel_OBJECTS)
     27PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
     28    $(PROJECT_INCLUDE)/libcpu/c_clock.h
    3329
    34 EXTRA_DIST = $(C_FILES)
     30all-local: $(ARCH) $(PREINSTALL_FILES) $(c_clock_rel_OBJECTS)
     31
     32EXTRA_DIST = c_clock.c c_clock.h
    3533
    3634include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc6xx/exceptions/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/exceptions.rel
     7PGM = $(ARCH)/exceptions.rel
    88
    9 ## C sources
    109C_FILES = raw_exception.c
    1110
    12 ## Assembly sources
    1311S_FILES = asm_utils.S
    1412
    1513H_FILES = raw_exception.h
    16 noinst_HEADERS = $(H_FILES)
    1714
    18 exceptions_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     15exceptions_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) \
     16    $(S_FILES:%.S=$(ARCH)/%.o)
    1917
    2018include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2523$(PROJECT_INCLUDE)/libcpu/%.h: %.h
    2624        $(INSTALL_DATA) $< $@
    27 
    28 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
    29 $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    3025
    3126#
     
    3833        $(make-rel)
    3934
    40 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM)
     35PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
     36    $(PROJECT_INCLUDE)/libcpu/raw_exception.h
    4137
    42 EXTRA_DIST = $(C_FILES) $(S_FILES)
     38all-local: $(ARCH) $(PREINSTALL_FILES) $(exceptions_rel_OBJECTS) $(PGM)
     39
     40.PRECIOUS: $(PGM)
     41
     42EXTRA_DIST = asm_utils.S raw_exception.c raw_exception.h
    4343
    4444include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc6xx/mmu/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/mmu.rel
     7PGM = $(ARCH)/mmu.rel
    88
    9 ## C sources
    109C_FILES = bat.c
    1110
    12 ## Assembly sources
    1311S_FILES = mmuAsm.S
    1412
    1513H_FILES = bat.h
    16 noinst_HEADERS = $(H_FILES)
    1714
    18 mmu_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     15mmu_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1916
    2017include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2522$(PROJECT_INCLUDE)/libcpu/%.h: %.h
    2623        $(INSTALL_DATA) $< $@
    27 
    28 PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu $(PROJECT_INCLUDE)/libcpu/bat.h
    2924
    3025#
     
    3732        $(make-rel)
    3833
    39 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM)
     34PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
     35    $(PROJECT_INCLUDE)/libcpu/bat.h
    4036
    41 EXTRA_DIST = $(C_FILES) $(S_FILES)
     37all-local: $(ARCH) $(PREINSTALL_FILES) $(mmu_rel_OBJECTS) $(PGM)
     38
     39.PRECIOUS: $(PGM)
     40
     41EXTRA_DIST = bat.c bat.h mmuAsm.S
    4242
    4343include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc6xx/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C sources
    109C_FILES = timer.c
    1110
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = timer.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc821/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C sources
    109C_FILES = clock.c
    1110
    12 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = clock.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc821/console-generic/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console-generic.rel
     7PGM = $(ARCH)/console-generic.rel
    88
    9 ## C sources
    109C_FILES = console-generic.c
    1110
    12 console_generic_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11console_generic_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(console_generic_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = console-generic.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc821/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C sources
    109C_FILES = timer.c
    1110
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = timer.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc860/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C sources
    109C_FILES = clock.c
    1110
    12 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = clock.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc860/console-generic/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console-generic.rel
     7PGM = $(ARCH)/console-generic.rel
    88
    9 ## C sources
    109C_FILES = console-generic.c
    1110
    12 console_generic_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11console_generic_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(console_generic_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = console-generic.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/mpc860/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C sources
    109C_FILES = timer.c
    1110
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = timer.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/new_exception_processing/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 # C source names, if any, go here -- minus the .c
    87C_FILES = cpu.c
    98C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     
    1312noinst_HEADERS =  $(ROOT_H_FILES) $(RTEMS_SCORE_H_FILES)
    1413
    15 # Assembly source names, if any, go here -- minus the .S
    1614S_FILES = cpu_asm.S
    1715S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
  • c/src/lib/libcpu/powerpc/ppc403/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C sources
    109C_FILES = clock.c
    1110
    12 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = clock.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/ppc403/console/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console.rel
     7PGM = $(ARCH)/console.rel
    88
    9 ## C sources
    109C_FILES = console.c
    1110
    12 console_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11console_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(console_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES) console.c.polled
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = console.c console.c.polled
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/ppc403/ictrl/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/ictrl.rel
     7PGM = $(ARCH)/ictrl.rel
    88
    9 ## C sources
    109C_FILES = ictrl.c
    1110
    1211H_FILES = ictrl.h
    13 noinst_HEADERS = $(H_FILES)
    1412
    15 ictrl_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     13ictrl_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1614
    1715include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2220$(PROJECT_INCLUDE)/%.h: %.h
    2321        $(INSTALL_DATA) $< $@
    24 
    25 TMPINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/ictrl.h
    2622
    2723#
     
    3430        $(make-rel)
    3531
    36 all-local: ${ARCH} $(PGM) $(TMPINSTALL_FILES)
     32TMPINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/ictrl.h
    3733
    38 EXTRA_DIST = $(C_FILES)
     34all-local: $(ARCH) $(ictrl_rel_OBJECTS) $(PGM) $(TMPINSTALL_FILES)
     35
     36.PRECIOUS: $(PGM)
     37
     38EXTRA_DIST = ictrl.c ictrl.h
    3939
    4040include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/ppc403/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C sources
    109C_FILES = timer.c
    1110
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2423        $(make-rel)
    2524
    26 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2726
    28 EXTRA_DIST = $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = timer.c
    2930
    3031include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/powerpc/shared/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 ## C source names
    87C_FILES = cpuIdent.c
    9 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     8C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    109
    1110H_FILES = cpu.h spr.h io.h mmu.h page.h byteorder.h pgtable.h
    12 noinst_HEADERS = $(H_FILES)
    1311
    14 ## Assembly source names
    15 S_FILES =
    16 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
    17 
    18 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    1913
    2014include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    2115include $(top_srcdir)/../../../../../automake/lib.am
    2216
    23 LIB = ${ARCH}/libcpuspec.a
     17LIB = $(ARCH)/libcpuspec.a
    2418
    2519#
     
    2721#
    2822
    29 $(LIB): ${OBJS}
     23$(LIB): $(OBJS)
    3024        $(make-library)
    31 
    32 PREINSTALL_FILES += \
    33 $(PROJECT_INCLUDE)/libcpu \
    34 $(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
    3525
    3626$(PROJECT_INCLUDE)/libcpu:
     
    4030        $(INSTALL_DATA) $< $@
    4131
    42 all-local: ${ARCH} $(PREINSTALL_FILES) $(LIB)
     32PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
     33    $(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
    4334
    44 EXTRA_DIST = $(C_FILES) $(S_FILES)
     35all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB)
     36
     37.PRECIOUS: $(LIB)
     38
     39EXTRA_DIST = byteorder.h cpu.h cpuIdent.c io.h mmu.h page.h pgtable.h spr.h
    4540
    4641include $(top_srcdir)/../../../../../automake/local.am
Note: See TracChangeset for help on using the changeset viewer.