[811804fe] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[fcc61f10] | 5 | include $(top_srcdir)/automake/compile.am |
---|
| 6 | |
---|
| 7 | if LIBCHIP |
---|
| 8 | include_libchipdir = $(includedir)/libchip |
---|
| 9 | include_libchip_HEADERS = |
---|
| 10 | endif |
---|
| 11 | |
---|
| 12 | EXTRA_DIST = |
---|
[552fca7] | 13 | noinst_LIBRARIES = |
---|
| 14 | noinst_PROGRAMS = |
---|
[fcc61f10] | 15 | |
---|
| 16 | # ide |
---|
| 17 | if LIBCHIP |
---|
| 18 | include_libchip_HEADERS += ide/ata.h ide/ide_ctrl_cfg.h ide/ide_ctrl.h \ |
---|
| 19 | ide/ide_ctrl_io.h |
---|
| 20 | |
---|
[552fca7] | 21 | noinst_LIBRARIES += libide.a |
---|
[f3fdc59] | 22 | libide_a_SOURCES = ide/ata.c ide/ide_controller.c ide/ata_internal.h |
---|
[4f647b9] | 23 | libide_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[f3fdc59] | 24 | endif |
---|
[fcc61f10] | 25 | |
---|
[f3fdc59] | 26 | # network |
---|
[fcc61f10] | 27 | if LIBCHIP |
---|
| 28 | if HAS_NETWORKING |
---|
[9d8ad28] | 29 | noinst_LIBRARIES += libnetchip.a |
---|
| 30 | libnetchip_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
| 31 | libnetchip_a_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ |
---|
[fcc61f10] | 32 | include_libchip_HEADERS += network/cs8900.h network/i82586var.h \ |
---|
[e7d0cafa] | 33 | network/if_fxpvar.h network/sonic.h |
---|
| 34 | include_libchip_HEADERS += network/open_eth.h network/if_dcreg.h |
---|
[f3fdc59] | 35 | libnetchip_a_SOURCES = network/cs8900.c network/dec21140.c network/i82586.c \ |
---|
[af28e68e] | 36 | network/sonic.c network/if_fxp.c network/elnk.c network/open_eth.c \ |
---|
| 37 | network/if_dc.c |
---|
[9d8ad28] | 38 | include_libchip_HEADERS += network/smc91111.h network/smc91111exp.h |
---|
[2be6d66b] | 39 | libnetchip_a_SOURCES += network/smc91111.c network/smc91111config.h |
---|
[fcc61f10] | 40 | endif |
---|
| 41 | endif |
---|
| 42 | |
---|
[f3fdc59] | 43 | EXTRA_DIST += network/README network/README.cs8900 network/README.dec21140 \ |
---|
| 44 | network/README.i82586 network/README.open_eth network/README.sonic \ |
---|
[af28e68e] | 45 | network/cs8900.c.bsp README.tulipclone |
---|
[fcc61f10] | 46 | |
---|
| 47 | # rtc |
---|
[f3fdc59] | 48 | if LIBCHIP |
---|
[9a4b31f] | 49 | include_libchip_HEADERS += rtc/rtc.h rtc/icm7170.h rtc/m48t08.h \ |
---|
| 50 | rtc/mc146818a.h |
---|
[f3fdc59] | 51 | |
---|
[552fca7] | 52 | noinst_LIBRARIES += librtcio.a |
---|
[4f647b9] | 53 | librtcio_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[f3fdc59] | 54 | librtcio_a_SOURCES = rtc/rtcprobe.c rtc/icm7170.c rtc/icm7170_reg.c \ |
---|
[fcc61f10] | 55 | rtc/icm7170_reg2.c rtc/icm7170_reg4.c rtc/icm7170_reg8.c rtc/m48t08.c \ |
---|
[29322a8d] | 56 | rtc/m48t08_reg.c rtc/m48t08_reg2.c rtc/m48t08_reg4.c rtc/m48t08_reg8.c \ |
---|
| 57 | rtc/mc146818a.c rtc/mc146818a_ioreg.c |
---|
[fcc61f10] | 58 | endif |
---|
| 59 | |
---|
[f3fdc59] | 60 | EXTRA_DIST += rtc/README.ds1643 rtc/README.icm7170 rtc/README.m48t08 \ |
---|
[fcc61f10] | 61 | rtc/README.m48t18 rtc/STATUS |
---|
| 62 | |
---|
[78111c3] | 63 | # i2c |
---|
| 64 | if LIBCHIP |
---|
| 65 | include_libchip_HEADERS += i2c/i2c-ds1621.h i2c/i2c-2b-eeprom.h |
---|
| 66 | |
---|
| 67 | noinst_LIBRARIES += libi2cio.a |
---|
| 68 | libi2cio_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[818fbd83] | 69 | libi2cio_a_SOURCES = i2c/i2c-ds1621.c i2c/i2c-2b-eeprom.c \ |
---|
| 70 | i2c/i2c-ds1621.h i2c/i2c-2b-eeprom.h |
---|
[78111c3] | 71 | endif |
---|
| 72 | |
---|
[fcc61f10] | 73 | # serial |
---|
[f3fdc59] | 74 | if LIBCHIP |
---|
| 75 | include_libchip_HEADERS += serial/mc68681.h serial/ns16550.h serial/z85c30.h \ |
---|
| 76 | serial/serial.h serial/sersupp.h |
---|
| 77 | |
---|
[552fca7] | 78 | noinst_LIBRARIES += libserialio.a |
---|
[4f647b9] | 79 | libserialio_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[f3fdc59] | 80 | libserialio_a_SOURCES = serial/mc68681.c serial/mc68681_baud.c \ |
---|
[fcc61f10] | 81 | serial/mc68681_reg.c serial/mc68681_reg2.c serial/mc68681_reg4.c \ |
---|
| 82 | serial/mc68681_reg8.c serial/ns16550.c serial/z85c30.c \ |
---|
| 83 | serial/z85c30_reg.c serial/serprobe.c serial/termios_baud2index.c \ |
---|
[f3fdc59] | 84 | serial/termios_baud2num.c serial/mc68681_p.h serial/ns16550_p.h \ |
---|
| 85 | serial/z85c30_p.h |
---|
[fcc61f10] | 86 | endif |
---|
| 87 | |
---|
[f3fdc59] | 88 | EXTRA_DIST += serial/README.mc68681 serial/README.ns16550 \ |
---|
[fcc61f10] | 89 | serial/README.xr88681 serial/README.z85c30 serial/STATUS |
---|
[ab21e14] | 90 | |
---|
| 91 | ## shmdr |
---|
[f3fdc59] | 92 | if HAS_MP |
---|
| 93 | include_HEADERS = shmdr/shm_driver.h shmdr/mpci.h |
---|
| 94 | |
---|
[552fca7] | 95 | project_lib_PROGRAMS = shmdr.rel |
---|
[f3fdc59] | 96 | shmdr_rel_SOURCES = shmdr/addlq.c shmdr/cnvpkt.c shmdr/getlq.c shmdr/dump.c \ |
---|
[ab21e14] | 97 | shmdr/fatal.c shmdr/getpkt.c shmdr/init.c shmdr/initlq.c shmdr/intr.c \ |
---|
| 98 | shmdr/mpisr.c shmdr/poll.c shmdr/receive.c shmdr/retpkt.c shmdr/send.c \ |
---|
| 99 | shmdr/setckvec.c |
---|
[4f647b9] | 100 | shmdr_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[23c6a958] | 101 | shmdr_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
[ab21e14] | 102 | endif |
---|
| 103 | |
---|
| 104 | EXTRA_DIST += shmdr/README |
---|
[fcc61f10] | 105 | |
---|
[ab21e14] | 106 | ## -- |
---|
| 107 | |
---|
| 108 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
[fcc61f10] | 109 | |
---|
[77c5415c] | 110 | include $(srcdir)/preinstall.am |
---|
[5c0064d] | 111 | include $(top_srcdir)/automake/local.am |
---|