RPA Toolkit
ace6ca26c950301bfdcbe33c085184ec2c8aae5c
[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
7 CC = gcc
8 AR = ar
9 LD = ld
10
11 ifeq ($(BLDCFG), release)
12 CFLAGS := -fPIC -O3
13 else
14 ifeq ($(BLDCFG), profile)
15 CFLAGS := -fPIC -O0 -pg -Wall 
16 else
17 CFLAGS := -fPIC -O0 -g -Wall 
18 endif
19 endif
20
21 ifeq ($(CCBLD), yes)
22 CFLAGS += -fprofile-arcs -ftest-coverage
23 endif
24
25
26 CFLAGS += $(MACH) $(INCLUDE)
27 LDFLAGS := $(MACH)
28
29 include $(SRCDIR)/build/$(OS)/include.mk
30 include ../rvm.mk