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