summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm/Makefile.am
blob: 5f92a64310478b2c4670c78d872bd761cf3d3eb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
ACLOCAL_AMFLAGS = -I ../../../aclocal

include $(top_srcdir)/../../../automake/compile.am

EXTRA_DIST =

noinst_PROGRAMS =

include_bspdir = $(includedir)/bsp
include_libcpudir = $(includedir)/libcpu

include_bsp_HEADERS =
include_libcpu_HEADERS =

## shared/include
if shared

include_libcpu_HEADERS += shared/include/mmu.h
include_libcpu_HEADERS += shared/include/arm-cp15.h

## shared/arm920
noinst_PROGRAMS += shared/arm920.rel
shared_arm920_rel_SOURCES = shared/arm920/mmu.c
shared_arm920_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
shared_arm920_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
endif

if at91rm9200
include_HEADERS = at91rm9200/include/at91rm9200.h at91rm9200/include/at91rm9200_dbgu.h \
    at91rm9200/include/at91rm9200_emac.h at91rm9200/include/at91rm9200_gpio.h \
    at91rm9200/include/at91rm9200_mem.h at91rm9200/include/at91rm9200_pmc.h \
    at91rm9200/include/bits.h at91rm9200/include/at91rm9200_usart.h

## at91rm9200/clock
noinst_PROGRAMS += at91rm9200/clock.rel
at91rm9200_clock_rel_SOURCES = at91rm9200/clock/clock.c
at91rm9200_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## at91rm9200/dbgu
noinst_PROGRAMS += at91rm9200/dbgu.rel
at91rm9200_dbgu_rel_SOURCES = at91rm9200/dbgu/dbgu.c
at91rm9200_dbgu_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_dbgu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## at91rm9200/usart
noinst_PROGRAMS += at91rm9200/usart.rel
at91rm9200_usart_rel_SOURCES = at91rm9200/usart/usart.c
at91rm9200_usart_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_usart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## at91rm9200/timer
noinst_PROGRAMS += at91rm9200/timer.rel
at91rm9200_timer_rel_SOURCES = at91rm9200/timer/timer.c
at91rm9200_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## at91rm9200/pmc
noinst_PROGRAMS += at91rm9200/pmc.rel
at91rm9200_pmc_rel_SOURCES = at91rm9200/pmc/pmc.c
at91rm9200_pmc_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_pmc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## at91rm9200/interrupt
include_bsp_HEADERS += at91rm9200/irq/irq.h

noinst_PROGRAMS += at91rm9200/irq.rel
at91rm9200_irq_rel_SOURCES = at91rm9200/irq/irq.c \
    at91rm9200/irq/irq.h
at91rm9200_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
at91rm9200_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
endif

if s3c24xx
include_HEADERS = s3c24xx/include/s3c24xx.h s3c24xx/include/s3c2400.h s3c24xx/include/s3c2410.h

## s3c24xx/clock
noinst_PROGRAMS += s3c24xx/clock.rel
s3c24xx_clock_rel_SOURCES = s3c24xx/clock/clockdrv.c s3c24xx/clock/support.c
s3c24xx_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
s3c24xx_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## s3c24xx/timer
noinst_PROGRAMS += s3c24xx/timer.rel
s3c24xx_timer_rel_SOURCES = s3c24xx/timer/timer.c
s3c24xx_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
s3c24xx_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)

## s3c24xx/interrupt
include_bsp_HEADERS += s3c24xx/irq/irq.h

noinst_PROGRAMS += s3c24xx/irq.rel
s3c24xx_irq_rel_SOURCES = s3c24xx/irq/irq.c \
    s3c24xx/irq/irq.h
s3c24xx_irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
s3c24xx_irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
endif

include $(srcdir)/preinstall.am
include $(top_srcdir)/../../../automake/local.am