RPA Toolkit
build changes for macos. jrs is still broken - objcopy doesn't work
[rpatk.git] / rvm / build / darwin / i386 / Makefile
1 SRCDIR = ../../../..
2 ARCHDIR = $(shell basename $(shell pwd))
3 OUTDIR = out
4 OS = $(shell uname | tr "[:upper:]" "[:lower:]")
5 INCLUDE = -I$(SRCDIR)/arch/$(OS)/$(ARCHDIR)
6 MACH = -m32
7
8 CC = gcc
9 AR = ar
10 LD = ld
11
12 CFLAGS += $(MACH)
13 ifeq ($(BLDCFG), release)
14 CFLAGS += -fPIC -O3
15 else
16 ifeq ($(BLDCFG), profile)
17 CFLAGS += -fPIC -O0 -pg -Wall 
18 else
19 CFLAGS += -fPIC -O0 -g -Wall 
20 endif
21 endif
22
23 ifeq ($(CCBLD), yes)
24 CFLAGS += -fprofile-arcs -ftest-coverage
25 endif
26
27
28 CFLAGS += $(INCLUDE)
29 LDFLAGS := $(MACH)
30
31 include $(SRCDIR)/build/$(OS)/include.mk
32 include ../rvm.mk