1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../bsp.am |
---|
9 | |
---|
10 | dist_project_lib_DATA = bsp_specs |
---|
11 | |
---|
12 | include_HEADERS = include/bsp.h |
---|
13 | include_HEADERS += include/tm27.h |
---|
14 | |
---|
15 | nodist_include_HEADERS = include/bspopts.h |
---|
16 | DISTCLEANFILES = include/bspopts.h |
---|
17 | |
---|
18 | noinst_PROGRAMS = |
---|
19 | |
---|
20 | include_bspdir = $(includedir)/bsp |
---|
21 | |
---|
22 | include_HEADERS += include/coverhd.h |
---|
23 | |
---|
24 | nodist_include_HEADERS += ../../shared/tod.h |
---|
25 | |
---|
26 | EXTRA_DIST = start/start.S |
---|
27 | start.$(OBJEXT): start/start.S |
---|
28 | $(CPPASCOMPILE) -o $@ -c $< |
---|
29 | project_lib_DATA = start.$(OBJEXT) |
---|
30 | |
---|
31 | EXTRA_DIST += ../../powerpc/shared/start/rtems_crti.S |
---|
32 | rtems_crti.$(OBJEXT): ../../powerpc/shared/start/rtems_crti.S |
---|
33 | $(CPPASCOMPILE) -o $@ -c $< |
---|
34 | project_lib_DATA += rtems_crti.$(OBJEXT) |
---|
35 | |
---|
36 | dist_project_lib_DATA += startup/linkcmds \ |
---|
37 | startup/linkcmds.mpc8349eamds \ |
---|
38 | startup/linkcmds.hsc_cm01 |
---|
39 | |
---|
40 | noinst_PROGRAMS += mpc83xx_regs.rel |
---|
41 | mpc83xx_regs_rel_SOURCES = startup/mpc83xx_regs.c |
---|
42 | mpc83xx_regs_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
43 | mpc83xx_regs_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
44 | |
---|
45 | noinst_PROGRAMS += startup.rel |
---|
46 | startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ |
---|
47 | ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ |
---|
48 | ../../shared/sbrk.c \ |
---|
49 | ../../shared/gnatinstallhandler.c startup/cpuinit.c |
---|
50 | |
---|
51 | startup_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
52 | startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
53 | |
---|
54 | noinst_PROGRAMS += pclock.rel |
---|
55 | pclock_rel_SOURCES = ../../powerpc/shared/clock/p_clock.c |
---|
56 | pclock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
57 | pclock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
58 | |
---|
59 | include_bsp_HEADERS = ./irq/irq.h\ |
---|
60 | ../../powerpc/shared/vectors/vectors.h |
---|
61 | |
---|
62 | noinst_PROGRAMS += vectors.rel |
---|
63 | vectors_rel_SOURCES = ../../powerpc/shared/vectors/vectors.h \ |
---|
64 | ../../powerpc/shared/vectors/vectors_init.c \ |
---|
65 | ../../powerpc/shared/vectors/vectors.S |
---|
66 | vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
67 | vectors_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
68 | |
---|
69 | noinst_PROGRAMS += irq.rel |
---|
70 | irq_rel_SOURCES = ./irq/irq.h \ |
---|
71 | ./irq/irq_init.c \ |
---|
72 | ./irq/ipic.c \ |
---|
73 | ../shared/irq/irq_asm.S |
---|
74 | |
---|
75 | irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
76 | irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
77 | |
---|
78 | noinst_PROGRAMS += console.rel |
---|
79 | console_rel_SOURCES = console/console.c console/ns16550cfg.c |
---|
80 | console_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
81 | console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
82 | |
---|
83 | if HAS_NETWORKING |
---|
84 | noinst_PROGRAMS += network.rel |
---|
85 | network_rel_SOURCES = network/network.c |
---|
86 | network_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
87 | network_rel_CPPFLAGS += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE |
---|
88 | network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
89 | endif |
---|
90 | |
---|
91 | noinst_PROGRAMS += bsp_i2c.rel |
---|
92 | bsp_i2c_rel_SOURCES = i2c/i2c_init.c |
---|
93 | bsp_i2c_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
94 | bsp_i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
95 | |
---|
96 | noinst_LIBRARIES = libbsp.a |
---|
97 | libbsp_a_SOURCES = |
---|
98 | libbsp_a_LIBADD = startup.rel pclock.rel console.rel \ |
---|
99 | vectors.rel irq.rel mpc83xx_regs.rel |
---|
100 | libbsp_a_LIBADD += network.rel bsp_i2c.rel |
---|
101 | libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cpuIdent.rel \ |
---|
102 | ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \ |
---|
103 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/rtems-cpu.rel \ |
---|
104 | ../../../libcpu/@RTEMS_CPU@/@exceptions@/raw_exception.rel \ |
---|
105 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
106 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \ |
---|
107 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/clock.rel \ |
---|
108 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/mmu.rel \ |
---|
109 | ../../../libcpu/@RTEMS_CPU@/mpc6xx/timer.rel \ |
---|
110 | ../../../libcpu/@RTEMS_CPU@/mpc83xx/tsec.rel \ |
---|
111 | ../../../libcpu/@RTEMS_CPU@/mpc83xx/i2c.rel |
---|
112 | |
---|
113 | EXTRA_DIST += README.mpc8349eamds |
---|
114 | EXTRA_DIST += times.mpc8349eamds |
---|
115 | |
---|
116 | include $(srcdir)/preinstall.am |
---|
117 | include $(top_srcdir)/../../../../automake/local.am |
---|