ada-examples-4-10-branchada-examples-4-8-branchada-examples-4-9-branch
Last change
on this file since ed30e2b was
ed30e2b,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/17/07 at 20:24:36
|
2007-08-17 Joel Sherrill <joel.sherrill@…>
- Makefile.anybsp: ep5200 renamed icecube. Trigger special case logic
on RTEMS_BSP_FAMILY not RTEMS_BSP.
- init.c: Remove print.
- ChangeLog?: New file.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | # |
---|
2 | # Makefile for hello world example -- any BSP without special help |
---|
3 | # |
---|
4 | # Directly produces an executable for any BSP which directly runs |
---|
5 | # the format (usually ELF) produced by just linking an application. |
---|
6 | # The executables produced by this Makefile should run on at least the |
---|
7 | # following BSPs: |
---|
8 | # arm/edb7312 |
---|
9 | # mips/jmr3904 |
---|
10 | # powerpc/psim |
---|
11 | # powerpc/score603e |
---|
12 | # sparc/erc32 |
---|
13 | # sparc/sis |
---|
14 | # |
---|
15 | |
---|
16 | MAIN=hello |
---|
17 | |
---|
18 | include $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
19 | |
---|
20 | include $(RTEMS_CUSTOM) |
---|
21 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
22 | |
---|
23 | ifeq ($(RTEMS_BSP_FAMILY),gen5200) |
---|
24 | LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS) |
---|
25 | endif |
---|
26 | |
---|
27 | # Tool helpers |
---|
28 | rtemsdir=${RTEMS_MAKEFILE_PATH} |
---|
29 | GNATMAKE=$(AS:as=gnatmake) |
---|
30 | CARGS =-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS) |
---|
31 | CARGS+=-DGNAT_MAIN_STACKSPACE=100 |
---|
32 | |
---|
33 | all: init.o |
---|
34 | $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \ |
---|
35 | -bargs -Mgnat_main \ |
---|
36 | -largs $(CARGS) $(LINKARGS) init.o |
---|
37 | $(SIZE) $(MAIN) |
---|
38 | |
---|
39 | init.o: init.c |
---|
40 | $(CC) $(CFLAGS) $(CPU_CFLAGS) -c init.c |
---|
41 | |
---|
42 | clean: |
---|
43 | rm -f b~$(MAIN).* *.o *.ali $(MAIN) |
---|
44 | rm -f *.num *.exe *.obj *.bin *.bt |
---|
Note: See
TracBrowser
for help on using the repository browser.