Makefile.x86.rtems_posix 1.28 KB
Newer Older
jdelange's avatar
jdelange committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## This file is a part of PolyORB-HI-C software.
## It sets some variables useful to compile generated
## code to the LEON platform with the RTEMS operating system.

## To use and compile RTEMS, visit http://www.rtems.com

## This file has been built for RTEMS 4.8.0



define bsp-post-link
   $(NM) -g -n $@ > $(basename $@).num
   $(SIZE) $@
endef


MANAGERS = all rate_monotonic

CC                           = i386-rtems4.8-gcc
CPP                          = i386-rtems4.8-g++

GPROF                        = i386-rtems4.8-gprof

24
25
TARGET_SOURCES               =
TARGET_TRANSPORT_SOURCES     =
jdelange's avatar
jdelange committed
26
27
28
29

TARGET_CFLAGS                = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE               = -I $(RUNTIME_PATH)/config/

30
LD                           = i386-rtems4.8-gcc
jdelange's avatar
jdelange committed
31
TARGET_LDFLAGS               = -lrtemsbsp -lc -lm
32

jdelange's avatar
jdelange committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
target-clean:

-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc

-include $(RTEMS_CUSTOM)
-include $(PROJECT_ROOT)/make/leaf.cfg

define bsp-link-c
   $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
      -o $(BINARY) $(LINK_OBJS) $(LINK_LIBS)
endef

define bsp-link-cxx
   $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
      -o $(BINARY) $(LINK_OBJS) $(LINK_LIBS)
endef

ifdef USE_GPROF
TARGET_LDFLAGS+=-Wl,--wrap,Clock_isr -pg
target-objects:
else
target-objects:
endif