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


Ignore:
Timestamp:
Jan 31, 2000, 3:27:02 PM (22 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
Files:
41 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/hppa1.1/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C source names
    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
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
     23all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    2524
    26 EXTRA_DIST = $(C_FILES)
     25.PRECIOUS: $(PGM)
     26
     27EXTRA_DIST = clock.c
    2728
    2829include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/hppa1.1/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = runway.h semaphore.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
    1110#       file name conflicts
    12 
    13 TMPINSTALL_FILES = \
    14 $(PROJECT_INCLUDE)/hppa1.1 \
    15 $(H_FILES:%=$(PROJECT_INCLUDE)/hppa1.1/%)
    1611
    1712$(PROJECT_INCLUDE)/hppa1.1:
     
    2116        $(INSTALL_DATA) $@ $<
    2217
     18TMPINSTALL_FILES += $(PROJECT_INCLUDE)/hppa1.1 \
     19    $(H_FILES:%.h=$(PROJECT_INCLUDE)/hppa1.1/%.h)
     20
    2321all-local: $(TMPINSTALL_FILES)
    2422
     23EXTRA_DIST = runway.h semaphore.h
     24
    2525include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/hppa1.1/milli/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/milli.rel
     7PGM = $(ARCH)/milli.rel
    88
    9 ## Assembly source names
    109S_FILES = milli.S
    1110
    12 milli_rel_OBJECTS = $(S_FILES:%.S=${ARCH}/%.o)
     11milli_rel_OBJECTS = $(S_FILES:%.S=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
     23all-local: $(ARCH) $(milli_rel_OBJECTS) $(PGM)
    2524
    26 EXTRA_DIST = $(S_FILES)
     25.PRECIOUS: $(PGM)
     26
     27EXTRA_DIST = milli.S
    2728
    2829include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/hppa1.1/semaphore/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/semaphore.rel
     7PGM = $(ARCH)/semaphore.rel
    88
    9 ## C source names
    109C_FILES = semaphore.c
    1110
    12 semaphore_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     11semaphore_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
     23all-local: $(ARCH) $(semaphore_rel_OBJECTS) $(PGM)
    2524
    26 EXTRA_DIST = $(C_FILES)
     25.PRECIOUS: $(PGM)
     26
     27EXTRA_DIST = semaphore.c
    2728
    2829include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/hppa1.1/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C source names
    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
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
     23all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2524
    26 EXTRA_DIST = $(C_FILES)
     25.PRECIOUS: $(PGM)
     26
     27EXTRA_DIST = timer.c
    2728
    2829include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/i386/Makefile.am

    r8fbdf07 r4e36a2f  
    99LIB = $(ARCH)/$(LIBNAME).a
    1010
    11 # C source names, if any, go here -- minus the .c
    1211C_FILES = cpu.c displayCpu.c page.c
    13 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1413
    1514H_FILES = cpu.h registers.h cpuModel.h
    16 noinst_HEADERS = $(H_FILES)
    1715
    18 # Assembly source names, if any, go here -- minus the .s
    1916S_FILES = cpu_asm.S cpuModel.S
    20 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     17S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    2118
    2219OBJS = $(C_O_FILES) $(S_O_FILES)
     
    2522include $(top_srcdir)/../../../../../automake/lib.am
    2623
    27 $(LIB): ${OBJS}
     24$(LIB): $(OBJS)
    2825        $(make-library)
    29 
    30 PREINSTALL_FILES = $(PROJECT_INCLUDE)/libcpu \
    31     $(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
    3226
    3327$(PROJECT_INCLUDE)/libcpu:
     
    3731        $(INSTALL_DATA) $< $@
    3832
    39 TMPINSTALL_FILES += \
    40 $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
    41 
    4233$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
    4334        $(INSTALL_DATA) $< $@
    4435
     36PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
     37    $(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
    4538
    46 all-local: ${ARCH} $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
     39TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
    4740
    48 EXTRA_DIST = $(C_FILES) $(S_FILES)
     41all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
     42
     43.PRECIOUS: $(LIB)
     44
     45EXTRA_DIST = cpu.c cpu.h cpuModel.S cpuModel.h cpu_asm.S displayCpu.c page.c \
     46    registers.h
    4947
    5048include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/m68k/m68040/fpsp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/fpsp.rel
     7PGM = $(ARCH)/fpsp.rel
    88
    99include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    1010include $(top_srcdir)/../../../../../automake/lib.am
    1111
    12 # C source names, if any, go here -- minus the .c
    1312C_FILES = rtems_fpsp.c
    14 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1514
    1615H_FILES = fpsp.defs
    17 noinst_HEADERS = fpsp.defs
    1816
    19 # Assembly source names, if any, go here -- minus the .S
    2017S_FILES = bindec.S binstr.S bugfix.S decbin.S do_func.S gen_except.S \
    2118    get_op.S kernel_ex.S res_func.S round.S rtems_skel.S sacos.S sasin.S \
     
    2421    tbldo.S util.S x_bsun.S x_fline.S x_operr.S x_ovfl.S x_snan.S x_store.S \
    2522    x_unfl.S x_unimp.S x_unsupp.S
    26 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     23S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    2724
    2825OBJS = $(C_O_FILES) $(S_O_FILES)
     
    3431AM_CFLAGS += $(CFLAGS_OS_V)
    3532
    36 $(PGM): ${OBJS}
     33$(PGM): $(OBJS)
    3734        $(make-rel)
    3835
    3936if m68040
    40 all-local: ${ARCH} $(PGM)
    41 else
    42 all-local:
     37all-local: $(ARCH) $(OBJS) $(PGM)
    4338endif
    4439
    45 EXTRA_DIST = $(S_FILES) $(C_FILES)
     40.PRECIOUS: $(PGM)
     41
     42EXTRA_DIST = README bindec.S binstr.S bugfix.S decbin.S do_func.S fpsp.defs \
     43    gen_except.S get_op.S kernel_ex.S res_func.S round.S rtems_fpsp.c \
     44    rtems_skel.S sacos.S sasin.S satan.S satanh.S scale.S scosh.S setox.S \
     45    sgetem.S sint.S slog2.S slogn.S smovecr.S srem_mod.S ssin.S ssinh.S \
     46    stan.S stanh.S sto_res.S stwotox.S tbldo.S util.S x_bsun.S x_fline.S \
     47    x_operr.S x_ovfl.S x_snan.S x_store.S x_unfl.S x_unimp.S x_unsupp.S
    4648
    4749include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/mips/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C source names
    109C_FILES = ckinit.c
    1110
    12 ## Assembly source names
    1311S_FILES = clock.S
    1412
    1513H_FILES = clock.h
    16 noinst_HEADERS = $(H_FILES)
    1714
    18 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     15clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1916
    2017include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2825        $(make-rel)
    2926
    30 all-local: ${ARCH} $(PGM)
     27all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    3128
    32 EXTRA_DIST = $(S_FILES) $(C_FILES)
     29.PRECIOUS: $(PGM)
     30
     31EXTRA_DIST = ckinit.c clock.S clock.h
    3332
    3433include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/mips/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C source names
    109C_FILES = timer.c
    1110
    12 ## Assembly source names
    1311S_FILES = gettime.S
    1412
    15 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     13timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1614
    1715include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2523        $(make-rel)
    2624
    27 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2826
    29 EXTRA_DIST = $(S_FILES) $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = gettime.S timer.c
    3030
    3131include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/mips64orion/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C source names
    109C_FILES = ckinit.c
    1110
    12 ## Assembly source names
    1311S_FILES = clock.S
    1412
    1513H_FILES = clock.h
    16 noinst_HEADERS = $(H_FILES)
    1714
    18 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     15clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1916
    2017include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2825        $(make-rel)
    2926
    30 all-local: ${ARCH} $(PGM)
     27all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
    3128
    32 EXTRA_DIST = $(S_FILES) $(C_FILES)
     29.PRECIOUS: $(PGM)
     30
     31EXTRA_DIST = ckinit.c clock.S clock.h
    3332
    3433include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/mips64orion/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C source names
    109C_FILES = timer.c
    1110
    12 ## Assembly source names
    1311S_FILES = gettime.S
    1412
    15 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     13timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1614
    1715include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2523        $(make-rel)
    2624
    27 all-local: ${ARCH} $(PGM)
     25all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
    2826
    29 EXTRA_DIST = $(S_FILES) $(C_FILES)
     27.PRECIOUS: $(PGM)
     28
     29EXTRA_DIST = gettime.S timer.c
    3030
    3131include $(top_srcdir)/../../../../../automake/local.am
  • 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
  • c/src/lib/libcpu/sh/sh7032/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C source names
    109C_FILES = ckinit.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
    18 
    19 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2821AM_CFLAGS += $(CFLAGS_OS_V)
    2922
    30 ${PGM}: ${OBJS}
    31         ${make-rel}
     23$(PGM): $(OBJS)
     24        $(make-rel)
    3225
    33 all: ${ARCH} $(PGM)
     26all-local: $(ARCH) $(OBJS) $(PGM)
    3427
    35 EXTRA_DIST = $(C_FILES) $(S_FILES)
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = ckinit.c
    3631
    3732include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7032/delay/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/delay.rel
     7PGM = $(ARCH)/delay.rel
    88
    9 ## C source names
    109C_FILES = delay.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
    12 
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1811
    1912OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = delay.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7032/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = null.h sci.h sh7_pfc.h sh7_sci.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
    1110#       file name conflicts
    12 
    13 TMPINSTALL_FILES = $(PROJECT_INCLUDE)/sh \
    14     $(H_FILES:%=$(PROJECT_INCLUDE)/sh/%)
    1511
    1612$(PROJECT_INCLUDE)/sh:
     
    2016        $(INSTALL_DATA) $< $@
    2117
     18TMPINSTALL_FILES += $(PROJECT_INCLUDE)/sh \
     19    $(H_FILES:%=$(PROJECT_INCLUDE)/sh/%)
     20
    2221all-local: $(TMPINSTALL_FILES)
    2322
     23EXTRA_DIST = null.h sci.h sh7_pfc.h sh7_sci.h
     24
    2425include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7032/null/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/null.rel
     7PGM = $(ARCH)/null.rel
    88
    9 ## C source names
    109C_FILES = open.c close.c read.c write.c init.c cntrl.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
    12 
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1811
    1912OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = close.c cntrl.c init.c open.c read.c write.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7032/sci/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/sci.rel
     7PGM = $(ARCH)/sci.rel
    88
    9 ## C source names
    109C_FILES = sci.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
    18 
    19 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = sci.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7032/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    44
    55AUTOMAKE_OPTIONS = foreign 1.4
    6 PGM = ${ARCH}/timer.rel
    76
    8 ## C source names
     7PGM = $(ARCH)/timer.rel
     8
    99C_FILES = timer.c
    10 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1111
    12 H_FILES =
    13 
    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
    21 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2216
    2317#
     
    2519#
    2620
    27 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2822        $(make-rel)
    2923
    30 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3125
    32 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = timer.c
    3329
    3430include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7045/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/clock.rel
     7PGM = $(ARCH)/clock.rel
    88
    9 ## C source names
    109C_FILES = ckinit.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.s=${ARCH}/%.o)
    18 
    19 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2821AM_CFLAGS += $(CFLAGS_OS_V)
    2922
    30 ${PGM}: ${OBJS}
    31         ${make-rel}
     23$(PGM): $(OBJS)
     24        $(make-rel)
    3225
    33 all: ${ARCH} $(PGM)
     26all-local: $(ARCH) $(OBJS) $(PGM)
    3427
    35 EXTRA_DIST = $(C_FILES) $(S_FILES)
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = ckinit.c
    3631
    3732include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7045/include/Makefile.am

    r8fbdf07 r4e36a2f  
    1010#       file name conflicts
    1111
    12 TMPINSTALL_FILES = \
    13 $(PROJECT_INCLUDE)/sh \
    14 $(H_FILES:%=$(PROJECT_INCLUDE)/sh/%)
    15 
    1612$(PROJECT_INCLUDE)/sh:
    1713        $(mkinstalldirs) $@
     
    2016        $(INSTALL_DATA) $< $@
    2117
     18TMPINSTALL_FILES += $(PROJECT_INCLUDE)/sh \
     19    $(H_FILES:%=$(PROJECT_INCLUDE)/sh/%)
     20
    2221all-local: $(TMPINSTALL_FILES)
    2322
     23EXTRA_DIST = io_types.h null.h sci.h sh7_pfc.h sh7_sci.h
     24
    2425include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7045/null/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/null.rel
     7PGM = $(ARCH)/null.rel
    88
    9 ## C source names
    109C_FILES = open.c close.c read.c write.c init.c cntrl.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
    12 
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1811
    1912OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = close.c cntrl.c init.c open.c read.c write.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7045/sci/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/sci.rel
     7PGM = $(ARCH)/sci.rel
    88
    9 ## C source names
    109C_FILES = sci.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
    18 
    19 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = sci.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sh/sh7045/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## C source names
    109C_FILES = timer.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    13 H_FILES =
    14 
    15 ## Assembly source names
    16 S_FILES =
    17 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
    18 
    19 OBJS = $(C_O_FILES) $(S_O_FILES)
     12OBJS = $(C_O_FILES)
    2013
    2114include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    22 include $(RTEMS_ROOT)/make/leaf.cfg
     15include $(top_srcdir)/../../../../../automake/lib.am
    2316
    2417#
     
    2619#
    2720
    28 ${PGM}: ${OBJS}
     21$(PGM): $(OBJS)
    2922        $(make-rel)
    3023
    31 all: ${ARCH} $(PGM)
     24all-local: $(ARCH) $(OBJS) $(PGM)
    3225
    33 EXTRA_DIST = $(C_FILES) $(S_FILES)
     26.PRECIOUS: $(PGM)
     27
     28EXTRA_DIST = timer.c
    3429
    3530include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sparc/reg_win/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/reg_win.rel
     7PGM = $(ARCH)/reg_win.rel
    88
    99S_FILES = window.S
    10 reg_win_rel_OBJECTS = $(S_FILES:%.S=${ARCH}/%.o)
     10reg_win_rel_OBJECTS = $(S_FILES:%.S=$(ARCH)/%.o)
    1111
    1212include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2222        $(make-rel)
    2323
    24 all-local: ${ARCH} $(PGM)
    25 
    2624# the .rel file built here will be put into libbsp.a by
    2725#    libbsp/sparc/BSP/wrapup/Makefile
    2826
    29 EXTRA_DIST = $(S_FILES)
     27all-local: $(ARCH) $(reg_win_rel_OBJECTS) $(PGM)
     28
     29.PRECIOUS: $(PGM)
     30
     31EXTRA_DIST = window.S
    3032
    3133include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libcpu/sparc/syscall/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/syscall.rel
     7PGM = $(ARCH)/syscall.rel
    88
    99## Assembly sources
     
    1111
    1212H_FILES = syscall.h
    13 noinst_HEADERS = $(H_FILES)
    1413
    15 syscall_rel_OBJECTS = $(S_FILES:%.S=${ARCH}/%.o)
     14syscall_rel_OBJECTS = $(S_FILES:%.S=$(ARCH)/%.o)
    1615
    1716include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2726        $(make-rel)
    2827
    29 all-local: ${ARCH} $(PGM)
    30 
    31 EXTRA_DIST = $(S_FILES)
    32 
    3328# the .rel file built here will be put into libbsp.a by
    3429#    libbsp/sparc/BSP/wrapup/Makefile
    3530
     31all-local: $(ARCH) $(syscall_rel_OBJECTS) $(PGM)
     32
     33.PRECIOUS: $(PGM)
     34
     35EXTRA_DIST = syscall.S syscall.h
     36
    3637include $(top_srcdir)/../../../../../automake/local.am
Note: See TracChangeset for help on using the changeset viewer.