File: Makefile.RTEMS

package info (click to toggle)
adasockets 1.8.8-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,464 kB
  • ctags: 172
  • sloc: sh: 9,967; ada: 1,689; ansic: 357; makefile: 256
file content (37 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
#  Makefile.constants
#
#  Build the constants.exe program that MUST be run on an RTEMS target.
#  It should be able to be ANY target including a simulator since the
#  constants in question should be the same across all architectures
#  and BSPs
#
#  $Id: Makefile.RTEMS,v 1.1 2007/09/11 15:12:56 joel Exp $
#

#
#  RTEMS_MAKEFILE_PATH is typically set in an environment variable
#  or make is invoked like "RTEMS_MAKEFILE_PATH=XXX make"
#

# optional managers required
MANAGERS=all

# C source names
COBJS = ${ARCH}/rtems_main.o ${ARCH}/constants.o

include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg

CLEAN_ADDITIONS += constants.c

OBJS= $(COBJS) 

all: $(ARCH)/constants.exe

$(ARCH)/constants.exe: $(ARCH) $(OBJS)
	$(make-exe)

constants.c: create_constants_c.sh ../vms/constants.list
	sh ./create_constants_c.sh ../vms/constants.list $@