Removing Nucleus references from OpenAMP repo. Documentation changes are pending
[processor-sdk/open-amp.git] / Makefile.commons
1 \r
2 TOOLSET          := csgnu\r
3 CROSS            := arm-xilinx-eabi-\r
4 CFLAGS           := -Wall -ffunction-sections -fdata-sections -O0 -g3 -MMD \r
5 CXXFLAGS         := -Wall -fno-enforce-eh-specs -MMD\r
6 ASFLAGS          := -gdwarf2 -meabi=4 -mcpu=cortex-a9 -mfpu=neon\r
7 ARFLAGS          := \r
8 ARCH_CFLAGS      := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
9 ARCH_CXXFLAGS    := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
10 ARCH_ASFLAGS     := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
11 ARCH_ARFLAGS     := \r
12 CC               = $(CROSS)gcc\r
13 CXX              = $(CROSS)g++\r
14 AS               = $(CROSS)as\r
15 AR               = $(CROSS)ar\r
16 LD               = $(CROSS)gcc\r
17 OBJCPY           = $(CROSS)objcopy\r
18 INCLUDE          := \r
19 RM               := rm -f\r
20 CP               := cp\r
21 OHOME            := $(OPENAMP)\r
22 \r
23 ifeq ($(PLAT),)\r
24 export PLAT := zc702evk\r
25 endif\r
26 \r
27 BAREMETAL_INCLUDES := -I"$(OHOME)/libs/system/$(PLAT)/baremetal"\r
28 GENERAL_INCLUDES := -I"$(OHOME)/include"\r
29 \r
30 ifeq ($(OS),baremetal)\r
31 CFLAGS += $(BAREMETAL_INCLUDES)\r
32 CFLAGS +=-D"ENV=1"\r
33 \r
34 ifeq ($(ROLE),master)\r
35 CFLAGS+=-D"MASTER=1"\r
36 else\r
37 CFLAGS+=-D"MASTER=0"\r
38 endif\r
39 endif\r
40 \r
41 ifeq ($(BENCHMARK),1)\r
42 CFLAGS+=-D"OPENAMP_BENCHMARK_ENABLE"\r
43 endif\r
44 \r
45 ifeq ($(LINUXREMOTE),1)\r
46 CFLAGS+=-D"OPENAMP_REMOTE_LINUX_ENABLE"\r
47 endif\r
48 \r
49 CFLAGS += $(GENERAL_INCLUDES)\r
50 \r
51 #The example make file for csgnu and zynq platform would look like below\r
52 \r
53 #TOOLSET          := csgnu\r
54 #CROSS            := arm-none-eabi-\r
55 #CFLAGS           := -Wall -ffunction-sections -fdata-sections -O0 -g3\r
56 #CXXFLAGS         := -Wall -fno-enforce-eh-specs\r
57 #ASFLAGS          := -gdwarf2 -meabi=4 -mcpu=cortex-a9 -mfpu=neon\r
58 #ARFLAGS          := \r
59 #ARCH_CFLAGS      := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
60 #ARCH_CXXFLAGS    := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
61 #ARCH_ASFLAGS     := -gdwarf-2 -mthumb-interwork -mcpu=cortex-a9\r
62 #ARCH_ARFLAGS     := \r
63 #CC               = $(CROSS)gcc\r
64 #CXX              = $(CROSS)g++\r
65 #AS               = $(CROSS)as\r
66 #AR               = $(CROSS)ar\r
67 #INCLUDE          := \r
68 #RM               := rm -f\r