diff options
Diffstat (limited to 'LibOVR/Projects/Linux/Makefile.common')
-rw-r--r-- | LibOVR/Projects/Linux/Makefile.common | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/LibOVR/Projects/Linux/Makefile.common b/LibOVR/Projects/Linux/Makefile.common new file mode 100644 index 0000000..1335b87 --- /dev/null +++ b/LibOVR/Projects/Linux/Makefile.common @@ -0,0 +1,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 + |