Created
March 9, 2013 05:01
-
-
Save bakercp/5122611 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# CONFIGURE CORE PLATFORM MAKEFILE | |
# This file is where we make platform and architecture specific | |
# configurations. This file can be specified for a generic architecture or can | |
# be defined as variants. For instance, normally this file will be located in | |
# a platform specific subpath such as | |
# | |
# $(OF_ROOT)/libs/openFrameworksComplied/linux64 | |
# | |
# This file will then be a generic platform file like: | |
# | |
# configure.linux64.default.make | |
# | |
# Or it can specify a specific platform variant like: | |
# | |
# configure.linuxarmv6l.raspberrypi.make | |
# | |
################################################################################ | |
################################################################################ | |
# include common rules | |
# | |
# all linux systems have several rules in common so most of them are included | |
# from the following file | |
# | |
################################################################################ | |
include $(OF_SHARED_MAKEFILES_PATH)/config.linux.common.mk | |
################################################################################ | |
# PLATFORM CFLAGS | |
# This is a list of fully qualified CFLAGS required when compiling for this | |
# platform. These flags will always be added when compiling a project or the | |
# core library. These flags are presented to the compiler AFTER the | |
# PLATFORM_OPTIMIZATION_CFLAGS below. | |
# | |
# Note: Leave a leading space when adding list items with the += operator | |
################################################################################ | |
PLATFORM_CFLAGS += -march=armv7 | |
PLATFORM_CFLAGS += -mtune=cortex-a8 | |
#PLATFORM_CFLAGS += -mfpu=neon | |
PLATFORM_CFLAGS += -mfloat-abi=hard | |
PLATFORM_CFLAGS += -fPIC | |
PLATFORM_CFLAGS += -ftree-vectorize | |
PLATFORM_CFLAGS += -Wno-psabi | |
PLATFORM_CFLAGS += -pipe | |
################################################################################ | |
# PLATFORM LIBRARIES | |
# These are library names/paths that are platform specific and are specified | |
# using names or paths. The library flag (i.e. -l) is prefixed automatically. | |
# | |
# PLATFORM_LIBRARIES are libraries that can be found in the library search | |
# paths. | |
# PLATFORM_STATIC_LIBRARIES is a list of required static libraries. | |
# PLATFORM_SHARED_LIBRARIES is a list of required shared libraries. | |
# PLATFORM_PKG_CONFIG_LIBRARIES is a list of required libraries that are | |
# under system control and are easily accesible via the package | |
# configuration utility (i.e. pkg-config) | |
# | |
# See the helpfile for the -l flag here for more information: | |
# http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html | |
# | |
# Note: Leave a leading space when adding list items with the += operator | |
################################################################################ | |
# for some reason, pkg-config is not working for gles, as there is no | |
# glesv1_cm.pc file. So after adding the GLES header files from a Raspberry Pi | |
# the following seems to work. | |
PLATFORM_LIBRARIES += GLESv1_CM | |
#PLATFORM_PKG_CONFIG_LIBRARIES += glesv1_cm | |
PLATFORM_PKG_CONFIG_LIBRARIES += glesv2 | |
PLATFORM_PKG_CONFIG_LIBRARIES += egl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment