source: ada-examples/hello_world_ada/Makefile.anybsp @ 4ad07d0

ada-examples-4-10-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 4ad07d0 was 4ad07d0, checked in by Joel Sherrill <joel.sherrill@…>, on 07/17/07 at 19:12:31

2007-07-17 Joel Sherrill <joel.sherrill@…>

  • hello_world_ada/Makefile.anybsp, hello_world_ada/Makefile.pc386, hello_world_ada/Makefile.score603e, hello_world_ada/init.c: Clean up GNAT_MAIN_STACKSIZE.
  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[8b09de0]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
16MAIN=hello
17
18include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
19
20include $(RTEMS_CUSTOM)
21include $(PROJECT_ROOT)/make/leaf.cfg
22
23ifeq ($(RTEMS_BSP),ep5200)
24LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS)
25endif
26
27# Tool helpers
28rtemsdir=${RTEMS_MAKEFILE_PATH}
29GNATMAKE=$(AS:as=gnatmake)
[4ad07d0]30CARGS =-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS)
31CARGS+=-DGNAT_MAIN_STACKSPACE=100
[8b09de0]32
33all: 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
39init.o: init.c
40        $(CC) $(CFLAGS) $(CPU_CFLAGS) -c init.c
41
42clean:
43        rm -f b~$(MAIN).*  *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.