makefiles: improve build order
[openocd.git] / src / flash / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/helper \
3         -I$(top_srcdir)/src/jtag \
4         -I$(top_srcdir)/src/target
5
6 METASOURCES = AUTO
7 noinst_LTLIBRARIES = libflash.la
8 libflash_la_SOURCES = \
9         $(FLASH_SRCS) \
10         $(NAND_SRCS) \
11         mflash.c
12
13 FLASH_SRCS = \
14         cfi.c \
15         non_cfi.c \
16         faux.c \
17         $(FLASH_DEVICES_SRCS) \
18         flash.c
19
20 FLASH_DEVICES_SRCS = \
21         aduc702x.c \
22         at91sam3.c \
23         at91sam7.c \
24         avrf.c \
25         ecos.c \
26         lpc2000.c \
27         lpc288x.c \
28         lpc2900.c \
29         ocl.c \
30         pic32mx.c \
31         stellaris.c \
32         stm32x.c \
33         str7x.c \
34         str9x.c \
35         str9xpec.c \
36         tms470.c
37
38 NAND_SRCS = \
39         arm_nandio.c \
40         nand_ecc.c \
41         nand_ecc_kw.c \
42         $(NAND_DEVICES_SRCS) \
43         nand.c
44
45 NAND_DEVICES_SRCS = \
46         davinci_nand.c \
47         lpc3180_nand_controller.c \
48         mx3_nand.c \
49         orion_nand.c \
50         s3c24xx_nand.c \
51         s3c2410_nand.c \
52         s3c2412_nand.c \
53         s3c2440_nand.c \
54         s3c2443_nand.c
55
56
57 noinst_HEADERS = \
58         arm_nandio.h \
59         at91sam7.h \
60         at91sam3.h \
61         avrf.h \
62         cfi.h \
63         flash.h \
64         lpc2000.h \
65         lpc288x.h \
66         lpc2900.h \
67         lpc3180_nand_controller.h \
68         mflash.h \
69         mx3_nand.h \
70         non_cfi.h \
71         nand.h \
72         ocl.h \
73         pic32mx.h \
74         stellaris.h \
75         stm32x.h \
76         str7x.h \
77         str9x.h \
78         str9xpec.h \
79         tms470.h \
80         s3c24xx_nand.h \
81         s3c24xx_regs_nand.h
82
83 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in