RPA Toolkit
Build system fixes.
[rpatk.git] / rpa / build / linux / 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 CFLAGS := -fPIC -O0 -g -Wall 
15 endif
16
17 ifeq ($(CCBLD), yes)
18 CFLAGS += -fprofile-arcs -ftest-coverage
19 endif
20
21 CFLAGS += $(MACH) $(INCLUDE)
22 LDFLAGS := $(MACH)
23
24 include ../../../../build/$(OS)/include.mk
25 include ../rpa.mk