Changeset f3fdc59 in rtems


Ignore:
Timestamp:
Jan 15, 2004, 4:20:34 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0e786f66
Parents:
ebff819
Message:

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

  • Makefile.am: Use automake compilation rules.
Location:
c/src/libchip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/ChangeLog

    rebff819 rf3fdc59  
     12004-01-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * Makefile.am: Use automake compilation rules.
     4
    152004-01-14      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/libchip/Makefile.am

    rebff819 rf3fdc59  
    1414
    1515EXTRA_DIST =
    16 noinst_HEADERS =
     16EXTRA_LIBRARIES =
     17EXTRA_PROGRAMS =
     18CLEANFILES =
    1719
    1820# ide
    19 libide_C_FILES = ide/ata.c ide/ide_controller.c
    20 libide_OBJS = $(libide_C_FILES:ide/%.c=ide/$(ARCH)/%.$(OBJEXT))
    21 
    22 noinst_HEADERS += ide/ata_internal.h
    23 
    2421if LIBCHIP
    2522include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \
    2623    ide/ide_ctrl_io.h
    2724
    28 ide/$(ARCH)/$(dirstamp):
    29         @$(mkdir_p) ide/$(ARCH)
    30         @: > ide/$(ARCH)/$(dirstamp)
    31 ide/$(ARCH)/%.$(OBJEXT): ide/%.c ide/$(ARCH)/$(dirstamp)
    32         ${COMPILE} -o $@ -c $<
    33 ide/$(ARCH)/libide.a: $(libide_OBJS)
    34         $(make-library)
    35 noinst_DATA += ide/$(ARCH)/libide.a
    36 endif
    37 
    38 EXTRA_DIST += $(libide_C_FILES)
     25EXTRA_LIBRARIES += libide.a
     26CLEANFILES += libide.a
     27libide_a_SOURCES = ide/ata.c ide/ide_controller.c ide/ata_internal.h
     28libide_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     29
     30EXTRA_LIBRARIES += libide_g.a
     31CLEANFILES += libide_g.a
     32libide_g_a_SOURCES = $(libide_a_SOURCES)
     33libide_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     34
     35noinst_DATA += libide$(LIB_VARIANT).a
     36endif
    3937
    4038# network
    41 
    42 libnetchip_C_FILES = network/cs8900.c network/dec21140.c network/i82586.c \
    43     network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
    44 libnetchip_OBJS = \
    45     $(libnetchip_C_FILES:network/%.c=network/$(ARCH)/%.$(OBJEXT))
    46 
    47 libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
    48 
    4939if LIBCHIP
    5040if HAS_NETWORKING
     
    5343    network/open_eth.h
    5444
    55 network/$(ARCH)/$(dirstamp):
    56         @$(mkdir_p) network/$(ARCH)
    57         @: > network/$(ARCH)/$(dirstamp)
    58 network/$(ARCH)/%.$(OBJEXT): network/%.c network/$(ARCH)/$(dirstamp)
    59         ${COMPILE} $(libnetchip_CPPFLAGS) -o $@ -c $<
    60 network/$(ARCH)/libnetchip$(LIB_VARIANT).a: $(libnetchip_OBJS)
    61         $(make-library)
    62 project_lib_DATA = network/$(ARCH)/libnetchip$(LIB_VARIANT).a
    63 endif
    64 endif
    65 
    66 libnetchip_DOC_FILES = network/README network/README.cs8900 \
    67     network/README.dec21140 network/README.i82586 network/README.open_eth \
    68     network/README.sonic network/cs8900.c.bsp
    69 
    70 EXTRA_DIST += $(libnetchip_C_FILES) $(libnetchip_DOC_FILES)
     45libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
     46EXTRA_LIBRARIES += libnetchip.a
     47CLEANFILES += libnetchip.a
     48libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \
     49    network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
     50libnetchip_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
     51    $(libnetchip_CPPFLAGS)
     52
     53EXTRA_LIBRARIES += libnetchip_g.a
     54CLEANFILES += libnetchip_g.a
     55libnetchip_g_a_SOURCES = $(libnetchip_a_SOURCES)
     56libnetchip_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
     57    $(libnetchip_CPPFLAGS)
     58
     59# FIXME: Why is this lib installed?
     60project_lib_DATA = libnetchip$(LIB_VARIANT).a
     61endif
     62endif
     63
     64EXTRA_DIST += network/README network/README.cs8900 network/README.dec21140 \
     65    network/README.i82586 network/README.open_eth network/README.sonic \
     66    network/cs8900.c.bsp
    7167
    7268# rtc
    73 librtcio_C_FILES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
     69if LIBCHIP
     70include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h
     71
     72EXTRA_LIBRARIES += librtcio.a
     73CLEANFILES += librtcio.a
     74librtcio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     75librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
    7476    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
    7577    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c
    7678
    77 librtcio_OBJS = $(librtcio_C_FILES:rtc/%.c=rtc/$(ARCH)/%.$(OBJEXT))
    78 
    79 if LIBCHIP
    80 include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h
    81 
    82 rtc/$(ARCH)/$(dirstamp):
    83         @$(mkdir_p) rtc/$(ARCH)
    84         @: > rtc/$(ARCH)/$(dirstamp)
    85 rtc/$(ARCH)/%.$(OBJEXT): rtc/%.c rtc/$(ARCH)/$(dirstamp)
    86         ${COMPILE} -o $@ -c $<
    87 rtc/$(ARCH)/librtcio.a: $(librtcio_OBJS)
    88         $(make-library)
    89 noinst_DATA += rtc/$(ARCH)/librtcio.a
    90 endif
    91 
    92 librtcio_DOC_FILES = rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
     79EXTRA_LIBRARIES += librtcio_g.a
     80CLEANFILES += librtcio_g.a
     81librtcio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     82librtcio_g_a_SOURCES = $(librtcio_a_SOURCES)
     83
     84noinst_DATA += librtcio$(LIB_VARIANT).a
     85endif
     86
     87EXTRA_DIST += rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
    9388    rtc/README.m48t18 rtc/STATUS
    9489
    95 EXTRA_DIST += $(librtcio_C_FILES) $(librtcio_DOC_FILES)
    96 
    9790# serial
    98 libserialio_C_FILES = serial/mc68681.c serial/mc68681_baud.c \
     91if LIBCHIP
     92include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
     93    serial/serial.h serial/sersupp.h
     94
     95EXTRA_LIBRARIES += libserialio.a
     96CLEANFILES += libserialio.a
     97libserialio_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     98libserialio_a_SOURCES = serial/mc68681.c serial/mc68681_baud.c \
    9999    serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \
    100100    serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \
    101101    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
    102     serial/termios_baud2num.c
    103 EXTRA_DIST += $(libserialio_C_FILES)
    104 libserialio_OBJS = \
    105     $(libserialio_C_FILES:serial/%.c=serial/$(ARCH)/%.$(OBJEXT))
    106 
    107 noinst_HEADERS += serial/mc68681_p.h serial/ns16550_p.h serial/z85c30_p.h
    108 
    109 if LIBCHIP
    110 include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
    111     serial/serial.h serial/sersupp.h
    112 
    113 serial/$(ARCH)/$(dirstamp):
    114         @$(mkdir_p) serial/$(ARCH)
    115         @: > serial/$(ARCH)/$(dirstamp)
    116 serial/$(ARCH)/%.$(OBJEXT): serial/%.c serial/$(ARCH)/$(dirstamp)
    117         ${COMPILE} -o $@ -c $<
    118 serial/$(ARCH)/libserialio.a: $(libserialio_OBJS)
    119         $(make-library)
    120 noinst_DATA += serial/$(ARCH)/libserialio.a
    121 endif
    122 
    123 libserialio_DOC_FILES = serial/README.mc68681 serial/README.ns16550 \
     102    serial/termios_baud2num.c serial/mc68681_p.h serial/ns16550_p.h \
     103    serial/z85c30_p.h
     104
     105EXTRA_LIBRARIES += libserialio_g.a
     106CLEANFILES += libserialio_g.a
     107libserialio_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     108libserialio_g_a_SOURCES = $(libserialio_a_SOURCES)
     109
     110noinst_DATA += libserialio$(LIB_VARIANT).a
     111endif
     112
     113EXTRA_DIST += serial/README.mc68681 serial/README.ns16550 \
    124114    serial/README.xr88681 serial/README.z85c30 serial/STATUS
    125 EXTRA_DIST += $(libserialio_DOC_FILES)
    126115
    127116## shmdr
    128 shmdr_C_FILES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
     117if HAS_MP
     118include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
     119
     120EXTRA_PROGRAMS += shmdr.rel
     121CLEANFILES += shmdr.rel
     122shmdr_rel_SOURCES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \
    129123    shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \
    130124    shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \
    131125    shmdr/setckvec.c
    132 EXTRA_DIST += $(shmdr_C_FILES)
    133 shmdr_OBJECTS = $(shmdr_C_FILES:shmdr/%.c=shmdr/$(ARCH)/%.$(OBJEXT))
    134 
    135 shmdr/$(ARCH)/$(dirstamp):
    136         @$(mkdir_p) shmdr/$(ARCH)
    137         @: > shmdr/$(ARCH)/$(dirstamp)
    138 shmdr/$(ARCH)/%.$(OBJEXT): shmdr/%.c shmdr/$(ARCH)/$(dirstamp)
    139         ${COMPILE} -o $@ -c $<
    140 shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel: $(shmdr_OBJECTS)
    141         $(make-rel)
    142 
    143 if HAS_MP
    144 include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h
    145 project_lib_DATA = shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel
     126shmdr_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
     127shmdr_rel_LDFLAGS = $(RTEMS_REL_LDFLAGS)
     128
     129EXTRA_PROGRAMS += shmdr_g.rel
     130CLEANFILES += shmdr_g.rel
     131shmdr_g_rel_SOURCES = $(no_shmdr_rel_SOURCES)
     132shmdr_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
     133shmdr_g_rel_LDFLAGS = $(RTEMS_REL_LDFLAGS)
     134
     135project_lib_DATA = shmdr$(LIB_VARIANT).rel
    146136endif
    147137
     
    151141
    152142all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
    153 
    154 EXTRA_DIST += $(libserialio_C_FILES) $(libserialio_DOC_FILES)
    155 
    156 CLEANDIRS = */$(ARCH)
    157143
    158144PREINSTALL_FILES =
     
    224210PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
    225211
    226 $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a: network/$(ARCH)/libnetchip$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
     212$(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a: libnetchip$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
    227213        $(INSTALL_DATA) $< $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
    228214TMPINSTALL_FILES += $(PROJECT_LIB)/libnetchip$(LIB_VARIANT).a
     
    275261PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpci.h
    276262
    277 $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr/$(ARCH)/shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
     263$(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel: shmdr$(LIB_VARIANT).rel $(PROJECT_LIB)/$(dirstamp)
    278264        $(INSTALL_DATA) $< $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
    279265TMPINSTALL_FILES += $(PROJECT_LIB)/shmdr$(LIB_VARIANT).rel
    280266endif
    281267
    282 CLEANFILES = $(PREINSTALL_FILES)
     268CLEANFILES += $(PREINSTALL_FILES)
    283269CLEANFILES += $(TMPINSTALL_FILES)
    284270
Note: See TracChangeset for help on using the changeset viewer.