aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Projects/Linux/Makefile.common
blob: 1335b87492b1624c003e41f1a807d77c16083855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#############################################################################
#
# Filename    : Makefile.common
# Content     : Common values for all makefiles in the Oculus SDK 
#
#  You must define OVR_ROOT before including this file
#
#############################################################################

CXX           = g++
CXXFLAGS 	  = -fPIC -pipe $(DEFINES)
MD            = mkdir
DELETEFILE    = rm -f
LINK_ARCHIVE  = ar rvs
LINK_LIBRARY  = 
LINK_EXE      = g++
SYSARCH       = $(shell uname -m)

####### Detect debug or release

ifeq ($(DEBUG), 1)
	CXXFLAGS      += -DDEBUG -g
	RELEASETYPE   = Debug
else
	CXXFLAGS      += -O2 
	RELEASETYPE   = Release
endif

CUSTOM_PATH   = $(RELEASETYPE)/$(SYSARCH)

####### Paths
LIBOVRPATH    = $(OVR_ROOT)/LibOVR
3RDPARTYPATH  = $(OVR_ROOT)/3rdParty
LIBOVRINCPATH = -I$(LIBOVRPATH)/Include -I$(LIBOVRPATH)/Src
LIBOVRLIBPATH = $(LIBOVRPATH)/Lib/Linux/$(CUSTOM_PATH)
LIBOVRARCHIVE = $(LIBOVRLIBPATH)/libovr.a