Refactor Makefile.am to move common files from 3 libraries into a single variable.
[debian/gnuradio] / usrp2 / firmware / lib / Makefile.am
1 #
2 # Copyright 2007 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 #
17
18 include $(top_srcdir)/Makefile.common
19
20 noinst_LIBRARIES = \
21         libu2fw.a \
22         libu2fw_wbx.a \
23         libu2fw_xcvr.a
24
25 U2FW_COMMON = \
26         _exit.c \
27         abort.c \
28         ad9510.c \
29         ad9777.c \
30         bsm12.c \
31         buffer_pool.c \
32         clocks.c \
33         db_basic.c \
34         dbsm.c \
35         eeprom.c \
36         eth_mac.c \
37         ethernet.c \
38         exit.c \
39         hal_io.c \
40         hal_uart.c \
41         i2c.c \
42         lsadc.c \
43         lsdac.c \
44         mdelay.c \
45         memcpy_wa.c \
46         memset_wa.c \
47         nonstdio.c \
48         pic.c \
49         print_buffer.c \
50         print_fxpt.c \
51         print_mac_addr.c \
52         print_rmon_regs.c \
53         printf.c \
54         sd.c \
55         spi.c \
56         u2_init.c
57
58 libu2fw_a_SOURCES = \
59         $(U2FW_COMMON) \
60         db_init.c \
61         db_bitshark_rx.c \
62         db_dbsrx.c \
63         db_rfx.c \
64         db_tvrx.c
65
66 libu2fw_wbx_a_SOURCES = \
67         $(U2FW_COMMON) \
68         db_init_wbx.c \
69         adf4350.c \
70         adf4350_regs.c \
71         db_wbxng.c 
72
73 libu2fw_xcvr_a_SOURCES = \
74         $(U2FW_COMMON) \
75         db_init_xcvr.c \
76         adf4350.c \
77         adf4350_regs.c \
78         db_xcvr2450.c
79
80
81 noinst_HEADERS = \
82         ad9510.h \
83         adf4350.h \
84         adf4350_regs.h \
85         ad9777.h \
86         ad9777_regs.h \
87         bool.h \
88         bsm12.h \
89         buffer_pool.h \
90         clocks.h \
91         db.h \
92         db_base.h \
93         db_wbxng.h \
94         db_bitshark_rx.h \
95         dbsm.h \
96         eth_mac.h \
97         eth_mac_regs.h \
98         eth_phy.h \
99         ethernet.h \
100         hal_io.h \
101         hal_uart.h \
102         i2c.h \
103         lsadc.h \
104         lsdac.h \
105         mdelay.h \
106         memcpy_wa.h \
107         memory_map.h \
108         memset_wa.h \
109         nonstdio.h \
110         pic.h \
111         print_rmon_regs.h \
112         sd.h \
113         spi.h \
114         stdint.h \
115         stdio.h \
116         u2_init.h \
117         usrp2_bytesex.h \
118         wb16550.h
119
120 EXTRA_DIST = \
121         microblaze.ld