RPA Toolkit
d9d48bfae7e5a268b31097519435b3ee36d87b3f
[rpatk.git] / rjs / 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 ELFARCH = elf32-i386
7 BINARCH = i386
8
9 CC = gcc
10 AR = ar
11 LD = ld
12 OC = objcopy
13
14 ifeq ($(BLDCFG), release)
15 CFLAGS := -fPIC -O3
16 else
17 CFLAGS := -fPIC -O0 -g -Wall 
18 endif
19
20 ifeq ($(CCBLD), yes)
21 CFLAGS += -fprofile-arcs -ftest-coverage
22 endif
23
24 CFLAGS += $(MACH) $(INCLUDE)
25 LDFLAGS := $(MACH)
26
27
28 include ../rjs.mk