Debian Codegraph @

rtems/Makefile.RTEMS

raw
1 #
2 # Makefile.constants
3 #
4 # Build the constants.exe program that MUST be run on an RTEMS target.
5 # It should be able to be ANY target including a simulator since the
6 # constants in question should be the same across all architectures
7 # and BSPs
8 #
9 # $Id: Makefile.RTEMS,v 1.1 2007/09/11 15:12:56 joel Exp $
10 #
11
12 #
13 # RTEMS_MAKEFILE_PATH is typically set in an environment variable
14 # or make is invoked like "RTEMS_MAKEFILE_PATH=XXX make"
15 #
16
17 # optional managers required
18 MANAGERS=all
19
20 # C source names
21 COBJS = ${ARCH}/rtems_main.o ${ARCH}/constants.o
22
23 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
24 include $(RTEMS_CUSTOM)
25 include $(PROJECT_ROOT)/make/leaf.cfg
26
27 CLEAN_ADDITIONS += constants.c
28
29 OBJS= $(COBJS)
30
31 all: $(ARCH)/constants.exe
32
33 $(ARCH)/constants.exe: $(ARCH) $(OBJS)
34 $(make-exe)
35
36 constants.c: create_constants_c.sh ../vms/constants.list
37 sh ./create_constants_c.sh ../vms/constants.list $@