source: ada-examples/hello_world_ada/Makefile.anybsp @ ed30e2b

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
16MAIN=hello
17
18include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
19
20include $(RTEMS_CUSTOM)
21include $(PROJECT_ROOT)/make/leaf.cfg
22
23ifeq ($(RTEMS_BSP_FAMILY),gen5200)
24LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS)
25endif
26
27# Tool helpers
28rtemsdir=${RTEMS_MAKEFILE_PATH}
29GNATMAKE=$(AS:as=gnatmake)
30CARGS =-B${rtemsdir}/lib/ -specs bsp_specs -qrtems $(CPU_CFLAGS)
31CARGS+=-DGNAT_MAIN_STACKSPACE=100
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)
44        rm -f *.num *.exe *.obj *.bin *.bt
Note: See TracBrowser for help on using the repository browser.