# This is for BePC - anyone want to add a BeMac configuration?

ifeq ($shell uname -m), BeMac)
CXX = c++
ifeq ($(debug), true)
OPTIMIZE = -g
else
OPTIMIZE = -O2
endif
else
ifeq ($(debug), true)
OPTIMIZE = -g
else
OPTIMIZE = -O2 -funroll-loops -fomit-frame-pointer
endif
endif # BeMac

# The version of ranlib to use
RANLIB = ranlib

# Objects for building the BWindow library
BWINDOW_OBJS = \
    $(patsubst %.c,obj/%.o,$(notdir $(wildcard src/beos/*.c))) \
    $(patsubst %.cc,obj/%.o,$(notdir $(wildcard src/beos/*.cc))) \
    $(patsubst %.c,obj/bwindow/%.o,$(notdir $(wildcard src/beos/bwindow/*.c))) \
    $(patsubst %.cc,obj/bwindow/%.o,$(notdir $(wildcard src/beos/bwindow/*.cc)))

# MWCC doesn't search for files that well.
ARCH_VPATH = src/beos src/beos/bwindow

# When building a static library, use X11 files (for now)
STATIC_ARCH_OBJS = $(BWINDOW_OBJS)
