Changeset 4e36a2f in rtems for c/src/lib


Ignore:
Timestamp:
01/31/00 15:27:02 (23 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
Files:
213 added
207 deleted
129 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/hppa1.1/simhppa/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/shmsupp.rel
     7PGM = $(ARCH)/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c cause_intr.c getcfg.c lock.c mpisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    2423
    2524if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
     25all-local: $(ARCH) $(OBJS) $(PGM)
    2926endif
    3027
    3128# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3229
    33 EXTRA_DIST = $(C_FILES) README
     30EXTRA_DIST = addrconv.c cause_intr.c getcfg.c lock.c mpisr.c README
    3431
    3532include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/i386ex/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 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2120        $(make-rel)
    2221
    23 all-local: ${ARCH} $(PGM)
    24 
    2522# the .rel file built here will be put into libbsp.a by
    2623#       ../wrapup/Makefile
     24
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
     26
     27.PRECIOUS: $(PGM)
    2728
    2829EXTRA_DIST = ckinit.c
  • c/src/lib/libbsp/i386/i386ex/console/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared/io
    88
    9 PGM = ${ARCH}/console.rel
     9PGM = $(ARCH)/console.rel
    1010
    1111## sources
    1212C_FILES = console.c printk.c
    1313
    14 console_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     14console_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1515
    1616include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2424        $(make-rel)
    2525
    26 all-local: ${ARCH} $(PGM)
    27 
    2826# the .rel file built here will be put into libbsp.a by
    2927#       ../wrapup/Makefile
     28
     29all-local: $(ARCH) $(console_rel_OBJECTS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
    3032
    3133EXTRA_DIST = console.c
  • c/src/lib/libbsp/i386/i386ex/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h coverhd.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109$(PROJECT_INCLUDE):
     
    1413        $(INSTALL_DATA) $< $@
    1514
    16 PREINSTALL_FILES += $(PROJECT_INCLUDE) \
    17 $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     15PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1816
    1917all-local: $(PREINSTALL_FILES)
    2018
     19EXTRA_DIST = bsp.h coverhd.h
     20
    2121include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/i386ex/network/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/network.rel
     7PGM = $(ARCH)/network.rel
    88
    9 ## C source names
    109C_FILES = network.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312H_FILES = netexterns.h uti596.h
    14 noinst_HEADERS = $(H_FILES)
    1513
    1614OBJS = $(C_O_FILES)
     
    2321#
    2422
    25 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2624        $(make-rel)
    27 
    28 if HAS_NETWORKING
    29 all-local: ${ARCH} $(PGM)
    30 else
    31 all-local:
    32 endif
    3325
    3426# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3527
    36 EXTRA_DIST = $(C_FILES)
     28if HAS_NETWORKING
     29all-local: $(ARCH) $(OBJS) $(PGM)
     30endif
     31
     32.PRECIOUS: $(PGM)
     33
     34EXTRA_DIST = netexterns.h network.c uti596.h
    3735
    3836include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/i386ex/start/Makefile.am

    r8fbdf07 r4e36a2f  
    1 ##
     1## 
    22## $Id$
    3 ##
     3## 
    44
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGMS = ${ARCH}/start.o
     7PGMS = $(ARCH)/start.o
    88
    9 # Assembly source names, if any, go here -- minus the .S
    109S_FILES = start.S
    11 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    1211
    1312H_FILES = 80386ex.h
    14 noinst_HEADERS = $(H_FILES)
     13
     14OBJS = $(S_O_FILES)
    1515
    1616include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2828        $(INSTALL_DATA) $< $@
    2929
    30 TMPINSTALL_FILES += \
    31 $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     30TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
    3231
    33 all-local: $(ARCH) $(TMPINSTALL_FILES)
     32all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
    3433
    35 EXTRA_DIST = 80386ex.inc macros.inc start.S
     34EXTRA_DIST = 80386ex.h 80386ex.inc macros.inc start.S
    3635
    3736include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/i386ex/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 VPATH = \
    8     @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/comm:@srcdir@/../../shared/irq:@srcdir@/../../shared/io
     7VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/comm:@srcdir@/../../shared/irq:@srcdir@/../../shared/io
    98
    10 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1110
    12 ## C source names
    1311C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \
    14     irq.c irq_init.c i386-stub.c i386-stub-glue.c uart.c gnatinstallhandler.c
    15 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12    irq.c irq_init.c i386-stub.c i386-stub-glue.c uart.c \
     13    gnatinstallhandler.c
     14C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1615
    17 ## Assembly source names
    1816S_FILES = irq_asm.S
    19 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     17S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    2018
    2119startup_rel_OBJECTS = $(C_O_FILES) $(S_O_FILES)
    2220
    2321include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    24 include $(RTEMS_ROOT)/make/leaf.cfg
     22include $(top_srcdir)/../../../../../../automake/lib.am
    2523
    2624#
     
    3331AM_CPPFLAGS += -DBSP_IS_I386EX=1
    3432
    35 $(PGM): ${startup_rel_OBJECTS}
     33$(PGM): $(startup_rel_OBJECTS)
    3634        $(make-rel)
    3735
     
    3937        $(INSTALL_DATA) $< $@
    4038
     39UNUSED_C_FILES = setvec.c
     40
    4141TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    4242
    43 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM) $(TMPINSTALL_FILES)
     43all-local: $(ARCH) $(startup_rel_OBJECTS) $(PGM) $(TMPINSTALL_FILES)
    4444
    45 UNUSED_C_FILES = setvec.c
    46 EXTRA_DIST = README bspstart.c linkcmds $(UNUSED_C_FILES)
     45.PRECIOUS: $(PGM)
     46
     47EXTRA_DIST = README bspstart.c linkcmds setvec.c
    4748
    4849include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/i386ex/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## sources
    109C_FILES = timer.c
    1110S_FILES = timerisr.S
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
    25 
    2623# the .rel file built here will be put into libbsp.a by
    2724#       ../wrapup/Makefile
     25
     26all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
    2829
    2930EXTRA_DIST = timer.c timerisr.S
  • c/src/lib/libbsp/i386/i386ex/wrapup/Makefile.am

    r8fbdf07 r4e36a2f  
    1212
    1313BSP_FILES = startup clock console timer $(NETWORK)
    14 GENERIC_FILES =
    1514
    1615# bummer; have to use $foreach since % pattern subst rules only replace 1x
    17 OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
    18     $(foreach piece, $(GENERIC_FILES), \
    19     ../../../$(piece)/$(ARCH)/$(piece).rel)
     16OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o))
    2017LIB = $(ARCH)/libbsp.a
    2118
     
    2724#
    2825
    29 $(LIB): ${OBJS}
     26$(LIB): $(OBJS)
    3027        $(make-library)
    3128
     
    3532TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
    3633
    37 all-local: ${ARCH} $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES)
     34all-local: $(ARCH) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
     35
     36.PRECIOUS: $(LIB)
    3837
    3938include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/pc386/3c509/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/3c509.rel
     7PGM = $(ARCH)/3c509.rel
    88
    9 ## C source names
    109C_FILES = 3c509.c elink.c
    11 X3c509_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10X3c509_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312H_FILES = 3c509.h elink.h
    14 noinst_HEADERS = $(H_FILES)
    1513
    1614include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2624        $(make-rel)
    2725
    28 if HAS_NETWORKING
    29 all-local: ${ARCH} $(PGM)
    30 endif
    3126
    3227# the .rel file built here will be put into libbsp.a by
    3328#       ../wrapup/Makefile
    3429
    35 EXTRA_DIST = 3c509.c elink.c
     30if HAS_NETWORKING
     31all-local: $(ARCH) $(X3c509_rel_OBJECTS) $(PGM)
     32endif
     33
     34.PRECIOUS: $(PGM)
     35
     36EXTRA_DIST = 3c509.c 3c509.h elink.c elink.h
    3637
    3738include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/pc386/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 rtc.c
    11 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2120        $(make-rel)
    2221
    23 all-local: ${ARCH} $(PGM)
    24 
    2522# the .rel file built here will be put into libbsp.a by
    2623#       ../wrapup/Makefile
     24
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
     26
     27.PRECIOUS: $(PGM)
    2728
    2829EXTRA_DIST = ckinit.c rtc.c
  • c/src/lib/libbsp/i386/pc386/console/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared/io
    88
    9 PGM = ${ARCH}/console.rel
     9PGM = $(ARCH)/console.rel
    1010
    11 ## sources
    1211C_FILES = console.c inch.c outch.c printk.c
    1312S_FILES = videoAsm.S
    1413
    15 console_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     14console_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1615
    1716include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2524        $(make-rel)
    2625
    27 all-local: ${ARCH} $(PGM)
    28 
    2926# the .rel file built here will be put into libbsp.a by
    3027#       ../wrapup/Makefile
     28
     29all-local: $(ARCH) $(console_rel_OBJECTS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
    3132
    3233EXTRA_DIST = console.c inch.c outch.c videoAsm.S
  • c/src/lib/libbsp/i386/pc386/include/Makefile.am

    r8fbdf07 r4e36a2f  
    1212
    1313H_FILES = bsp.h crt.h $(WD80X3)
    14 noinst_HEADERS = $(H_FILES)
    1514
    1615$(PROJECT_INCLUDE):
     
    2322        $(INSTALL_DATA) $< $@
    2423
    25 PREINSTALL_FILES += $(PROJECT_INCLUDE) \
    26 $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h) \
    27 $(PROJECT_INCLUDE)/coverhd.h
     24PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h) \
     25    $(PROJECT_INCLUDE)/coverhd.h
    2826
    2927all-local: $(PREINSTALL_FILES)
    3028
     29EXTRA_DIST = bsp.h crt.h wd80x3.h
     30
    3131include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/pc386/ne2000/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/ne2000.rel
     7PGM = $(ARCH)/ne2000.rel
    88
    9 ## C source names
    109C_FILES = ne2000.c
    11 ne2000_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10ne2000_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2322        $(make-rel)
    2423
     24# the .rel file built here will be put into libbsp.a by
     25#       ../wrapup/Makefile
     26
    2527if HAS_NETWORKING
    26 all-local: ${ARCH} $(PGM)
     28all-local: $(ARCH) $(ne2000_rel_OBJECTS) $(PGM)
    2729endif
    2830
    29 # the .rel file built here will be put into libbsp.a by
    30 #       ../wrapup/Makefile
     31.PRECIOUS: $(PGM)
    3132
    3233EXTRA_DIST = ne2000.c
  • c/src/lib/libbsp/i386/pc386/start/Makefile.am

    r8fbdf07 r4e36a2f  
    1 #
    2 #  $Id$
    3 #
     1##
     2## $Id$
     3##
    44
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGMS = ${ARCH}/start.o ${ARCH}/start16.bin
     7PGMS = $(ARCH)/start.o $(ARCH)/start16.bin
    88
    9 # Assembly source names, if any, go here -- minus the .S
    109S_FILES = start16.S start.S
    11 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
     11
     12OBJS = $(S_O_FILES)
    1213
    1314include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2425LINKCMDS = $(top_srcdir)/startup/linkcmds
    2526
    26 ${ARCH}/start16.o: start16.S
    27         ${COMPILE.S} $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
     27$(ARCH)/start16.o: start16.S
     28        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
    2829
    29 ${ARCH}/start16.bin: ${ARCH}/start16.o
    30         $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
    31           --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
     30$(ARCH)/start16.bin: $(ARCH)/start16.o
     31        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib        --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
    3232        $(OBJCOPY) -O binary $(basename $@).obj $@
    3333
    34 $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: ${ARCH}/start16.bin
     34$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: $(ARCH)/start16.bin
    3535        $(INSTALL_DATA) $< $@
    3636
     
    3838        $(INSTALL_DATA) $< $@
    3939
    40 TMPINSTALL_FILES += \
    41 $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
    42 $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     40TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
     41    $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
    4342
    44 all-local: $(ARCH) $(TMPINSTALL_FILES)
     43all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
    4544
    4645EXTRA_DIST = start.S start16.S
  • c/src/lib/libbsp/i386/pc386/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 VPATH = \
    8     @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/irq:@srcdir@/../../shared/comm:@srcdir@/../../shared/pci
     7VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/irq:@srcdir@/../../shared/comm:@srcdir@/../../shared/pci
    98
    10 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1110
    12 ## C source names
    1311C_FILES = bsplibc.c bsppost.c bspstart.c exit.c irq.c irq_init.c bootcard.c \
    1412    main.c sbrk.c i386-stub.c i386-stub-glue.c uart.c pcibios.c \
    1513    gnatinstallhandler.c
    16 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     14C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1715
    18 ## Assembly source names
    1916S_FILES = ldsegs.S irq_asm.S
    20 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     17S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    2118
    2219startup_rel_OBJECTS = $(C_O_FILES) $(S_O_FILES)
    2320
    2421include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    25 include $(RTEMS_ROOT)/make/leaf.cfg
     22include $(top_srcdir)/../../../../../../automake/lib.am
    2623
    2724#
     
    3330AM_CPPFLAGS += -DUSE_INIT_FINI
    3431
    35 $(PGM): ${startup_rel_OBJECTS}
     32$(PGM): $(startup_rel_OBJECTS)
    3633        $(make-rel)
    3734
     
    4138TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    4239
    43 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM) $(TMPINSTALL_FILES)
     40all-local: $(ARCH) $(startup_rel_OBJECTS) $(PGM) $(TMPINSTALL_FILES)
    4441
    45 EXTRA_DIST = bspstart.c exit.c sbrk.c ldsegs.S linkcmds
     42.PRECIOUS: $(PGM)
     43
     44EXTRA_DIST = bspstart.c exit.c ldsegs.S linkcmds sbrk.c
    4645
    4746include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/pc386/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    9 ## sources
    109C_FILES = timer.c
    1110S_FILES = timerisr.S
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     11timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1312
    1413include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2221        $(make-rel)
    2322
    24 all-local: ${ARCH} $(PGM)
    25 
    2623# the .rel file built here will be put into libbsp.a by
    2724#       ../wrapup/Makefile
     25
     26all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
    2829
    2930EXTRA_DIST = timer.c timerisr.S
  • c/src/lib/libbsp/i386/pc386/wd8003/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/wd8003.rel
     7PGM = $(ARCH)/wd8003.rel
    88
    9 ## C source names
    109C_FILES = wd8003.c
    11 wd8003_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10wd8003_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2322        $(make-rel)
    2423
     24# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
     25
    2526if HAS_NETWORKING
    26 all-local: ${ARCH} $(PGM)
     27all-local: $(ARCH) $(wd8003_rel_OBJECTS) $(PGM)
    2728endif
    2829
    29 # the .rel file built here will be put into libbsp.a by
    30 #       ../wrapup/Makefile
     30.PRECIOUS: $(PGM)
    3131
    3232EXTRA_DIST = wd8003.c
  • c/src/lib/libbsp/i386/pc386/wrapup/Makefile.am

    r8fbdf07 r4e36a2f  
    1212
    1313BSP_FILES = startup clock console timer $(NETWORK)
    14 GENERIC_FILES =
    1514
    1615# bummer; have to use $foreach since % pattern subst rules only replace 1x
    17 OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
    18     $(foreach piece, $(GENERIC_FILES), \
    19     ../../../$(piece)/$(ARCH)/$(piece).rel)
     16OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o))
    2017LIB = $(ARCH)/libbsp.a
    2118
     
    2724#
    2825
    29 $(LIB): ${OBJS}
     26$(LIB): $(OBJS)
    3027        $(make-library)
    3128
     
    3532TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
    3633
    37 all-local: ${ARCH} $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES)
     34all-local: $(ARCH) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
     35
     36.PRECIOUS: $(LIB)
    3837
    3938include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/shared/comm/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = uart.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109C_FILES = i386-stub-glue.c i386-stub.c uart.c
     
    1716        $(INSTALL_DATA) $< $@
    1817
    19 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     18PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    2019
    21 EXTRA_DIST = $(C_FILES) $(noinst_DATA)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = GDB.HOWTO i386-stub-glue.c i386-stub.c uart.c uart.h
    2223
    2324include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/i386/shared/io/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bspIo.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109C_FILES = printk.c
     
    1514        $(INSTALL_DATA) $< $@
    1615
    17 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     16PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1817
    19 EXTRA_DIST = $(C_FILES)
     18all-local: $(PREINSTALL_FILES)
     19
     20EXTRA_DIST = bspIo.h printk.c
    2021
    2122include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/i386/shared/irq/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = irq.h irq_asm.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109C_FILES = irq.c irq_init.c
     
    1615        $(INSTALL_DATA) $< $@
    1716
    18 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     17PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1918
    20 EXTRA_DIST = $(C_FILES) $(S_FILES)
     19all-local: $(PREINSTALL_FILES)
     20
     21EXTRA_DIST = irq.c irq.h irq_asm.S irq_asm.h irq_init.c
    2122
    2223include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/i386/shared/pci/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = pcibios.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109C_FILES = pcibios.c
     
    1514        $(INSTALL_DATA) $< $@
    1615
    17 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     16PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1817
    19 EXTRA_DIST = $(C_FILES)
     18all-local: $(PREINSTALL_FILES)
     19
     20EXTRA_DIST = pcibios.c pcibios.h
    2021
    2122include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/i386/ts_386ex/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 rtc.c
    11 clock_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     10clock_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2120        $(make-rel)
    2221
    23 all-local: ${ARCH} $(PGM)
    24 
    2522# the .rel file built here will be put into libbsp.a by
    2623#       ../wrapup/Makefile
     24
     25all-local: $(ARCH) $(clock_rel_OBJECTS) $(PGM)
     26
     27.PRECIOUS: $(PGM)
    2728
    2829EXTRA_DIST = ckinit.c rtc.c
  • c/src/lib/libbsp/i386/ts_386ex/console/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared/io
    88
    9 PGM = ${ARCH}/console.rel
     9PGM = $(ARCH)/console.rel
    1010
    1111## sources
    1212C_FILES = console.c printk.c
    1313
    14 console_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o)
     14console_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o)
    1515
    1616include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2424        $(make-rel)
    2525
    26 all-local: ${ARCH} $(PGM)
    27 
    2826# the .rel file built here will be put into libbsp.a by
    2927#       ../wrapup/Makefile
     28
     29all-local: $(ARCH) $(console_rel_OBJECTS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
    3032
    3133EXTRA_DIST = console.c
  • c/src/lib/libbsp/i386/ts_386ex/include/Makefile.am

    r8fbdf07 r4e36a2f  
    99endif
    1010
    11 H_FILES = bsp.h coverhd.h $(NETWORK_H_FILES)
    12 noinst_HEADERS = $(H_FILES)
     11H_FILES = bsp.h coverhd.h wd80x3.h $(NETWORK_H_FILES)
    1312
    1413$(PROJECT_INCLUDE):
     
    1817        $(INSTALL_DATA) $< $@
    1918
    20 PREINSTALL_FILES += $(PROJECT_INCLUDE) \
    21 $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     19PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    2220
    2321all-local: $(PREINSTALL_FILES)
    2422
     23EXTRA_DIST = bsp.h coverhd.h wd80x3.h
     24
    2525include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/ts_386ex/network/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/network.rel
     7PGM = $(ARCH)/network.rel
    88
    9 ## C source names
    109C_FILES = ne2000.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2322    -DBOOTP_COMPAT
    2423
    25 $(PGM): ${OBJS}
     24$(PGM): $(OBJS)
    2625        $(make-rel)
    27 
    28 if HAS_NETWORKING
    29 all-local: ${ARCH} $(PGM)
    30 else
    31 all-local:
    32 endif
    3326
    3427# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3528
    36 EXTRA_DIST = $(C_FILES)
     29if HAS_NETWORKING
     30all-local: $(ARCH) $(OBJS) $(PGM)
     31endif
     32
     33.PRECIOUS: $(PGM)
     34
     35EXTRA_DIST = ne2000.c
    3736
    3837include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/ts_386ex/start/Makefile.am

    r8fbdf07 r4e36a2f  
    1 ##
     1## 
    22## $Id$
    3 ##
     3## 
    44
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGMS = ${ARCH}/start.o
     7PGMS = $(ARCH)/start.o
    88
    9 # Assembly source names, if any, go here -- minus the .S
    109S_FILES = start.S
    11 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
     11
     12OBJS = $(S_O_FILES)
    1213
    1314H_FILES = 80386ex.h
    14 noinst_HEADERS = $(H_FILES)
    1515
    1616include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    2828        $(INSTALL_DATA) $< $@
    2929
    30 TMPINSTALL_FILES += \
    31 $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     30TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
    3231
    33 all-local: $(ARCH) $(TMPINSTALL_FILES)
     32all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
    3433
    35 EXTRA_DIST = 80386ex.inc macros.inc ts_1325.inc start.S
     34EXTRA_DIST = 80386ex.h 80386ex.inc macros.inc start.S ts_1325.inc
    3635
    3736include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/ts_386ex/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 VPATH = \
    8     @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/comm:@srcdir@/../../shared/irq:@srcdir@/../../shared/io
     7VPATH = @srcdir@:@srcdir@/../../../shared:@srcdir@/../../shared/comm:@srcdir@/../../shared/irq:@srcdir@/../../shared/io
    98
    10 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1110
    12 ## C source names
    1311C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \
    14     irq.c irq_init.c i386-stub.c i386-stub-glue.c uart.c gnatinstallhandler.c
    15 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12    irq.c irq_init.c i386-stub.c i386-stub-glue.c uart.c \
     13    gnatinstallhandler.c
     14C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1615
    17 ## Assembly source names
    1816S_FILES = irq_asm.S
    19 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     17S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    2018
    2119startup_rel_OBJECTS = $(C_O_FILES) $(S_O_FILES)
    2220
    2321include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    24 include $(RTEMS_ROOT)/make/leaf.cfg
     22include $(top_srcdir)/../../../../../../automake/lib.am
    2523
    2624#
     
    3331AM_CPPFLAGS += -DUSE_INIT_FINI
    3432
    35 $(PGM): ${startup_rel_OBJECTS}
     33$(PGM): $(startup_rel_OBJECTS)
    3634        $(make-rel)
    3735
     
    3937        $(INSTALL_DATA) $< $@
    4038
     39UNUSED_C_FILES = setvec.c
     40
    4141TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    4242
    43 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM) $(TMPINSTALL_FILES)
     43all-local: $(ARCH) $(startup_rel_OBJECTS) $(PGM) $(TMPINSTALL_FILES)
    4444
    45 UNUSED_C_FILES = setvec.c
    46 EXTRA_DIST = README bspstart.c linkcmds $(UNUSED_C_FILES)
     45.PRECIOUS: $(PGM)
     46
     47EXTRA_DIST = README bspstart.c linkcmds setvec.c
    4748
    4849include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i386/ts_386ex/timer/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/timer.rel
     7PGM = $(ARCH)/timer.rel
    88
    99## sources
    1010C_FILES = timer.c
    1111S_FILES = timerisr.S
    12 timer_rel_OBJECTS = $(C_FILES:%.c=${ARCH}/%.o) $(S_FILES:%.S=${ARCH}/%.o)
     12timer_rel_OBJECTS = $(C_FILES:%.c=$(ARCH)/%.o) $(S_FILES:%.S=$(ARCH)/%.o)
    1313
    1414include $(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#       ../wrapup/Makefile
     26
     27all-local: $(ARCH) $(timer_rel_OBJECTS) $(PGM)
     28
     29.PRECIOUS: $(PGM)
    2830
    2931EXTRA_DIST = timer.c timerisr.S
  • c/src/lib/libbsp/i386/ts_386ex/wrapup/Makefile.am

    r8fbdf07 r4e36a2f  
    1212
    1313BSP_FILES = startup clock console timer $(NETWORK)
    14 GENERIC_FILES =
    1514
    1615# bummer; have to use $foreach since % pattern subst rules only replace 1x
    17 OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \
    18     $(foreach piece, $(GENERIC_FILES), \
    19     ../../../$(piece)/$(ARCH)/$(piece).rel)
     16OBJS = $(foreach piece, $(BSP_FILES), $(wildcard ../$(piece)/$(ARCH)/*.o))
    2017LIB = $(ARCH)/libbsp.a
    2118
     
    2724#
    2825
    29 $(LIB): ${OBJS}
     26$(LIB): $(OBJS)
    3027        $(make-library)
    3128
     
    3532TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
    3633
    37 all-local: ${ARCH} $(PREINSTALL_FILES) $(LIB) $(TMPINSTALL_FILES)
     34all-local: $(ARCH) $(OBJS) $(LIB) $(TMPINSTALL_FILES)
     35
     36.PRECIOUS: $(LIB)
    3837
    3938include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i960/cvme961/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    77PGM = ${ARCH}/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c getcfg.c lock.c mpisr.c
    1110C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     
    2524if HAS_MP
    2625all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
    2926endif
    3027
    3128# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3229
    33 EXTRA_DIST = $(C_FILES)
     30EXTRA_DIST = addrconv.c getcfg.c lock.c mpisr.c
    3431
    3532include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/i960/rxgen960/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/shmsupp.rel
     7PGM = $(ARCH)/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c getcfg.c lock.c mpisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    2423
     24# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2525if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
     26all-local: $(ARCH) $(OBJS) $(PGM)
    2927endif
    3028
    31 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
     29.PRECIOUS: $(PGM)
    3230
    33 EXTRA_DIST = $(C_FILES)
     31EXTRA_DIST = addrconv.c getcfg.c lock.c mpisr.c
    3432
    3533include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/m68k/mvme136/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    77PGM = ${ARCH}/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c getcfg.c lock.c mpisr.c
    1110C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     
    2423
    2524if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
     25all-local: ${ARCH} $(OBJS) $(PGM)
    2926endif
    3027
    3128# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3229
    33 EXTRA_DIST = $(C_FILES)
     30EXTRA_DIST = addrconv.c getcfg.c lock.c mpisr.c
    3431
    3532include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/m68k/mvme147s/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/shmsupp.rel
     7PGM = $(ARCH)/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c getcfg.c lock.c mpisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
    29 endif
    3023
    3124# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3225
    33 EXTRA_DIST = $(C_FILES)
     26if HAS_MP
     27all-local: $(ARCH) $(OBJS) $(PGM)
     28endif
     29
     30.PRECIOUS: $(PGM)
     31
     32EXTRA_DIST = addrconv.c getcfg.c lock.c mpisr.c
    3433
    3534include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/m68k/shared/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 C_FILES = setvec.c
    8 S_FILES = start.S
    9 
    10 EXTRA_DIST = $(C_FILES) $(S_FILES)
     7EXTRA_DIST = m68kpretaskinghook.c setvec.c start.S
    118
    129include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/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
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = ckinit.c
     31
    2932include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/console/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console.rel
     7PGM = $(ARCH)/console.rel
    88
    9 ## C source names
    109C_FILES = console.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
    29 EXTRA_DIST = $(C_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = console.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109$(PROJECT_INCLUDE):
    1110        $(mkinstalldirs) $@
    1211
    13 $(PROJECT_INCLUDE)/%.h: %.h
     12$(PROJECT_INCLUDE)/bsp.h: bsp.h
    1413        $(INSTALL_DATA) $< $@
    1514
     
    1716        $(INSTALL_DATA) $< $@
    1817
    19 TMPINSTALL_FILES += \
    20 $(PROJECT_INCLUDE) \
    21 $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h) \
    22 $(PROJECT_INCLUDE)/coverhd.h
     18TMPINSTALL_FILES += $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/bsp.h \
     19    $(PROJECT_INCLUDE)/coverhd.h
    2320
    2421all-local: $(TMPINSTALL_FILES)
    2522
     23EXTRA_DIST = bsp.h
     24
    2625include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/shmsupp.rel
     7PGM = $(ARCH)/shmsupp.rel
    88
    99## C source names
    1010C_FILES = addrconv.c getcfg.c lock.c mpisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     11C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1212
    1313OBJS = $(C_O_FILES)
     
    2020#
    2121
    22 $(PGM): ${OBJS}
     22$(PGM): $(OBJS)
    2323        $(make-rel)
    2424
    2525if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
     26all-local: $(ARCH) $(PGM)
    2927endif
    3028
    3129# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3230
    33 EXTRA_DIST = $(C_FILES)
     31EXTRA_DIST = addrconv.c getcfg.c lock.c mpisr.c
    3432
    3533include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../../shared
    88
    9 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1010
    11 ## C source names
    1211C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c main.c bootcard.c sbrk.c \
    1312    setvec.c gnatinstallhandler.c
    14 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1514
    1615OBJS = $(C_O_FILES)
     
    2322#
    2423
    25 $(PGM): ${OBJS}
     24$(PGM): $(OBJS)
    2625        $(make-rel)
    2726
     
    2928        $(INSTALL_DATA) $< $@
    3029
    31 TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib/linkcmds
     30TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    3231
    33 all-local: ${ARCH} $(PGM) $(TMPINSTALL_FILES)
     32all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
    3433
    35 EXTRA_DIST = bspclean.c bspstart.c main.c setvec.c linkcmds
     34.PRECIOUS: $(PGM)
     35
     36EXTRA_DIST = bspclean.c bspstart.c linkcmds main.c setvec.c
    3637
    3738include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/no_cpu/no_bsp/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 timerisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
    29 EXTRA_DIST = $(C_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = timer.c timerisr.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/configure.in

    r8fbdf07 r4e36a2f  
    1111AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc,$RTEMS_VERSION,no)
    1212AM_MAINTAINER_MODE
    13 
    14 RTEMS_ENABLE_LIBCDIR
    1513
    1614RTEMS_ENV_RTEMSBSP
  • c/src/lib/libbsp/powerpc/dmv177/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-dmv177,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    1616RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1817
    1918RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     19RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     20RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     21RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     22RTEMS_CHECK_NETWORKING
    2223RTEMS_CANONICAL_HOST
    2324
    2425RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
     26AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    5127AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5228
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
     29# Explicitly list a Makefile here
    5630AC_OUTPUT(
    57 $makefiles)
     31Makefile
     32clock/Makefile
     33console/Makefile
     34include/Makefile
     35scv64/Makefile
     36sonic/Makefile
     37start/Makefile
     38startup/Makefile
     39timer/Makefile
     40tod/Makefile
     41wrapup/Makefile)
  • c/src/lib/libbsp/powerpc/eth_comm/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-eth_comm,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    1616RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1817
    1918RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     19RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     20RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     21RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     22RTEMS_CHECK_NETWORKING
    2223RTEMS_CANONICAL_HOST
    2324
    2425RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
     26AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    5127AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5228
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
     29# Explicitly list a Makefile here
    5630AC_OUTPUT(
    57 $makefiles)
     31Makefile
     32canbus/Makefile
     33console/Makefile
     34include/Makefile
     35network/Makefile
     36start/Makefile
     37startup/Makefile
     38wrapup/Makefile)
  • c/src/lib/libbsp/powerpc/helas403/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-helas403,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    1616RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1817
    1918RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     19RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     20RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     21RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     22RTEMS_CHECK_NETWORKING
    2223RTEMS_CANONICAL_HOST
    2324
    2425RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
     26AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    5127AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5228
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
     29# Explicitly list a Makefile here
    5630AC_OUTPUT(
    57 $makefiles)
     31Makefile
     32dlentry/Makefile
     33flashentry/Makefile
     34include/Makefile
     35startup/Makefile
     36wrapup/Makefile)
  • c/src/lib/libbsp/powerpc/motorola_powerpc/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-motorola_powerpc,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    1616RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1817
    1918RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     19RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     20RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     21RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     22RTEMS_CHECK_NETWORKING
    2223RTEMS_CANONICAL_HOST
    2324
    2425RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
     26AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    5127AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5228
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
     29# Explicitly list a Makefile here
    5630AC_OUTPUT(
    57 $makefiles)
     31Makefile
     32bootloader/Makefile
     33clock/Makefile
     34console/Makefile
     35include/Makefile
     36irq/Makefile
     37motorola/Makefile
     38openpic/Makefile
     39pci/Makefile
     40residual/Makefile
     41start/Makefile
     42startup/Makefile
     43vectors/Makefile
     44wrapup/Makefile)
  • c/src/lib/libbsp/powerpc/papyrus/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-papyrus,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    1616RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1817
    1918RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     19RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     20RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     21RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
     22RTEMS_CHECK_NETWORKING
    2223RTEMS_CANONICAL_HOST
    2324
    2425RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
     26AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    5127AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5228
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
     29# Explicitly list a Makefile here
     30AC_OUTPUT(
     31Makefile
     32dlentry/Makefile
     33flashentry/Makefile
     34include/Makefile
     35startup/Makefile
     36wrapup/Makefile)
    5437
    55 # try to explicitly list a Makefile here
    56 AC_OUTPUT(
    57 $makefiles)
  • c/src/lib/libbsp/powerpc/ppcn_60x/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-ppcn_60x,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    16 RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1816
    1917RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     18RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     19RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     20RTEMS_CHECK_NETWORKING
    2221RTEMS_CANONICAL_HOST
    2322
    2423RTEMS_PROJECT_ROOT
    2524
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
     25# Don't build the network directory
     26# The problem is that the code there has not yet been converted to
     27# bsd networking
     28AM_CONDITIONAL(HAS_NETWORKING,false)
     29# AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2930
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    3331
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
     32# Explicitly list a Makefile here
     33AC_OUTPUT(
     34Makefile
     35clock/Makefile
     36console/Makefile
     37include/Makefile
     38network/Makefile
     39nvram/Makefile
     40pci/Makefile
     41start/Makefile
     42startup/Makefile
     43timer/Makefile
     44tod/Makefile
     45universe/Makefile
     46vectors/Makefile
     47wrapup/Makefile)
    3648
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
    51 AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    52 
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
    56 AC_OUTPUT(
    57 $makefiles)
  • c/src/lib/libbsp/powerpc/psim/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-psim,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
     14RTEMS_ENABLE_LIBCDIR
    1515RTEMS_ENABLE_MULTIPROCESSING
    16 RTEMS_ENABLE_NETWORKING
    17 RTEMS_ENABLE_LIBCDIR
    1816
    1917RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     18RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     19RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
     20RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    2221RTEMS_CANONICAL_HOST
    2322
    2423RTEMS_PROJECT_ROOT
    25 
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
    29 
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
    5124AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    5225
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
     26AC_CONFIG_SUBDIRS(tools)
    5427
    55 # try to explicitly list a Makefile here
     28# Explicitly list a Makefile here
    5629AC_OUTPUT(
    57 $makefiles)
     30Makefile
     31clock/Makefile
     32console/Makefile
     33include/Makefile
     34shmsupp/Makefile
     35start/Makefile
     36startup/Makefile
     37timer/Makefile
     38vectors/Makefile
     39wrapup/Makefile)
  • c/src/lib/libbsp/powerpc/score603e/configure.in

    r8fbdf07 r4e36a2f  
    99
    1010RTEMS_CANONICAL_TARGET_CPU
    11 AC_PROG_MAKE_SET
    12 AC_PROG_INSTALL
     11AM_INIT_AUTOMAKE(rtems-c-src-lib-libbsp-powerpc-score603e,$RTEMS_VERSION,no)
    1312AM_MAINTAINER_MODE
    1413
    15 RTEMS_ENABLE_MULTIPROCESSING
    16 RTEMS_ENABLE_NETWORKING
    1714RTEMS_ENABLE_LIBCDIR
    1815
    1916RTEMS_ENV_RTEMSBSP
    20 
    21 RTEMS_CHECK_CPU
     17RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
     18RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
    2219RTEMS_CANONICAL_HOST
    2320
    2421RTEMS_PROJECT_ROOT
    2522
    26 dnl check target cc
    27 RTEMS_PROG_CC_FOR_TARGET
    28 RTEMS_CANONICALIZE_TOOLS
     23# Explicitly list a Makefile here
     24AC_OUTPUT(
     25Makefile
     26PCI_bus/Makefile
     27clock/Makefile
     28console/Makefile
     29include/Makefile
     30start/Makefile
     31startup/Makefile
     32timer/Makefile
     33tod/Makefile
     34vectors/Makefile
     35wrapup/Makefile)
    2936
    30 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    31 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
    32 RTEMS_CHECK_NETWORKING(RTEMS_BSP)
    33 
    34 # find all the Makefiles for the BSPs
    35 RTEMS_CHECK_MAKEFILE(.)
    36 
    37 # HACK: sed out bsp-tools from makefiles
    38 t="tools"
    39 if test -d "$srcdir/$t"; then
    40   bsptools_cfgdirs="$bsptools_cfgdirs $t"
    41   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    42 fi
    43 
    44 if test "$HAS_MP" = "yes"; then
    45 :
    46 else
    47   # HACK: sed out shmsupp/Makefile from makefiles
    48   t="shmsupp"
    49   makefiles=`echo "$makefiles" | sed -e "s%.*$t/.*Makefile%%g"`
    50 fi
    51 AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes")
    52 
    53 AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
    54 
    55 # try to explicitly list a Makefile here
    56 AC_OUTPUT(
    57 $makefiles)
  • c/src/lib/libbsp/powerpc/shared/bootloader/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = bootldr.h zlib.h pci.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211S_FILES = em86real.S exception.S head.S
     
    1413noinst_DATA = ppcboot.lds
    1514
    16 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    17 include $(top_srcdir)/../../../../../automake/lib.am
    18 
    19 EXTRA_DIST = README $(C_FILES) $(S_FILES) $(noinst_DATA)
     15EXTRA_DIST = README bootldr.h em86.c em86real.S exception.S head.S lib.c \
     16    misc.c mm.c pci.c pci.h ppcboot.lds zlib.c zlib.h
    2017
    2118include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/clock/Makefile.am

    r8fbdf07 r4e36a2f  
    77C_FILES = p_clock.c
    88
    9 EXTRA_DIST = $(C_FILES)
     9EXTRA_DIST = p_clock.c
    1010
    1111include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/console/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 ## C source names
    87C_FILES = console.c inch.c polled_io.c uart.c
    98
    109H_FILES = consoleIo.h keyboard.h uart.h
    11 noinst_HEADERS = $(H_FILES)
    1210
    1311$(PROJECT_INCLUDE)/bsp:
     
    1715        $(INSTALL_DATA) $< $@
    1816
    19 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     17PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    2018    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2119
    22 EXTRA_DIST = $(C_FILES)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = console.c consoleIo.h inch.c keyboard.h polled_io.c uart.c \
     23    uart.h
    2324
    2425include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = nvram.h bsp.h
    8 noinst_HEADERS = $(H_FILES)
     8
     9EXTRA_DIST = bsp.h nvram.h
    910
    1011include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/irq/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = irq.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211S_FILES = irq_asm.S
     
    1817        $(INSTALL_DATA) $< $@
    1918
    20 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     19PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    2120    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2221
    23 EXTRA_DIST = $(C_FILES) $(S_FILES)
     22all-local: $(PREINSTALL_FILES)
     23
     24EXTRA_DIST = i8259.c irq.c irq.h irq_asm.S irq_init.c
    2425
    2526include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/motorola/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = motorola.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211$(PROJECT_INCLUDE)/bsp:
     
    1615        $(INSTALL_DATA) $< $@
    1716
    18 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     17PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    1918    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2019
    21 EXTRA_DIST = $(C_FILES)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = motorola.c motorola.h
    2223
    2324include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/openpic/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = openpic.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211$(PROJECT_INCLUDE)/bsp:
     
    1615        $(INSTALL_DATA) $< $@
    1716
    18 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     17PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    1918    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2019
    21 EXTRA_DIST = $(C_FILES)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = openpic.c openpic.h
    2223
    2324include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/pci/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = pci.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211$(PROJECT_INCLUDE)/bsp:
     
    1615        $(INSTALL_DATA) $< $@
    1716
    18 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     17PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    1918    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2019
    21 EXTRA_DIST = $(C_FILES)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = pci.c pci.h
    2223
    2324include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/residual/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = pnp.h residual.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211$(PROJECT_INCLUDE)/bsp:
     
    1615        $(INSTALL_DATA) $< $@
    1716
    18 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     17PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    1918    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2019
    21 EXTRA_DIST = $(C_FILES)
     20all-local: $(PREINSTALL_FILES)
     21
     22EXTRA_DIST = pnp.h residual.c residual.h
    2223
    2324include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/start/Makefile.am

    r8fbdf07 r4e36a2f  
    77S_FILES = start.S
    88
    9 EXTRA_DIST = $(S_FILES)
     9EXTRA_DIST = start.S
    1010
    1111include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    99noinst_DATA = linkcmds
    1010
    11 EXTRA_DIST = $(C_FILES) $(noinst_DATA)
     11EXTRA_DIST = bspstart.c linkcmds
    1212
    1313include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/shared/vectors/Makefile.am

    r8fbdf07 r4e36a2f  
    88
    99H_FILES = vectors.h
    10 noinst_HEADERS = $(H_FILES)
    1110
    1211S_FILES = vectors.S
     
    1817        $(INSTALL_DATA) $< $@
    1918
    20 PREINSTALL_FILES = $(PROJECT_INCLUDE)/bsp \
     19PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp \
    2120    $(H_FILES:%.h=$(PROJECT_INCLUDE)/bsp/%.h)
    2221
    23 EXTRA_DIST = $(C_FILES) $(S_FILES)
     22all-local: $(PREINSTALL_FILES)
     23
     24EXTRA_DIST = vectors.S vectors.h vectors_init.c
    2425
    2526include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/powerpc/support/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/libbsp/sh/gensh1/console/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared
    88
    9 PGM = ${ARCH}/console.rel
     9PGM = $(ARCH)/console.rel
    1010
    11 ## C source names
    1211C_FILES = console.c
    13 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1413
    1514OBJS = $(C_O_FILES)
     
    2221#
    2322
    24 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2524        $(make-rel)
    26 
    27 all-local: ${ARCH} $(PGM)
    2825
    2926# the .rel file built here will be put into libbsp.a by
    3027#       ../wrapup/Makefile
    3128
     29all-local: $(ARCH) $(OBJS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
     32
    3233include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh1/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h coverhd.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109$(PROJECT_INCLUDE):
     
    1413        $(INSTALL_DATA) $< $@
    1514
    16 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     15PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1716
    1817all-local: $(PREINSTALL_FILES)
    1918
     19EXTRA_DIST = bsp.h coverhd.h
     20
    2021include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh1/scitab/Makefile.am

    r8fbdf07 r4e36a2f  
    77PGM = $(ARCH)/scitab.rel
    88
    9 ## C source names
    109C_FILES = scitab.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2423CLEANFILES = scitab.c
    2524
    26 $(PGM): ${OBJS}
     25$(PGM): $(OBJS)
    2726        $(make-rel)
    28 
    29 all-local: ${ARCH} $(PGM)
    3027
    3128scitab.c: $(SHGEN)
    3229        $(SHGEN) -H $(HZ) sci > $@
    3330
     31all-local: $(ARCH) $(OBJS) $(PGM)
     32
     33.PRECIOUS: $(PGM)
     34
    3435include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh1/start/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/start.o
     7PGM = $(ARCH)/start.o
    88
    9 ## Assembly source names
    109S_FILES = start.S
    1110S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
     11
     12OBJS = $(S_O_FILES)
    1213
    1314include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     
    1819#
    1920
    20 $(PROJECT_RELEASE)/lib:
    21         $(mkinstalldirs) $@
    22 
    2321$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(PGM)
    2422        $(INSTALL_DATA) $< $@
    2523
    26 TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     24TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
    2725
    28 all-local: ${ARCH} $(PGM) $(TMPINSTALL_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
    2927
    30 EXTRA_DIST = $(S_FILES)
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = start.S
    3131
    3232include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh1/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/startup.rel
     7PGM = $(ARCH)/startup.rel
    88
    99VPATH = @srcdir@:@srcdir@/../../shared:@srcdir@/../../../shared
    1010   
    11 ## C source names
    1211C_FILES = bsplibc.c bsppost.c bspstart.c bspclean.c sbrk.c bootcard.c main.c \
    1312    gnatinstallhandler.c
    14 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1514
    1615OBJS = $(C_O_FILES)
     
    2524AM_CPPFLAGS += -DHZ=$(HZ)
    2625
    27 $(PGM): ${OBJS}
     26$(PGM): $(OBJS)
    2827        $(make-rel)
    2928
     
    3332TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    3433
    35 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM) $(TMPINSTALL_FILES)
     34all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
     35
     36.PRECIOUS: $(PGM)
    3637
    3738EXTRA_DIST = bspclean.c bspstart.c linkcmds
  • c/src/lib/libbsp/sh/gensh2/console/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared
    88
    9 PGM = ${ARCH}/console.rel
     9PGM = $(ARCH)/console.rel
    1010
    11 ## C source names
    1211C_FILES = console.c
    13 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1413
    1514OBJS = $(C_O_FILES)
     
    2221#
    2322
    24 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2524        $(make-rel)
    26 
    27 all-local: ${ARCH} $(PGM)
    2825
    2926# the .rel file built here will be put into libbsp.a by
    3027#       ../wrapup/Makefile
    3128
    32 EXTRA_DIST = $(C_FILES)
     29all-local: $(ARCH) $(OBJS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
    3332
    3433include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh2/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h coverhd.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109$(PROJECT_INCLUDE)/%.h: %.h
    1110        $(INSTALL_DATA) $< $@
    1211
    13 PREINSTALL_FILES = $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     12PREINSTALL_FILES += $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    1413
    1514all-local: $(PREINSTALL_FILES)
    1615
     16EXTRA_DIST = bsp.h coverhd.h
     17
    1718include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh2/scitab/Makefile.am

    r8fbdf07 r4e36a2f  
    77PGM = $(ARCH)/scitab.rel
    88
    9 ## C source names
    109C_FILES = scitab.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2221#
    2322
    24 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2524        $(make-rel)
    26 
    27 all-local: ${ARCH} $(PGM)
    2825
    2926scitab.c: $(SHGEN)
     
    3229# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3330
    34 EXTRA_DIST = $(C_FILES)
     31all-local: $(ARCH) $(OBJS) $(PGM)
     32
     33.PRECIOUS: $(PGM)
    3534
    3635include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh2/start/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGMS = ${ARCH}/start.o
     7PGMS = $(ARCH)/start.o
    88
    9 ## Assembly source names
    109S_FILES = start.S
    11 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    1211
    1312OBJS = $(S_O_FILES)
     
    2019#
    2120
    22 all-local: ${ARCH} $(OBJS)
    23         @$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
     21$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(PGMS)
     22        $(INSTALL_DATA) $< $@
    2423
    25 EXTRA_DIST = $(S_FILES)
     24TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     25
     26all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
     27
     28EXTRA_DIST = start.S start.ram start.rom
    2629
    2730include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/gensh2/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../shared:@srcdir@/../../../shared
    88
    9 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1010
    11 ## C source names
    1211C_FILES = hw_init.c bsplibc.c bsppost.c bspstart.c bspclean.c sbrk.c \
    1312    bootcard.c main.c gnatinstallhandler.c
    14 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1514
    1615OBJS = $(C_O_FILES)
     
    2322#
    2423
     24AM_CPPFLAGS += -DHZ=$(HZ)
     25
    2526$(PROJECT_RELEASE)/lib/linkcmds: linkcmds
    2627        $(INSTALL_DATA) $< $@
    27  
     28
     29$(PGM): $(OBJS)
     30        $(make-rel)
     31
    2832PREINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    2933
    30 AM_CPPFLAGS += -DHZ=$(HZ)
     34all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(PGM)
    3135
    32 $(PGM): ${OBJS}
    33         $(make-rel)
     36.PRECIOUS: $(PGM)
    3437
    35 all-local: ${ARCH} $(PREINSTALL_FILES) $(PGM)
    36 
    37 EXTRA_DIST = $(C_FILES) linkcmds linkcmds.rom linkcmds.ram
     38EXTRA_DIST = bspclean.c bspstart.c hw_init.c linkcmds linkcmds.ram \
     39    linkcmds.rom
    3840
    3941include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sh/shared/Makefile.am

    r8fbdf07 r4e36a2f  
    77C_FILES = console.c setvec.c
    88
    9 EXTRA_DIST = $(C_FILES)
     9EXTRA_DIST = console.c setvec.c
    1010
    1111include $(top_srcdir)/../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/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
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = ckinit.c
     31
    2932include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/console/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console.rel
     7PGM = $(ARCH)/console.rel
    88
    9 ## C source names
    109C_FILES = console.c consolereserveresources.c debugputs.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
    29 EXTRA_DIST = $(C_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = console.c consolereserveresources.c debugputs.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/gnatsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../../shared
    88
    9 PGM = ${ARCH}/gnatsupp.rel
     9PGM = $(ARCH)/gnatsupp.rel
    1010
    11 ## C source names
    1211C_FILES = gnatsupp.c
    13 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     12C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1413
    1514OBJS = $(C_O_FILES)
     
    2221#
    2322
    24 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2524        $(make-rel)
    2625
    27 all-local: ${ARCH} $(PGM)
     26all-local: $(ARCH) $(OBJS) $(PGM)
    2827
    29 EXTRA_DIST = $(C_FILES)
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = gnatsupp.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h coverhd.h
    8 noinst_HEADERS = $(H_FILES)
    9 
    10 PREINSTALL_FILES = $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
    118
    129$(PROJECT_INCLUDE):
     
    1613        $(INSTALL_DATA) $< $@
    1714
     15PREINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h)
     16
    1817all-local: $(PREINSTALL_FILES)
    1918
     19EXTRA_DIST = bsp.h coverhd.h
     20
    2021include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/start/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/start.o
     7PGM = $(ARCH)/start.o
    88
    9 ## Assembly source names
    109S_FILES = start.S
    11 S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
     10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
    1211
    1312OBJS = $(S_O_FILES)
     
    2019#
    2120
    22 all-local: ${ARCH} $(PGM)
    23         $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib
     21$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(PGM)
     22        $(INSTALL_DATA) $< $@
     23
     24TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
     25
     26all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = start.S
    2431
    2532include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/startup/Makefile.am

    r8fbdf07 r4e36a2f  
    77VPATH = @srcdir@:@srcdir@/../../../shared
    88
    9 PGM = ${ARCH}/startup.rel
     9PGM = $(ARCH)/startup.rel
    1010
    11 ## C source names
    1211C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c main.c bootcard.c sbrk.c \
    1312    setvec.c spurious.c
    14 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1514
    1615OBJS = $(C_O_FILES)
     
    2726AM_CPPFLAGS += -DUSE_INIT_FINI
    2827
    29 $(PGM): ${OBJS}
     28$(PGM): $(OBJS)
    3029        $(make-rel)
    3130
     
    3332        $(INSTALL_DATA) $< $@
    3433
    35 TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib/linkcmds
     34TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/linkcmds
    3635
    37 all-local: ${ARCH} $(PGM) $(TMPINSTALL_FILES)
     36all-local: $(ARCH) $(OBJS) $(PGM) $(TMPINSTALL_FILES)
    3837
    39 EXTRA_DIST = bspclean.c bspstart.c setvec.c spurious.c linkcmds
     38.PRECIOUS: $(PGM)
     39
     40EXTRA_DIST = bspclean.c bspstart.c linkcmds setvec.c spurious.c
    4041
    4142include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/sparc/erc32/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
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
    29 EXTRA_DIST = $(C_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = timer.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/unix/posix/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
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by
    2825#    ../wrapup/Makefile
    2926
    30 EXTRA_DIST = $(C_FILES)
     27all-local: $(ARCH) $(OBJS) $(PGM)
     28
     29.PRECIOUS: $(PGM)
     30
     31EXTRA_DIST = clock.c
    3132
    3233include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/unix/posix/console/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/console.rel
     7PGM = $(ARCH)/console.rel
    88
    9 ## C source names
    109C_FILES = console.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    24 
    25 all-local: ${ARCH} $(PGM)
    2623
    2724# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    2825
    29 EXTRA_DIST = $(C_FILES)
     26all-local: $(ARCH) $(OBJS) $(PGM)
     27
     28.PRECIOUS: $(PGM)
     29
     30EXTRA_DIST = console.c
    3031
    3132include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/unix/posix/include/Makefile.am

    r8fbdf07 r4e36a2f  
    66
    77H_FILES = bsp.h
    8 noinst_HEADERS = $(H_FILES)
    98
    109$(PROJECT_INCLUDE):
     
    1716        $(INSTALL_DATA) $< $@
    1817
    19 TMPINSTALL_FILES += \
    20 $(PROJECT_INCLUDE) \
    21 $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h) \
    22 $(PROJECT_INCLUDE)/coverhd.h
     18TMPINSTALL_FILES += $(PROJECT_INCLUDE) $(H_FILES:%.h=$(PROJECT_INCLUDE)/%.h) \
     19    $(PROJECT_INCLUDE)/coverhd.h
    2320
    2421all-local: $(TMPINSTALL_FILES)
    2522
     23EXTRA_DIST = bsp.h
     24
    2625include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/unix/posix/shmsupp/Makefile.am

    r8fbdf07 r4e36a2f  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 PGM = ${ARCH}/shmsupp.rel
     7PGM = $(ARCH)/shmsupp.rel
    88
    9 ## C source names
    109C_FILES = addrconv.c getcfg.c cause_intr.c lock.c mpisr.c
    11 C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     10C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
    1211
    1312OBJS = $(C_O_FILES)
     
    2019#
    2120
    22 $(PGM): ${OBJS}
     21$(PGM): $(OBJS)
    2322        $(make-rel)
    2423
    2524if HAS_MP
    26 all-local: ${ARCH} $(PGM)
    27 else
    28 all-local:
     25all-local: $(ARCH) $(OBJS) $(PGM)
    2926endif
    3027
    3128# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
    3229
    33 EXTRA_DIST = $(C_FILES) README
     30.PRECIOUS: $(PGM)
     31
     32EXTRA_DIST = README addrconv.c cause_intr.c getcfg.c lock.c mpisr.c
    3433
    3534include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libbsp/unix/posix/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
    1312OBJS = $(C_O_FILES)
     
    2221AM_CFLAGS = $(CFLAGS_OS_V)
    2322
    24 $(PGM): ${OBJS}
     23$(PGM): $(OBJS)
    2524        $(make-rel)
    26 
    27 all-local: ${ARCH} $(PGM)
    2825
    2926# the .rel file built here will be put into libbsp.a by
    3027#    ../wrapup/Makefile
    3128
     29all-local: $(ARCH) $(OBJS) $(PGM)
     30
     31.PRECIOUS: $(PGM)
     32
     33EXTRA_DIST = timer.c
     34
    3235include $(top_srcdir)/../../../../../../automake/local.am
  • c/src/lib/libc/Makefile.am

    r8fbdf07 r4e36a2f  
    4949UNIX_LIBC_C_FILES = unixlibc.c hosterr.c
    5050
    51 # C and C++ source names, if any, go here -- minus the .c or .cc
    5251COMMON_C_FILES = $(BASE_FS_C_FILES)  $(MALLOC_C_FILES) \
    5352    $(TERMIOS_C_FILES) $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
  • 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)