source: ada-examples/hello_world_ada/Makefile.anybsp @ 8b09de0

ada-examples-4-10-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 8b09de0 was 8b09de0, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 17, 2007 at 6:29:37 PM

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

  • hello_world_ada/Makefile.pc386, hello_world_ada/init.c: Update to gcc 4.2.0 and rtems 4.8.
  • hello_world_ada/Makefile.anybsp: New file.
  • hello_world_ada/Makefile.erc32, hello_world_ada/Makefile.jmr3904, hello_world_ada/Makefile.psim: Removed.
  • Property mode set to 100644
File size: 1010 bytes
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),ep5200)
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)
31
32all: init.o
33        $(GNATMAKE) -v -O -gnata -gnatE -gnato $(MAIN) -g \
34            -bargs -Mgnat_main \
35            -largs $(CARGS) $(LINKARGS) init.o
36        $(SIZE) $(MAIN)
37
38init.o: init.c
39        $(CC) $(CFLAGS) $(CPU_CFLAGS) -c init.c
40
41clean:
42        rm -f b~$(MAIN).*  *.o *.ali $(MAIN)
Note: See TracBrowser for help on using the repository browser.