[19260fb] | 1 | ## |
---|
| 2 | # |
---|
| 3 | # @file |
---|
| 4 | # |
---|
| 5 | # @brief Makefile of LibBSP for the LPC176x boards. |
---|
| 6 | # |
---|
| 7 | |
---|
| 8 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
| 9 | |
---|
| 10 | include $(top_srcdir)/../../../../automake/compile.am |
---|
| 11 | |
---|
| 12 | include_bspdir = $(includedir)/bsp |
---|
| 13 | |
---|
| 14 | dist_project_lib_DATA = bsp_specs |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | # ---------------------------- |
---|
| 18 | # ------ Headers |
---|
| 19 | # ---------------------------- |
---|
| 20 | |
---|
| 21 | include_HEADERS = include/bsp.h |
---|
| 22 | |
---|
| 23 | nodist_include_HEADERS = ../../shared/include/coverhd.h |
---|
| 24 | nodist_include_HEADERS += include/bspopts.h |
---|
| 25 | |
---|
| 26 | nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h |
---|
| 27 | |
---|
| 28 | include_bsp_HEADERS = |
---|
| 29 | include_bsp_HEADERS += ../../shared/include/utility.h |
---|
| 30 | include_bsp_HEADERS += ../../shared/include/irq-generic.h |
---|
| 31 | include_bsp_HEADERS += ../../shared/include/irq-info.h |
---|
| 32 | include_bsp_HEADERS += ../../shared/include/stackalloc.h |
---|
| 33 | include_bsp_HEADERS += ../../shared/include/uart-output-char.h |
---|
| 34 | include_bsp_HEADERS += ../shared/include/start.h |
---|
| 35 | include_bsp_HEADERS += ../shared/lpc/include/lpc-timer.h |
---|
| 36 | include_bsp_HEADERS += ../shared/lpc/include/lpc-i2s.h |
---|
| 37 | include_bsp_HEADERS += ../shared/lpc/include/lpc-dma.h |
---|
| 38 | include_bsp_HEADERS += ../shared/armv7m/include/armv7m-irq.h |
---|
| 39 | include_bsp_HEADERS += include/dma.h |
---|
| 40 | include_bsp_HEADERS += include/io-defs.h |
---|
| 41 | include_bsp_HEADERS += include/io.h |
---|
| 42 | include_bsp_HEADERS += include/common-types.h |
---|
| 43 | include_bsp_HEADERS += include/gpio-defs.h |
---|
| 44 | include_bsp_HEADERS += include/gpio.h |
---|
[7b35a36] | 45 | include_bsp_HEADERS += include/can.h |
---|
| 46 | include_bsp_HEADERS += include/can-defs.h |
---|
| 47 | include_bsp_HEADERS += include/pwmout.h |
---|
| 48 | include_bsp_HEADERS += include/pwmout-defs.h |
---|
| 49 | include_bsp_HEADERS += include/adc.h |
---|
| 50 | include_bsp_HEADERS += include/adc-defs.h |
---|
[19260fb] | 51 | include_bsp_HEADERS += include/timer-defs.h |
---|
| 52 | include_bsp_HEADERS += include/timer.h |
---|
| 53 | include_bsp_HEADERS += include/watchdog.h |
---|
| 54 | include_bsp_HEADERS += include/watchdog-defs.h |
---|
| 55 | include_bsp_HEADERS += include/irq.h |
---|
| 56 | include_bsp_HEADERS += include/lpc176x.h |
---|
| 57 | include_bsp_HEADERS += include/lpc-clock-config.h |
---|
| 58 | include_bsp_HEADERS += include/system-clocks.h |
---|
[7b35a36] | 59 | include_bsp_HEADERS += include/mbed-pinmap.h |
---|
[19260fb] | 60 | |
---|
| 61 | include_HEADERS += ../../shared/include/tm27.h |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | # ---------------------------- |
---|
| 65 | # ------ Data |
---|
| 66 | # ---------------------------- |
---|
| 67 | |
---|
| 68 | noinst_LIBRARIES = libbspstart.a |
---|
| 69 | |
---|
| 70 | libbspstart_a_SOURCES = ../shared/start/start.S |
---|
| 71 | |
---|
| 72 | project_lib_DATA = start.$(OBJEXT) |
---|
| 73 | project_lib_DATA += startup/linkcmds |
---|
| 74 | |
---|
| 75 | EXTRA_DIST = |
---|
| 76 | EXTRA_DIST += startup/linkcmds.lpc1768_mbed |
---|
| 77 | EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram |
---|
[f59e64f2] | 78 | EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram_eth |
---|
[19260fb] | 79 | |
---|
| 80 | |
---|
| 81 | # ---------------------------- |
---|
| 82 | # ------ LibBSP |
---|
| 83 | # ---------------------------- |
---|
| 84 | |
---|
| 85 | noinst_LIBRARIES += libbsp.a |
---|
| 86 | |
---|
| 87 | libbsp_a_SOURCES = |
---|
| 88 | libbsp_a_CPPFLAGS = |
---|
| 89 | libbsp_a_LIBADD = |
---|
| 90 | |
---|
| 91 | # Shared |
---|
| 92 | libbsp_a_SOURCES += ../../shared/bootcard.c |
---|
| 93 | libbsp_a_SOURCES += ../../shared/bspclean.c |
---|
| 94 | libbsp_a_SOURCES += ../../shared/bspgetworkarea.c |
---|
| 95 | libbsp_a_SOURCES += ../../shared/bsplibc.c |
---|
| 96 | libbsp_a_SOURCES += ../../shared/bsppost.c |
---|
| 97 | libbsp_a_SOURCES += ../../shared/bsppredriverhook.c |
---|
| 98 | libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c |
---|
| 99 | libbsp_a_SOURCES += ../../shared/sbrk.c |
---|
| 100 | libbsp_a_SOURCES += ../../shared/src/stackalloc.c |
---|
| 101 | libbsp_a_SOURCES += ../../shared/src/uart-output-char.c |
---|
| 102 | |
---|
| 103 | # Startup |
---|
| 104 | libbsp_a_SOURCES += ../shared/startup/bsp-start-memcpy.S |
---|
| 105 | libbsp_a_SOURCES += startup/bspreset.c |
---|
| 106 | libbsp_a_SOURCES += startup/bspstart.c |
---|
| 107 | |
---|
| 108 | # IRQ |
---|
| 109 | libbsp_a_SOURCES += ../../shared/src/irq-default-handler.c |
---|
| 110 | libbsp_a_SOURCES += ../../shared/src/irq-generic.c |
---|
| 111 | libbsp_a_SOURCES += ../../shared/src/irq-info.c |
---|
| 112 | libbsp_a_SOURCES += ../../shared/src/irq-legacy.c |
---|
| 113 | libbsp_a_SOURCES += ../../shared/src/irq-server.c |
---|
| 114 | libbsp_a_SOURCES += ../../shared/src/irq-shell.c |
---|
| 115 | libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq.c |
---|
| 116 | libbsp_a_SOURCES += ../shared/armv7m/irq/armv7m-irq-dispatch.c |
---|
| 117 | libbsp_a_SOURCES += irq/irq.c |
---|
| 118 | |
---|
| 119 | # Console |
---|
[6ec438e] | 120 | libbsp_a_SOURCES += ../../shared/console-termios-init.c |
---|
| 121 | libbsp_a_SOURCES += ../../shared/console-termios.c |
---|
[19260fb] | 122 | libbsp_a_SOURCES += console/console-config.c |
---|
| 123 | |
---|
| 124 | # Clock |
---|
| 125 | libbsp_a_SOURCES += ../../shared/clockdrv_shell.h |
---|
| 126 | libbsp_a_SOURCES += ../shared/lpc/clock/lpc-clock-config.c |
---|
| 127 | libbsp_a_SOURCES += ../shared/armv7m/clock/armv7m-clock-config.c |
---|
| 128 | |
---|
| 129 | # RTC |
---|
| 130 | libbsp_a_SOURCES += ../../shared/tod.c \ |
---|
| 131 | rtc/rtc-config.c |
---|
| 132 | |
---|
| 133 | # GPIO |
---|
| 134 | libbsp_a_SOURCES += gpio/gpio.c |
---|
| 135 | |
---|
[7b35a36] | 136 | # CAN |
---|
| 137 | libbsp_a_SOURCES += can/can.c |
---|
| 138 | |
---|
| 139 | # PWMOUT |
---|
| 140 | libbsp_a_SOURCES += pwmout/pwmout.c |
---|
| 141 | |
---|
| 142 | # ADC |
---|
| 143 | libbsp_a_SOURCES += adc/adc.c |
---|
| 144 | |
---|
[19260fb] | 145 | # Timer |
---|
| 146 | libbsp_a_SOURCES += timer/timer.c |
---|
| 147 | |
---|
| 148 | # Benchmark Timer |
---|
| 149 | libbsp_a_SOURCES += benchmark_timer/benchmark_timer.c |
---|
| 150 | |
---|
| 151 | # Misc |
---|
| 152 | libbsp_a_SOURCES += misc/system-clocks.c |
---|
| 153 | libbsp_a_SOURCES += misc/dma.c |
---|
| 154 | libbsp_a_SOURCES += misc/dma-copy.c |
---|
| 155 | libbsp_a_SOURCES += misc/bspidle.c |
---|
| 156 | libbsp_a_SOURCES += misc/io.c |
---|
| 157 | libbsp_a_SOURCES += misc/restart.c |
---|
| 158 | |
---|
| 159 | # Watchdog |
---|
| 160 | libbsp_a_SOURCES += watchdog/watchdog.c |
---|
| 161 | |
---|
| 162 | # Cache |
---|
| 163 | libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c |
---|
| 164 | libbsp_a_SOURCES += ../../../libcpu/arm/shared/include/cache_.h |
---|
| 165 | libbsp_a_CPPFLAGS += -I$(srcdir)/../../../libcpu/arm/shared/include |
---|
| 166 | |
---|
| 167 | # Start hooks |
---|
| 168 | libbsp_a_SOURCES += startup/bspstarthooks.c |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | # ---------------------------- |
---|
| 172 | # ------ Special Rules |
---|
| 173 | # ---------------------------- |
---|
| 174 | |
---|
| 175 | DISTCLEANFILES = include/bspopts.h |
---|
| 176 | |
---|
| 177 | include $(srcdir)/preinstall.am |
---|
| 178 | include $(top_srcdir)/../../../../automake/local.am |
---|