RPA Toolkit
Added support for ARM architecture.
[rpatk.git] / rjs / build / unix / arm / Makefile
1 ROOT_DIR = ../../../..
2 ARCHDIR = $(shell basename $(shell pwd))
3 OUTDIR = out
4 OS = $(shell uname | tr "[:upper:]" "[:lower:]")
5 INCLUDE = -I$(ROOT_DIR)/arch/unix/$(ARCHDIR)
6 ELFARCH = elf32-littlearm
7 BINARCH = arm
8 OCFLAGS_TXT = --input binary --output $(ELFARCH) --binary-architecture $(BINARCH)
9
10 include $(ROOT_DIR)/build/unix/config.mk
11
12 ifeq ($(BLDCFG), release)
13 CFLAGS := $(MACH) -fPIC -O2
14 else
15 CFLAGS := $(MACH) -fPIC -O0 -g -Wall 
16 endif
17
18 ifeq ($(CCBLD), yes)
19 CFLAGS += -fprofile-arcs -ftest-coverage
20 endif
21
22 CFLAGS += $(INCLUDE)
23 LDFLAGS := $(MACH)
24
25
26 include ../rjs.mk