CPPFLAGS_COMMON += -D_DEBUG
LDFLAGS_COMMON +=
else
+
ifeq ($(BUILD),profile)
ifeq ($(findstring $(CFLAGS),-g),)
CFLAGS_COMMON += -g
CFLAGS_COMMON += -pg
CPPFLAGS_COMMON +=
LDFLAGS_COMMON += -pg
-
else
+
ifeq ($(BUILD),release)
ifeq ($(findstring $(CFLAGS),-O),)
CFLAGS_COMMON += -O3
endif
CPPFLAGS_COMMON +=
LDFLAGS_COMMON += -s
-
else
+
$(error Unsupported build type: $(BUILD))
endif
endif
A = a
DLL = so
MWINDOWS =
-else ifeq ($(OS),Win32)
+else
+
+ifeq ($(OS),Win32)
CPPFLAGS_COMMON += -DWIN32 -D_WIN32 -D_inline=inline
CFLAGS_COMMON += -mms-bitfields
LDFLAGS_DLL = --dll -Wl,--add-stdcall-alias
LIBS_GL = -lopengl32
# workaround: no -ldl on Win32
LIBS_DL =
-else ifeq ($(OS),Darwin)
+else
+
+ifeq ($(OS),Darwin)
CFLAGS_COMMON += -force-cpusubtype_ALL -fPIC
CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
CPPFLAGS_COMMON += -I/sw/include -I/usr/X11R6/include
EXE = ppc
$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch)
else
+
$(error Unsupported build OS: $(OS))
endif
+endif
+endif
# VERSION!
RADIANT_VERSION = 1.5.0