Changeset fcc61f10 in rtems for c/src/libchip/Makefile.am


Ignore:
Timestamp:
Dec 2, 2003, 7:48:54 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1ca7bc9
Parents:
49528ab
Message:

2003-12-02 Ralf Corsepius <corsepiu@…>

  • ide/Makefile.am, network/Makefile.am, rtc/Makefile.am, serial/Makefile.am: Remove.
  • Makefile.am: Merge-in Makefile.am above. Add preinstallation + compilation dirstamp support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/Makefile.am

    r49528ab rfcc61f10  
    33##
    44
    5 SUBDIRS = rtc serial network ide
    6 
    7 include $(top_srcdir)/automake/subdirs.am
     5include $(top_srcdir)/automake/compile.am
     6include $(top_srcdir)/automake/lib.am
     7
     8if LIBCHIP
     9include_libchipdir = $(includedir)/libchip
     10include_libchip_HEADERS =
     11TMP_LIBS =
     12endif
     13
     14EXTRA_DIST =
     15noinst_HEADERS =
     16
     17# ide
     18libide_C_FILES = ide/ata.c ide/ide_controller.c
     19libide_OBJS = $(libide_C_FILES:ide/%.c=ide/$(ARCH)/%.$(OBJEXT))
     20
     21noinst_HEADERS += ide/ata_internal.h
     22
     23if LIBCHIP
     24include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \
     25    ide/ide_ctrl_io.h
     26
     27ide/$(ARCH)/$(dirstamp):
     28        @$(mkinstalldirs) ide/$(ARCH)
     29        @: > ide/$(ARCH)/$(dirstamp)
     30ide/$(ARCH)/%.$(OBJEXT): ide/%.c ide/$(ARCH)/$(dirstamp)
     31        ${COMPILE} -o $@ -c $<
     32ide/$(ARCH)/libide.a: $(libide_OBJS)
     33        $(make-library)
     34TMP_LIBS += ide/$(ARCH)/libide.a
     35endif
     36
     37EXTRA_DIST += $(libide_C_FILES)
     38
     39# network
     40
     41libnetchip_C_FILES = network/cs8900.c network/dec21140.c network/i82586.c \
     42    network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c
     43libnetchip_OBJS = \
     44    $(libnetchip_C_FILES:network/%.c=network/$(ARCH)/%.$(OBJEXT))
     45
     46libnetchip_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
     47
     48if LIBCHIP
     49if HAS_NETWORKING
     50include_libchip_HEADERS += network/cs8900.h network/i82586var.h \
     51    network/if_fxpvar.h network/sonic.h network/if_media.h network/mii.h \
     52    network/open_eth.h
     53
     54network/$(ARCH)/$(dirstamp):
     55        @$(mkinstalldirs) network/$(ARCH)
     56        @: > network/$(ARCH)/$(dirstamp)
     57network/$(ARCH)/%.$(OBJEXT): network/%.c network/$(ARCH)/$(dirstamp)
     58        ${COMPILE} $(libnetchip_CPPFLAGS) -o $@ -c $<
     59network/$(ARCH)/libnetchip.a: $(libnetchip_OBJS)
     60        $(make-library)
     61TMP_LIBS += network/$(ARCH)/libnetchip.a
     62
     63$(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a: network/$(ARCH)/libnetchip.a
     64        $(INSTALL_DATA) $< $@
     65
     66TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a
     67endif
     68endif
     69
     70.PRECIOUS: network/$(ARCH)/libnetchip.a
     71
     72libnetchip_DOC_FILES = network/README network/README.cs8900 \
     73    network/README.dec21140 network/README.i82586 network/README.open_eth \
     74    network/README.sonic network/cs8900.c.bsp
     75
     76EXTRA_DIST += $(libnetchip_C_FILES) $(libnetchip_DOC_FILES)
     77
     78# rtc
     79librtcio_C_FILES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \
     80    rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \
     81    rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c
     82
     83librtcio_OBJS = $(librtcio_C_FILES:rtc/%.c=rtc/$(ARCH)/%.$(OBJEXT))
     84
     85if LIBCHIP
     86include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h
     87
     88rtc/$(ARCH)/$(dirstamp):
     89        @$(mkinstalldirs) rtc/$(ARCH)
     90        @: > rtc/$(ARCH)/$(dirstamp)
     91rtc/$(ARCH)/%.$(OBJEXT): rtc/%.c rtc/$(ARCH)/$(dirstamp)
     92        ${COMPILE} -o $@ -c $<
     93rtc/$(ARCH)/librtcio.a: $(librtcio_OBJS)
     94        $(make-library)
     95TMP_LIBS += rtc/$(ARCH)/librtcio.a
     96endif
     97
     98librtcio_DOC_FILES = rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \
     99    rtc/README.m48t18 rtc/STATUS
     100
     101EXTRA_DIST += $(librtcio_C_FILES) $(librtcio_DOC_FILES)
     102
     103# serial
     104libserialio_C_FILES = serial/mc68681.c serial/mc68681_baud.c \
     105    serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \
     106    serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \
     107    serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \
     108    serial/termios_baud2num.c
     109libserialio_OBJS = \
     110    $(libserialio_C_FILES:serial/%.c=serial/$(ARCH)/%.$(OBJEXT))
     111
     112noinst_HEADERS += serial/mc68681_p.h serial/ns16550_p.h serial/z85c30_p.h
     113
     114if LIBCHIP
     115include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \
     116    serial/serial.h serial/sersupp.h
     117
     118serial/$(ARCH)/$(dirstamp):
     119        @$(mkinstalldirs) serial/$(ARCH)
     120        @: > serial/$(ARCH)/$(dirstamp)
     121serial/$(ARCH)/%.$(OBJEXT): serial/%.c serial/$(ARCH)/$(dirstamp)
     122        ${COMPILE} -o $@ -c $<
     123serial/$(ARCH)/libserialio.a: $(libserialio_OBJS)
     124        $(make-library)
     125TMP_LIBS += serial/$(ARCH)/libserialio.a
     126endif
     127
     128libserialio_DOC_FILES = serial/README.mc68681 serial/README.ns16550 \
     129    serial/README.xr88681 serial/README.z85c30 serial/STATUS
     130
     131all-local: $(PREINSTALL_FILES) $(TMP_LIBS) $(TMPINSTALL_FILES)
     132
     133EXTRA_DIST += $(libserialio_C_FILES) $(libserialio_DOC_FILES)
     134
     135CLEANDIRS = */$(ARCH)
     136
     137PREINSTALL_FILES =
     138
     139if LIBCHIP
     140$(PROJECT_INCLUDE)/libchip/$(dirstamp):
     141        @$(mkinstalldirs) $(PROJECT_INCLUDE)/libchip
     142        @: > $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     143PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     144endif
     145
     146if LIBCHIP
     147$(PROJECT_INCLUDE)/libchip/ata.h: ide/ata.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     148        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ata.h
     149PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ata.h
     150
     151$(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h: ide/ide_ctrl_cfg.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     152        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
     153PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_cfg.h
     154
     155$(PROJECT_INCLUDE)/libchip/ide_ctrl.h: ide/ide_ctrl.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     156        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
     157PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl.h
     158
     159$(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h: ide/ide_ctrl_io.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     160        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
     161PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ide_ctrl_io.h
     162endif
     163
     164if LIBCHIP
     165if HAS_NETWORKING
     166$(PROJECT_INCLUDE)/libchip/cs8900.h: network/cs8900.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     167        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/cs8900.h
     168PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/cs8900.h
     169
     170$(PROJECT_INCLUDE)/libchip/i82586var.h: network/i82586var.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     171        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/i82586var.h
     172PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/i82586var.h
     173
     174$(PROJECT_INCLUDE)/libchip/if_fxpvar.h: network/if_fxpvar.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     175        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
     176PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_fxpvar.h
     177
     178$(PROJECT_INCLUDE)/libchip/sonic.h: network/sonic.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     179        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sonic.h
     180PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sonic.h
     181
     182$(PROJECT_INCLUDE)/libchip/if_media.h: network/if_media.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     183        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/if_media.h
     184PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/if_media.h
     185
     186$(PROJECT_INCLUDE)/libchip/mii.h: network/mii.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     187        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mii.h
     188PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mii.h
     189
     190$(PROJECT_INCLUDE)/libchip/open_eth.h: network/open_eth.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     191        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/open_eth.h
     192PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/open_eth.h
     193endif
     194endif
     195
     196if LIBCHIP
     197$(PROJECT_INCLUDE)/libchip/rtc.h: rtc/rtc.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     198        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/rtc.h
     199PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/rtc.h
     200
     201$(PROJECT_INCLUDE)/libchip/icm7170.h: rtc/icm7170.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     202        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/icm7170.h
     203PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/icm7170.h
     204
     205$(PROJECT_INCLUDE)/libchip/m48t08.h: rtc/m48t08.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     206        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/m48t08.h
     207PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/m48t08.h
     208endif
     209
     210if LIBCHIP
     211$(PROJECT_INCLUDE)/libchip/mc68681.h: serial/mc68681.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     212        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/mc68681.h
     213PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/mc68681.h
     214
     215$(PROJECT_INCLUDE)/libchip/ns16550.h: serial/ns16550.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     216        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/ns16550.h
     217PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/ns16550.h
     218
     219$(PROJECT_INCLUDE)/libchip/z85c30.h: serial/z85c30.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     220        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/z85c30.h
     221PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/z85c30.h
     222
     223$(PROJECT_INCLUDE)/libchip/serial.h: serial/serial.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     224        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/serial.h
     225PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/serial.h
     226
     227$(PROJECT_INCLUDE)/libchip/sersupp.h: serial/sersupp.h $(PROJECT_INCLUDE)/libchip/$(dirstamp)
     228        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libchip/sersupp.h
     229PREINSTALL_FILES += $(PROJECT_INCLUDE)/libchip/sersupp.h
     230endif
     231
    8232include $(top_srcdir)/automake/local.am
Note: See TracChangeset for help on using the changeset viewer.