EXTRA_DIST += src/modules/shot/module.desktop.in \
src/modules/shot/e-module-shot.edj
if USE_MODULE_SHOT
shotdir = $(MDIR)/shot
shot_DATA = src/modules/shot/e-module-shot.edj \
	    src/modules/shot/module.desktop

shotpkgdir = $(MDIR)/shot/$(MODULE_ARCH)
shotpkg_LTLIBRARIES = src/modules/shot/module.la

src_modules_shot_module_la_LIBADD = $(MOD_LIBS)
src_modules_shot_module_la_CPPFLAGS = $(MOD_CPPFLAGS)
src_modules_shot_module_la_LDFLAGS = $(MOD_LDFLAGS)
src_modules_shot_module_la_SOURCES = src/modules/shot/e_mod_main.c

PHONIES += shot install-shot
shot: $(shotpkg_LTLIBRARIES) $(shot_DATA)
install-shot: install-shotDATA install-shotpkgLTLIBRARIES
endif

Update shot makefile to include client screenshot protocol files

EXTRA_DIST += src/modules/shot/module.desktop.in \
src/modules/shot/e-module-shot.edj \
src/modules/shot/screenshooter-client-protocol.h \
src/modules/shot/screenshooter-client-protocol.c

if USE_MODULE_SHOT
shotdir = $(MDIR)/shot
shot_DATA = src/modules/shot/e-module-shot.edj \
	    src/modules/shot/module.desktop

shotpkgdir = $(MDIR)/shot/$(MODULE_ARCH)
shotpkg_LTLIBRARIES = src/modules/shot/module.la

src_modules_shot_module_la_LIBADD = $(MOD_LIBS) @WAYLAND_LIBS@
src_modules_shot_module_la_CPPFLAGS = \
  $(MOD_CPPFLAGS) @WAYLAND_CFLAGS@ -DNEED_WL
src_modules_shot_module_la_LDFLAGS = $(MOD_LDFLAGS)
src_modules_shot_module_la_SOURCES = \
  src/modules/shot/e_mod_main.c \
  src/modules/shot/screenshooter-client-protocol.c \
  src/modules/shot/screenshooter-client-protocol.h

PHONIES += shot install-shot
shot: $(shotpkg_LTLIBRARIES) $(shot_DATA)
install-shot: install-shotDATA install-shotpkgLTLIBRARIES
endif


SVG = "inkscape"
SVGFLAGS = -z

SVGS = $(wildcard images/*.svg)
ICOS = images/app.ico
SVGPNGS = $(SVGS:.svg=.png)
SVGPNGS_48 = $(SVGS:.svg=_48.png)

SHARE += $(SVGPNGS)
FILES += $(SVGPNGS)
CLEAN += $(SVGPNGS)

$(SVGPNGS): %.png: %.svg
	$(SVG) $(SVGFLAGS) -e $@ $<

$(SVGPNGS_48): %_48.png: %.svg
	$(SVG) $(SVGFLAGS) -w 48 -h 48 -e $@ $<

$(ICOS): %.ico: %.png
	icotool -c -o $@ $<

Add SVG-to-PNG images to android files.

SVG = "inkscape"
SVGFLAGS = -z

SVGS = $(wildcard images/*.svg)
ICOS = images/app.ico
SVGPNGS = $(SVGS:.svg=.png)
SVGPNGS_48 = $(SVGS:.svg=_48.png)

SHARE += $(SVGPNGS)
FILES += $(SVGPNGS)
DROIDFILES += $(SVGPNGS)
CLEAN += $(SVGPNGS)

$(SVGPNGS): %.png: %.svg
	$(SVG) $(SVGFLAGS) -e $@ $<

$(SVGPNGS_48): %_48.png: %.svg
	$(SVG) $(SVGFLAGS) -w 48 -h 48 -e $@ $<

$(ICOS): %.ico: %.png
	icotool -c -o $@ $<


# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq_system.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2018,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG

Add L1 procedures for p9a and makefiles

# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq_system.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2018,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG

# Include the macros and things for MSS procedures
-include 00p9a_common.mk

PROCEDURE=p9a_mss_freq_system
$(eval $(call ADD_MEMORY_INCDIRS,$(PROCEDURE)))
$(call BUILD_PROCEDURE)


PREFIX := /usr/local
HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install
BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle
BREW=$(PREFIX)/bin/brew
XCODE=/Applications/Xcode.app

all: packages

$(XCODE):
	@xcode-select --install

$(BREW): $(XCODE)
	@echo Installing Homebrew
	@ruby -e "`curl -fsSL $(HOMEBREW_INSTALLER)`"
	@brew doctor

$(BREW_BUNDLE): $(BREW)
	@brew tap Homebrew/bundle

packages: $(BREW_BUNDLE)
	@HOMEBREW_CASK_OPTS="--appdir=~/bin/apps" \
		brew bundle --file=macos/Brewfile

Add services target to macos init

PREFIX := /usr/local
HOMEBREW_INSTALLER=https://raw.githubusercontent.com/Homebrew/install/master/install
BREW_BUNDLE=$(PREFIX)/Homebrew/Library/Taps/homebrew/homebrew-bundle
BREW=$(PREFIX)/bin/brew
XCODE=/Applications/Xcode.app

all: packages

$(XCODE):
	@xcode-select --install

$(BREW): $(XCODE)
	@echo Installing Homebrew
	@ruby -e "`curl -fsSL $(HOMEBREW_INSTALLER)`"
	@brew doctor

$(BREW_BUNDLE): $(BREW)
	@brew tap Homebrew/bundle

packages: $(BREW_BUNDLE)
	@HOMEBREW_CASK_OPTS="--appdir=~/bin/apps" \
		brew bundle --file=macos/Brewfile

services:
	@brew services start redshift


RKTVER := v1.18.0
ACBUILDVER := v0.2.2

RKT := $(shell command -v rkt;)
ACBUILD := $(shell command -v acbuild;)

Linux_info:
ifdef RKT
	$(info Found rkt at $(RKT))
endif

etc:
	@echo "==> Copying config files to /etc"
	sudo cp -Rv $(CURDIR)/../etc/* /etc

install_rkt:
ifndef RKT
	@echo "==> Installing rkt $(RKTVER)"
	sudo $(CURDIR)/install_rkt.sh $(RKTVER)
endif
ifndef ACBUILD
	@echo "==> Installing acbuild $(ACBUILDVER)"
	$(DOWNLOADER) $(DL_OPTS) "https://github.com/appc/acbuild/releases/download/$(ACBUILDVER)/acbuild.tar.gz" | tar xzf - -C /usr/local/bin
endif

.PHONY Linux_info etc install_rkt

Add colon to .PHONY target

RKTVER := v1.18.0
ACBUILDVER := v0.2.2

RKT := $(shell command -v rkt;)
ACBUILD := $(shell command -v acbuild;)

Linux_info:
ifdef RKT
	$(info Found rkt at $(RKT))
endif

etc:
	@echo "==> Copying config files to /etc"
	sudo cp -Rv $(CURDIR)/../etc/* /etc

install_rkt:
ifndef RKT
	@echo "==> Installing rkt $(RKTVER)"
	sudo $(CURDIR)/install_rkt.sh $(RKTVER)
endif
ifndef ACBUILD
	@echo "==> Installing acbuild $(ACBUILDVER)"
	$(DOWNLOADER) $(DL_OPTS) "https://github.com/appc/acbuild/releases/download/$(ACBUILDVER)/acbuild.tar.gz" | tar xzf - -C /usr/local/bin
endif

.PHONY: Linux_info etc install_rkt


#
# Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

# TSP source files specific to FVP platform
BL32_SOURCES		+=	plat/arm/board/fvp/fvp_topology.c		\
				plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c	\
				plat/arm/board/fvp/tsp/fvp_tsp_setup.c		\
				${FVP_GIC_SOURCES}

include plat/arm/common/tsp/arm_tsp.mk

Support multi-threading CPUs on FVP

#
# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

# TSP source files specific to FVP platform
BL32_SOURCES		+=	plat/arm/board/fvp/aarch64/fvp_helpers.S	\
				plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c	\
				plat/arm/board/fvp/fvp_topology.c		\
				plat/arm/board/fvp/tsp/fvp_tsp_setup.c		\
				${FVP_GIC_SOURCES}

include plat/arm/common/tsp/arm_tsp.mk


# License and copyright goes here

# This file contains the Mac OS X specific macros
#
# This is included by platform.mk

CFLAGS += -DMACOSX
#CFLAGS += -arch i386 -arch x86_64 -mmacosx-version-min=10.5

ifdef DEBUG
CFLAGS += -g
else
CFLAGS += -O3
endif

# ? -fno-common

#LDFLAGS += -arch x86_64
SHLIBEXT := .dylib
SHLIB_LDFLAGS := -dynamiclib
#SHLIB_LDFLAGS += -arch x86_64
# -m64

QT_INCLUDE := -I/Library/Frameworks/QtGui.framework/Headers
QT_INCLUDE += -I/Library/Frameworks/QtOpenGL.framework/Headers
#QT_INCLUDE := -FQtGui.framework
#QT_INCLUDE += -FQtOpenGL.framework
LINK_QT := /Library/Frameworks/QtGui.framework/QtGui
LINK_QT += /Library/Frameworks/QtOpenGL.framework/QtOpenGL
LINK_QT += /Library/Frameworks/QtCore.framework/QtCore

OPENGL_INCLUDE :=
LINK_OPENGL := -L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -lGL

Use -fPIC for Mac compilation

# License and copyright goes here

# This file contains the Mac OS X specific macros
#
# This is included by platform.mk

CFLAGS += -DMACOSX -fPIC
#CFLAGS += -arch i386 -arch x86_64 -mmacosx-version-min=10.5

ifdef DEBUG
CFLAGS += -g
else
CFLAGS += -O3
endif

# ? -fno-common

#LDFLAGS += -arch x86_64
SHLIBEXT := .dylib
SHLIB_LDFLAGS := -dynamiclib
#SHLIB_LDFLAGS += -arch x86_64
# -m64

QT_INCLUDE := -I/Library/Frameworks/QtGui.framework/Headers
QT_INCLUDE += -I/Library/Frameworks/QtOpenGL.framework/Headers
#QT_INCLUDE := -FQtGui.framework
#QT_INCLUDE += -FQtOpenGL.framework
LINK_QT := /Library/Frameworks/QtGui.framework/QtGui
LINK_QT += /Library/Frameworks/QtOpenGL.framework/QtOpenGL
LINK_QT += /Library/Frameworks/QtCore.framework/QtCore

OPENGL_INCLUDE :=
LINK_OPENGL := -L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -lGL


<%inherit file="master.mak"/>

Hello, world!

This is a wonderful experiment using Twitter Boostrap, Flask, and Mako to make awesome.

Learn more »

One

one

View details »

Two

two

View details »

Three

three

View details »

Remove giant ugly buttons, make welcome message obvious

<%inherit file="master.mak"/>

HFOSS

The RIT Humanitarian Free/Open Source Software Development Course


%.o: %.cc
	$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP

%.o: %.cpp
	$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP

%.o: %.c
	$(trace-cc) $(CC) -o $@ -c $< $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP

Add a variable GLOBAL_CXXFLAGS_PCH for use by precompiled headers

%.o: %.cc
	$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(GLOBAL_CXXFLAGS_PCH) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP

%.o: %.cpp
	$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS) $(GLOBAL_CXXFLAGS_PCH) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP

%.o: %.c
	$(trace-cc) $(CC) -o $@ -c $< $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP


<%!
from webhelpers.rails.urls import js_obfuscate
%>
${js_obfuscate('<input type="hidden" name="notabot" value="%s" />' % value) | n}

Fix how attrs comes in

<%namespace name="tw" module="tw.core.mako_util"/>\
<%!
from webhelpers.rails.urls import js_obfuscate
%>
${js_obfuscate('<input type="hidden" name="notabot" %s' % tw.attrs(attrs=attrs)) | n}


# Copyright (C) 2014 Gravity Free Distribution
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_PACKAGE_NAME := GSMLocation
LOCAL_CERTIFICATE := platform
LOCAL_SDK_VERSION := current
LOCAL_MODULE_TAGS := optional
LOCAL_PRIVILEGED_MODULE := true
LOCAL_REQUIRED_MODULES := UnifiedNlpApi NetworkLocation
LOCAL_STATIC_JAVA_LIBRARIES := UnifiedNlpApi
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)

Make the GSMLocation provider non-privileged

# Copyright (C) 2014 Gravity Free Distribution
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
LOCAL_PACKAGE_NAME := GSMLocation
LOCAL_CERTIFICATE := platform
LOCAL_SDK_VERSION := current
LOCAL_MODULE_TAGS := optional
LOCAL_REQUIRED_MODULES := UnifiedNlpApi NetworkLocation
LOCAL_STATIC_JAVA_LIBRARIES := UnifiedNlpApi
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)


# Quick and dirty scripts
# Copyright 2008 Roy Marples <roy@marples.name>

include ${MK}/sys.mk

SCRIPTSDIR?=	${BINDIR}
SCRIPTSMODE?=	${BINMODE}

_scriptsinstall: ${SCRIPTS}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${SCRIPTSMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}

Install hooks in the os specific dir.

# Quick and dirty scripts
# Copyright 2008 Roy Marples <roy@marples.name>

include ${MK}/os.mk
include ${MK}/sys.mk

SCRIPTSDIR?=	${BINDIR}
SCRIPTSMODE?=	${BINMODE}

_scriptsinstall: ${SCRIPTS}
	${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
	${INSTALL} -m ${SCRIPTSMODE} ${SCRIPTS} ${DESTDIR}${SCRIPTSDIR}


# Common definitions, shared by all makefiles

# all will be the default target, regardless of what is defined in the other
# makefiles.
default: all

# Stop on first error
SHELL := $(SHELL) -e

# Display message in a consistent way
MSG = echo "===> "

# Launch command in the working dir of a software with the right environment
RUN = cd $(WORK_DIR)/$(PKG_DIR) && env $(ENV)

# Pip command
PIP ?= pip #define PIP in your makefile if you need pip3
PIP_WHEEL = $(PIP) wheel --no-use-wheel --no-deps --wheel-dir $(STAGING_DIR)/wheelhouse

# Available languages
LANGUAGES = chs cht csy dan enu fre ger hun ita jpn krn nld nor plk ptb ptg rus spn sve trk

# Available Arches
ARM5_ARCHES = 88f5281 88f6281
ARM7_ARCHES = armada370 armadaxp armada375 alpine comcerto2k
ARM_ARCHES = $(ARM5_ARCHES) $(ARM7_ARCHES)
PPC_ARCHES = powerpc ppc824x ppc853x ppc854x qoriq
x86_ARCHES = evansport
x64_ARCHES = avoton bromolow cedarview x86 x64

# Load local configuration
LOCAL_CONFIG_MK = ../../local.mk
ifneq ($(wildcard $(LOCAL_CONFIG_MK)),)
include $(LOCAL_CONFIG_MK)
endif

Remove comment, compile options need to be documented separately

# Common definitions, shared by all makefiles

# all will be the default target, regardless of what is defined in the other
# makefiles.
default: all

# Stop on first error
SHELL := $(SHELL) -e

# Display message in a consistent way
MSG = echo "===> "

# Launch command in the working dir of a software with the right environment
RUN = cd $(WORK_DIR)/$(PKG_DIR) && env $(ENV)

# Pip command
PIP ?= pip
PIP_WHEEL = $(PIP) wheel --no-use-wheel --no-deps --wheel-dir $(STAGING_DIR)/wheelhouse

# Available languages
LANGUAGES = chs cht csy dan enu fre ger hun ita jpn krn nld nor plk ptb ptg rus spn sve trk

# Available Arches
ARM5_ARCHES = 88f5281 88f6281
ARM7_ARCHES = armada370 armadaxp armada375 alpine comcerto2k
ARM_ARCHES = $(ARM5_ARCHES) $(ARM7_ARCHES)
PPC_ARCHES = powerpc ppc824x ppc853x ppc854x qoriq
x86_ARCHES = evansport
x64_ARCHES = avoton bromolow cedarview x86 x64

# Load local configuration
LOCAL_CONFIG_MK = ../../local.mk
ifneq ($(wildcard $(LOCAL_CONFIG_MK)),)
include $(LOCAL_CONFIG_MK)
endif


LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/HelloWorldScene.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes

# _COCOS_HEADER_ANDROID_BEGIN
# _COCOS_HEADER_ANDROID_END

LOCAL_STATIC_LIBRARIES := cocos2dx_static

# _COCOS_LIB_ANDROID_BEGIN
# _COCOS_LIB_ANDROID_END

include $(BUILD_SHARED_LIBRARY)

$(call import-module,.)

# _COCOS_LIB_IMPORT_ANDROID_BEGIN
# _COCOS_LIB_IMPORT_ANDROID_END

Add cpp files to be compiled by ndk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/AppDelegate.cpp \
                   ../../Classes/BackgroundLayer.cpp \
				   ../../Classes/Coin.cpp \
				   ../../Classes/ElemsPreloadManager.cpp \
				   ../../Classes/GameLayer.cpp \
				   ../../Classes/GameMainController.cpp \
				   ../../Classes/MainMenuLayer.cpp \
				   ../../Classes/MainScene.cpp \
				   ../../Classes/MapSceneController.cpp \
				   ../../Classes/MapSequences.cpp \
				   ../../Classes/MoveAbleElemManager.cpp \
				   ../../Classes/MoveableElems.cpp \
				   ../../Classes/NpcController.cpp \
				   ../../Classes/Obstacle.cpp \
				   ../../Classes/Player.cpp \
				   ../../Classes/PlayerController.cpp \
				   ../../Classes/RegitsteredEvents.cpp \
				   ../../Classes/RuningController.cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../

# _COCOS_HEADER_ANDROID_BEGIN
# _COCOS_HEADER_ANDROID_END

LOCAL_STATIC_LIBRARIES := cocos2dx_static

# _COCOS_LIB_ANDROID_BEGIN
# _COCOS_LIB_ANDROID_END

include $(BUILD_SHARED_LIBRARY)

$(call import-module,.)

# _COCOS_LIB_IMPORT_ANDROID_BEGIN
# _COCOS_LIB_IMPORT_ANDROID_END


########################################################################
# conf/googletest.mk                                                   #
# ====================                                                 #
#                                                                      #
# Dependencies and compilation requirements for gmock and gtest.       #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gmock` and `gtest` are part of the Google C++    #
#                    test suite, and can be used to create unit and    #
#                    integration tests. To create the test binary,     #
#                    just set `TESTBIN` with the name of the file      #
#                    that contains the main function for the tests.    #
#                    For further info about the framework, access:     #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_TEST_MK
override GOOGLE_TEST_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gtest => https://github.com/google/googletest.git \
             mkdir -p build && cd build && cmake .. && make

# Paths
# =======
CXXLIBS         += -isystem external/gtest/googlemock/include/ \
                   -isystem external/gtest/googletest/include/
LDLIBS          += -L external/gtest/build/googlemock/ \
                   -L external/gtest/build/googlemock/gtest/

# Flags
# =======
LDTEST          += -lgmock -lgtest -pthread

endif # ifndef GOOGLE_TEST_MK

Change gtest dynamic library dir

########################################################################
# conf/googletest.mk                                                   #
# ====================                                                 #
#                                                                      #
# Dependencies and compilation requirements for gmock and gtest.       #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gmock` and `gtest` are part of the Google C++    #
#                    test suite, and can be used to create unit and    #
#                    integration tests. To create the test binary,     #
#                    just set `TESTBIN` with the name of the file      #
#                    that contains the main function for the tests.    #
#                    For further info about the framework, access:     #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_TEST_MK
override GOOGLE_TEST_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gtest => https://github.com/google/googletest.git \
             mkdir -p build && cd build && cmake .. && make

# Paths
# =======
CXXLIBS         += -isystem external/gtest/googlemock/include/ \
                   -isystem external/gtest/googletest/include/
LDLIBS          += -L external/gtest/build/lib/ \

# Flags
# =======
LDTEST          += -lgmock -lgtest -pthread

endif # ifndef GOOGLE_TEST_MK


# defaults commands
CC=gcc
RM=rm -f
INSTALL=install
INSTALL_PROGRAM=install -s -m 555
INSTALL_DATA=$(INSTALL) -m 444
INSTALL_SCRIPT=$(INSTALL_PROGRAM)
XGETTEXT=xgettext
MSGFMT=msgfmt
MKDIR=mkdir
CP=cp

Use cc instead of gcc as default compiler.

# defaults commands
CC=cc
RM=rm -f
INSTALL=install
INSTALL_PROGRAM=install -s -m 555
INSTALL_DATA=$(INSTALL) -m 444
INSTALL_SCRIPT=$(INSTALL_PROGRAM)
XGETTEXT=xgettext
MSGFMT=msgfmt
MKDIR=mkdir
CP=cp


# src/backend/nls.mk
CATALOG_NAME     = postgres
AVAIL_LANGUAGES  = de es fr id it ja pl pt_BR ru zh_CN
GETTEXT_FILES    = + gettext-files
GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) \
    GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \
    write_stderr yyerror parser_yyerror report_invalid_record:2
GETTEXT_FLAGS    = $(BACKEND_COMMON_GETTEXT_FLAGS) \
    GUC_check_errmsg:1:c-format \
    GUC_check_errdetail:1:c-format \
    GUC_check_errhint:1:c-format \
    write_stderr:1:c-format \
    report_invalid_record:2:c-format

gettext-files: distprep
	find $(srcdir)/ $(srcdir)/../common/ $(srcdir)/../port/ -name '*.c' -print | LC_ALL=C sort >$@

my-clean:
	rm -f gettext-files

.PHONY: my-clean
clean: my-clean

Remove trailing slashes from directories in find command

# src/backend/nls.mk
CATALOG_NAME     = postgres
AVAIL_LANGUAGES  = de es fr id it ja pl pt_BR ru zh_CN
GETTEXT_FILES    = + gettext-files
GETTEXT_TRIGGERS = $(BACKEND_COMMON_GETTEXT_TRIGGERS) \
    GUC_check_errmsg GUC_check_errdetail GUC_check_errhint \
    write_stderr yyerror parser_yyerror report_invalid_record:2
GETTEXT_FLAGS    = $(BACKEND_COMMON_GETTEXT_FLAGS) \
    GUC_check_errmsg:1:c-format \
    GUC_check_errdetail:1:c-format \
    GUC_check_errhint:1:c-format \
    write_stderr:1:c-format \
    report_invalid_record:2:c-format

gettext-files: distprep
	find $(srcdir) $(srcdir)/../common $(srcdir)/../port -name '*.c' -print | LC_ALL=C sort >$@

my-clean:
	rm -f gettext-files

.PHONY: my-clean
clean: my-clean


#
# Common make variables.
#
ABS_PATH := $(realpath $(shell pwd)/$(BASE_PATH))
INCLUDE_PATH := $(ABS_PATH)/include
LIB_PATH := $(ABS_PATH)/lib

#
# Host-specific options
#
UNAME := $(shell uname -s)

AR := ar
ARFLAGS = rc
#CCPP := g++
CCPP := clang++-3.6
CPPFLAGS = \
    -fPIC \
    -std=c++14 \
    -fno-omit-frame-pointer \
    -g \
    -O2 \
    -Werror \
    -Wall \
    -Wtype-limits \
    -Wconversion \
    -I/usr/local/include \
    -I$(INCLUDE_PATH) \
    $(CPPFLAGS_EXTRA)
INSTALL := install
INSTALLFLAGS =
#LD := g++
LD := clang++-3.6
LDFLAGS = $(LDFLAGS_OS) $(LDFLAGS_EXTRA)
RM := rm

# CPPFLAGS += -fsanitize=address
# LDFLAGS += -fsanitize=address

#
# Create a list of object files from source files.
#
OBJS := $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRCS)))

Remove dependency on a specific clang version

#
# Common make variables.
#
ABS_PATH := $(realpath $(shell pwd)/$(BASE_PATH))
INCLUDE_PATH := $(ABS_PATH)/include
LIB_PATH := $(ABS_PATH)/lib

#
# Host-specific options
#
UNAME := $(shell uname -s)

AR := ar
ARFLAGS = rc
#CCPP := g++
CCPP := clang++
CPPFLAGS = \
    -fPIC \
    -std=c++14 \
    -fno-omit-frame-pointer \
    -g \
    -O2 \
    -Werror \
    -Wall \
    -Wtype-limits \
    -Wconversion \
    -I/usr/local/include \
    -I$(INCLUDE_PATH) \
    $(CPPFLAGS_EXTRA)
INSTALL := install
INSTALLFLAGS =
#LD := g++
LD := clang++
LDFLAGS = $(LDFLAGS_OS) $(LDFLAGS_EXTRA)
RM := rm

# CPPFLAGS += -fsanitize=address
# LDFLAGS += -fsanitize=address

#
# Create a list of object files from source files.
#
OBJS := $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRCS)))


utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = --flag in-ghc-tree
# XXX This is a temporary hack:
utils/haddock_HC_OPTS += -Wwarn
utils/haddock_dist_SHELL_WRAPPER = YES
utils/haddock_dist_PROG = haddock

$(INPLACE_BIN)/$(utils/haddock_dist_PROG): inplace/lib/html

inplace/lib/html:
	$(RM) -rf $@
	cp -a utils/haddock/html $@

INSTALL_LIBEXECS += utils/haddock/dist/build/$(utils/haddock_dist_PROG)

$(eval $(call build-prog,utils/haddock,dist,2))

utils/haddock_dist_MODULES += Paths_haddock

Fix (with a hack?) haddock in teh new build system

utils/haddock_USES_CABAL = YES
utils/haddock_PACKAGE = haddock
utils/haddock_CONFIGURE_OPTS = --flag in-ghc-tree
# XXX This is a temporary hack:
utils/haddock_HC_OPTS += -Wwarn
utils/haddock_dist_SHELL_WRAPPER = YES
utils/haddock_dist_PROG = haddock
# XXX Is this a hack? Should it be needed? Done another way?
utils/haddock_dist_DATADIR = lib

$(INPLACE_BIN)/$(utils/haddock_dist_PROG): inplace/lib/html

inplace/lib/html:
	$(RM) -rf $@
	cp -a utils/haddock/html $@

INSTALL_LIBEXECS += utils/haddock/dist/build/$(utils/haddock_dist_PROG)

$(eval $(call build-prog,utils/haddock,dist,2))

utils/haddock_dist_MODULES += Paths_haddock


# Build winxed snapshot.

$(WINXED_LANG): ext/winxed/compiler.pir $(PARROT)
	$(MKPATH) runtime/parrot/languages/winxed
	$(PARROT) -o $@ ext/winxed/compiler.pir

winxed.pbc: ext/winxed/driver.pir $(PARROT)
	$(PARROT) -o $@ ext/winxed/driver.pir

$(WINXED) : winxed.pbc $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc

$(INSTALLABLEWINXED) : winxed.pbc src/install_config$(O) $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc --install

Make executable depend on language

# Build winxed snapshot.

$(WINXED_LANG): ext/winxed/compiler.pir $(PARROT)
	$(MKPATH) runtime/parrot/languages/winxed
	$(PARROT) -o $@ ext/winxed/compiler.pir

winxed.pbc: ext/winxed/driver.pir $(PARROT)
	$(PARROT) -o $@ ext/winxed/driver.pir

$(WINXED) : winxed.pbc $(PBC_TO_EXE) $(WINXED_LANG)
	$(PBC_TO_EXE) winxed.pbc

$(INSTALLABLEWINXED) : winxed.pbc src/install_config$(O) $(PBC_TO_EXE)
	$(PBC_TO_EXE) winxed.pbc --install


CFLAGS += \
  -D__MSP430F5529__ \
  -DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \
	-DCFG_EXAMPLE_MSC_READONLY \
	-DCFG_TUD_ENDPOINT0_SIZE=8

#-mmcu=msp430f5529

# All source paths should be relative to the top level.
LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld
LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include

INC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include

# For TinyUSB port source
VENDOR = ti
CHIP_FAMILY = msp430x5xx

# export for libmsp430.so to same installation
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))

# flash target using TI MSP430-Flasher
# http://www.ti.com/tool/MSP430-FLASHER
# Please add its installation dir to PATH
flash: $(BUILD)/$(BOARD)-firmware.hex
	MSP430Flasher -w $< -z [VCC]

Allow user to choose mspdebug as alternate programmer.

CFLAGS += \
  -D__MSP430F5529__ \
  -DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \
	-DCFG_EXAMPLE_MSC_READONLY \
	-DCFG_TUD_ENDPOINT0_SIZE=8

#-mmcu=msp430f5529

# All source paths should be relative to the top level.
LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld
LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include

INC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include

# For TinyUSB port source
VENDOR = ti
CHIP_FAMILY = msp430x5xx

# Allow user to use mspdebug if set on make command line.
ifdef MSPDEBUG
# flash target using mspdebug.
flash: $(BUILD)/$(BOARD)-firmware.elf
	$(MSPDEBUG) tilib "prog $<" --allow-fw-update
else
# export for libmsp430.so to same installation
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))
# flash target using TI MSP430-Flasher
# http://www.ti.com/tool/MSP430-FLASHER
# Please add its installation dir to PATH
flash: $(BUILD)/$(BOARD)-firmware.hex
	MSP430Flasher -w $< -z [VCC]
endif


#
# Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
#

LIBUAVCAN_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

UAVCAN_DIR := $(LIBUAVCAN_DIR)../

#
# Library sources
#
LIBUAVCAN_SRC := $(shell find $(LIBUAVCAN_DIR)src -type f -name '*.cpp')

LIBUAVCAN_INC := $(LIBUAVCAN_DIR)include

#
# DSDL compiler executable
#
LIBUAVCAN_DSDLC := $(LIBUAVCAN_DIR)dsdl_compiler/libuavcan_dsdlc

#
# Standard DSDL definitions
#
UAVCAN_DSDL_DIR := $(UAVCAN_DIR)/dsdl/uavcan

Fix issue where the UAVCAN_DIR environment variable would lead to the wrong DSDL being built

#
# Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
#

LIBUAVCAN_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

UAVCAN := $(LIBUAVCAN_DIR)../

#
# Library sources
#
LIBUAVCAN_SRC := $(shell find $(LIBUAVCAN_DIR)src -type f -name '*.cpp')

LIBUAVCAN_INC := $(LIBUAVCAN_DIR)include

#
# DSDL compiler executable
#
LIBUAVCAN_DSDLC := $(LIBUAVCAN_DIR)dsdl_compiler/libuavcan_dsdlc

#
# Standard DSDL definitions
#
UAVCAN_DSDL_DIR := $(UAVCAN)/dsdl/uavcan


# Copyright (c) 2015, Loïc Hoguin <essen@ninenines.eu>
# This file is part of erlang.mk and subject to the terms of the ISC License.

.PHONY: rebar.config

# We strip out -Werror because we don't want to fail due to
# warnings when used as a dependency.

compat_prepare_erlc_opts = $(shell echo "$1" | sed 's/, */,/')

define compat_convert_erlc_opts
$(if $(filter-out -Werror,$1),\
	$(if $(findstring +,$1),\
		$(shell echo $1 | cut -b 2-)))
endef

define compat_erlc_opts_to_list
	[$(call comma_list,$(foreach o,$(call compat_prepare_erlc_opts,$1),$(call compat_convert_erlc_opts,$o)))]
endef

define compat_rebar_config
{deps, [$(call comma_list,$(foreach d,$(DEPS),\
	{$(call dep_name,$d),".*",{git,"$(call dep_repo,$d)","$(call dep_commit,$d)"}}))]}.
{erl_opts, $(call compat_erlc_opts_to_list,$(ERLC_OPTS))}.
endef

$(eval _compat_rebar_config = $$(compat_rebar_config))
$(eval export _compat_rebar_config)

rebar.config:
	$(gen_verbose) echo "$${_compat_rebar_config}" > rebar.config

Remove unnecessary whitespace from generated rebar.config


EXTERNAL_WARNINGS_NOT_ERRORS := TRUE

PRJ=..$/..$/..$/..$/..$/..

PRJNAME=libvisio
TARGET=visiolib
ENABLE_EXCEPTIONS=TRUE
LIBTARGET=NO

.INCLUDE :  settings.mk

.IF "$(GUI)"=="WNT"
CFLAGS+=-GR
.ENDIF
.IF "$(COM)"=="GCC"
CFLAGSCXX+=-frtti
.ENDIF

.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(LIBWPD_CFLAGS) -I..
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd
.ENDIF

.IF "$(SYSTEM_LIBWPG)" == "YES"
INCPRE+=$(LIBWPG_CFLAGS) -I..
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpg
.ENDIF

SLOFILES= \
	$(SLO)$/libvisio_utils.obj \
	$(SLO)$/VisioDocument.obj \
	$(SLO)$/VSD11Parser.obj \
	$(SLO)$/VSD6Parser.obj \
	$(SLO)$/VSDInternalStream.obj \
	$(SLO)$/VSDSVGGenerator.obj \
	$(SLO)$/VSDXParser.obj

LIB1ARCHIV=$(LB)$/libvisiolib.a
LIB1TARGET=$(SLB)$/$(TARGET).lib
LIB1OBJFILES= $(SLOFILES)

.INCLUDE :  target.mk

Fix cross-compilation inside LibreOffice build

EXTERNAL_WARNINGS_NOT_ERRORS := TRUE

PRJ=..$/..$/..$/..$/..$/..

PRJNAME=libvisio
TARGET=visiolib
ENABLE_EXCEPTIONS=TRUE
LIBTARGET=NO

.INCLUDE :  settings.mk

.IF "$(COM)"=="MSC"
CFLAGS+=-GR
.ENDIF
.IF "$(COM)"=="GCC"
CFLAGSCXX+=-frtti
.ENDIF

.IF "$(SYSTEM_LIBWPD)" == "YES"
INCPRE+=$(LIBWPD_CFLAGS) -I..
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd
.ENDIF

.IF "$(SYSTEM_LIBWPG)" == "YES"
INCPRE+=$(LIBWPG_CFLAGS) -I..
.ELSE
INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpg
.ENDIF

SLOFILES= \
	$(SLO)$/libvisio_utils.obj \
	$(SLO)$/VisioDocument.obj \
	$(SLO)$/VSD11Parser.obj \
	$(SLO)$/VSD6Parser.obj \
	$(SLO)$/VSDInternalStream.obj \
	$(SLO)$/VSDSVGGenerator.obj \
	$(SLO)$/VSDXParser.obj

LIB1ARCHIV=$(LB)$/libvisiolib.a
LIB1TARGET=$(SLB)$/$(TARGET).lib
LIB1OBJFILES= $(SLOFILES)

.INCLUDE :  target.mk


SVG = "inkscape"
SVGFLAGS = -z

SVGS = $(wildcard images/*.svg)
ICOS = images/app.ico
SVGPNGS = $(SVGS:.svg=.png)
SVGPNGS_48 = $(SVGS:.svg=_48.png)

SHARE += $(SVGPNGS)
FILES += $(SVGPNGS)
DROIDFILES += $(SVGPNGS)
CLEAN += $(SVGPNGS)

$(SVGPNGS): %.png: %.svg
	$(SVG) $(SVGFLAGS) -e $@ $<

$(SVGPNGS_48): %_48.png: %.svg
	$(SVG) $(SVGFLAGS) -w 48 -h 48 -e $@ $<

$(ICOS): %.ico: %.png
	icotool -c -o $@ $<

Add missing dependency of android on images/app_48.png.

SVG = "inkscape"
SVGFLAGS = -z

SVGS = $(wildcard images/*.svg)
ICOS = images/app.ico
SVGPNGS = $(SVGS:.svg=.png)
SVGPNGS_48 = $(SVGS:.svg=_48.png)

SHARE += $(SVGPNGS)
FILES += $(SVGPNGS)
DROIDFILES += $(SVGPNGS) images/app_48.png
CLEAN += $(SVGPNGS)

$(SVGPNGS): %.png: %.svg
	$(SVG) $(SVGFLAGS) -e $@ $<

$(SVGPNGS_48): %_48.png: %.svg
	$(SVG) $(SVGFLAGS) -w 48 -h 48 -e $@ $<

$(ICOS): %.ico: %.png
	icotool -c -o $@ $<


# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

utils/mkUserGuidePart_dist_MODULES = Main
utils/mkUserGuidePart_dist_PROG    = mkUserGuidePart
utils/mkUserGuidePart_HC_OPTS      = -package ghc

utils/mkUserGuidePart/dist/build/Main.o: $(compiler_stage2_v_LIB)

$(eval $(call build-prog,utils/mkUserGuidePart,dist,1))

Fix mkUserGuidePart deps We need to directly depend on the stage1 libs. The stage1 compiler lib doesn't depend on them.

# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

utils/mkUserGuidePart_dist_MODULES = Main
utils/mkUserGuidePart_dist_PROG    = mkUserGuidePart
utils/mkUserGuidePart_HC_OPTS      = -package ghc

utils/mkUserGuidePart/dist/build/Main.o: $(ALL_STAGE1_LIBS) $(compiler_stage2_v_LIB)

$(eval $(call build-prog,utils/mkUserGuidePart,dist,1))


# Container section of standard makefile
##### PLEASE DO NOT CHANGE THIS FILE #####
##### If one of these sections does not meet your needs, consider copying its
##### contents into ../Makefile and commenting out the include and adding a
##### comment about what you did and why.

DOTFILE_IMAGE = $(subst /,_,$(IMAGE))-$(VERSION)

container: linux .container-$(DOTFILE_IMAGE) container-name

.container-$(DOTFILE_IMAGE): linux Dockerfile.in
	@sed -e 's|UPSTREAM_REPO|$(UPSTREAM_REPO)|g' Dockerfile.in > .dockerfile
	docker build -t $(DOCKER_REPO):$(VERSION) $(DOCKER_ARGS) -f .dockerfile .
	@docker images -q $(DOCKER_REPO):$(VERSION) > $@
	@echo $(DOCKER_REPO):$(VERSION) >.docker_image

container-name:
	@echo "container: $(DOCKER_REPO):$(VERSION)"

Add more info to .docker_image so it can be added to container

# Container section of standard makefile
##### PLEASE DO NOT CHANGE THIS FILE #####
##### If one of these sections does not meet your needs, consider copying its
##### contents into ../Makefile and commenting out the include and adding a
##### comment about what you did and why.

DOTFILE_IMAGE = $(subst /,_,$(IMAGE))-$(VERSION)

container: linux .container-$(DOTFILE_IMAGE) container-name

.container-$(DOTFILE_IMAGE): linux Dockerfile.in
	@sed -e 's|UPSTREAM_REPO|$(UPSTREAM_REPO)|g' Dockerfile.in > .dockerfile
	@echo "$(DOCKER_REPO):$(VERSION) commit=$(shell git describe --tags --always)"  >.docker_image
	docker build -t $(DOCKER_REPO):$(VERSION) $(DOCKER_ARGS) -f .dockerfile .
	@docker images -q $(DOCKER_REPO):$(VERSION) > $@

container-name:
	@echo "container: $(DOCKER_REPO):$(VERSION)"


DPHDIR = $(TOPDIR)/..

HC = $(DPHDIR)/../../inplace/bin/ghc-stage2
HCPKG = $(DPHDIR)/../../inplace/bin/ghc-pkg

BENCH_DIR = $(TOPDIR)/lib
BENCH_FLAGS = -package dph-bench -package-conf $(BENCH_DIR)/dph-bench.conf
BENCH_DEP = $(BENCH_DIR)/dist/inplace-pkg-config

DPH_FLAGS += -Odph -threaded -rtsopts -fsimplifier-phases=4 -fstrictness-before=3

WAYS = seq par
WAY_FLAGS = -fdph-$(WAY) -package dph-$(WAY) -odir $(WAY) -hidir $(WAY)

CFLAGS += -O6

Use -msse2 for building benchmarks

DPHDIR = $(TOPDIR)/..

HC = $(DPHDIR)/../../inplace/bin/ghc-stage2
HCPKG = $(DPHDIR)/../../inplace/bin/ghc-pkg

BENCH_DIR = $(TOPDIR)/lib
BENCH_FLAGS = -package dph-bench -package-conf $(BENCH_DIR)/dph-bench.conf
BENCH_DEP = $(BENCH_DIR)/dist/inplace-pkg-config

DPH_FLAGS += -Odph -threaded -rtsopts -fsimplifier-phases=4 -fstrictness-before=3 -msse2

WAYS = seq par
WAY_FLAGS = -fdph-$(WAY) -package dph-$(WAY) -odir $(WAY) -hidir $(WAY)

CFLAGS += -O6


MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52832
SOFTDEV_VERSION = 2.0.1

LD_FILE = boards/feather52/custom_nrf52832_dfu_app.ld

NRF_DEFINES += -DNRF52832_XXAA

.PHONY: dfu-gen dfu-flash

dfu-gen:
	nrfutil dfu genpkg --dev-type 0x0052 --application $(BUILD)/$(OUTPUT_FILENAME).hex $(BUILD)/dfu-package.zip

dfu-flash:
	sudo nrfutil dfu serial --package $(BUILD)/dfu-package.zip -p /dev/ttyACM3

Add SERIAL makeflag if dfu-flash target is used.

MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52832
SOFTDEV_VERSION = 2.0.1

LD_FILE = boards/feather52/custom_nrf52832_dfu_app.ld

NRF_DEFINES += -DNRF52832_XXAA

check_defined = \
    $(strip $(foreach 1,$1, \
    $(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
    $(if $(value $1),, \
    $(error Undefined make flag: $1$(if $2, ($2))))

.PHONY: dfu-gen dfu-flash

dfu-gen:
	nrfutil dfu genpkg --dev-type 0x0052 --application $(BUILD)/$(OUTPUT_FILENAME).hex $(BUILD)/dfu-package.zip

dfu-flash:
	@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyUSB0)
	sudo nrfutil dfu serial --package $(BUILD)/dfu-package.zip -p $(SERIAL)


#Android makefile to build lk bootloader as a part of Android Build

TARGET_BOOTLOADER := out/target/product/$(TARGET_PRODUCT)/appsboot.mbn
BOOTLOADER_OUT := $(TOP)/$(TARGET_OUT_INTERMEDIATES)/BOOTLOADER_OBJ

$(BOOTLOADER_OUT):
	mkdir -p $(BOOTLOADER_OUT)

$(TARGET_BOOTLOADER): $(BOOTLOADER_OUT)
	$(MAKE) -C bootable/bootloader/lk BOOTLOADER_OUT=../../../$(BOOTLOADER_OUT) $(TARGET_PRODUCT)

#build nandwrite as a part of Android Build
TARGET_NANDWRITE := $(PRODUCT_OUT)/obj/nandwrite/build-$(TARGET_PRODUCT)_nandwrite/lk
NANDWRITE_OUT := $(TOP)/$(TARGET_OUT_INTERMEDIATES)/nandwrite

$(NANDWRITE_OUT):
	mkdir -p $(BOOTLOADER_OUT)

$(TARGET_NANDWRITE): $(NANDWRITE_OUT)
	@echo $(TARGET_PRODUCT)_nandwrite
	$(MAKE) -C bootable/bootloader/lk BOOTLOADER_OUT=../../../$(NANDWRITE_OUT) $(TARGET_PRODUCT)_nandwrite

Fix issue with make not recompiling changes

#Android makefile to build lk bootloader as a part of Android Build

TARGET_BOOTLOADER := out/target/product/$(TARGET_PRODUCT)/appsboot.mbn
BOOTLOADER_OUT := $(TOP)/$(TARGET_OUT_INTERMEDIATES)/BOOTLOADER_OBJ

# Remove bootloader binary to trigger recompile when source changes
appsbootldr_clean:
	$(hide) rm -f $(TARGET_BOOTLOADER)

$(BOOTLOADER_OUT):
	mkdir -p $(BOOTLOADER_OUT)

$(TARGET_BOOTLOADER): $(BOOTLOADER_OUT) appsbootldr_clean
	$(MAKE) -C bootable/bootloader/lk BOOTLOADER_OUT=../../../$(BOOTLOADER_OUT) $(TARGET_PRODUCT)

#build nandwrite as a part of Android Build
TARGET_NANDWRITE := $(PRODUCT_OUT)/obj/nandwrite/build-$(TARGET_PRODUCT)_nandwrite/lk
NANDWRITE_OUT := $(TOP)/$(TARGET_OUT_INTERMEDIATES)/nandwrite

$(NANDWRITE_OUT):
	mkdir -p $(BOOTLOADER_OUT)

$(TARGET_NANDWRITE): $(NANDWRITE_OUT)
	@echo $(TARGET_PRODUCT)_nandwrite
	$(MAKE) -C bootable/bootloader/lk BOOTLOADER_OUT=../../../$(NANDWRITE_OUT) $(TARGET_PRODUCT)_nandwrite


AM_V_ERLC = $(am__v_ERLC_$(V))
am__v_ERLC_ = $(am__v_ERLC_$(AM_DEFAULT_VERBOSITY))
am__v_ERLC_0 = @echo "  ERLC    " $@;
am__v_ERLC_1 =

ERLC_GENERIC_FLAGS = -Werror  +debug_info $(DEBUG_ERLC_FLAGS)				\
		     -pa $(top_srcdir) -pa $(top_builddir) -pa $(top_builddir)/ebin	\
		     -I $(top_srcdir)/include -I $(srcdir)/../include 			\
		     -I $(top_builddir)/include -I $(builddir)/../include

# Local Variables:
#    tab-width: 8
# End:

Add a WARNINGS_AS_ERRORS make variable

AM_V_ERLC = $(am__v_ERLC_$(V))
am__v_ERLC_ = $(am__v_ERLC_$(AM_DEFAULT_VERBOSITY))
am__v_ERLC_0 = @echo "  ERLC    " $@;
am__v_ERLC_1 =

WARNINGS_AS_ERRORS = -Werror

ERLC_GENERIC_FLAGS = $(WARNINGS_AS_ERRORS) +debug_info $(DEBUG_ERLC_FLAGS)		\
		     -pa $(top_srcdir) -pa $(top_builddir) -pa $(top_builddir)/ebin	\
		     -I $(top_srcdir)/include -I $(srcdir)/../include 			\
		     -I $(top_builddir)/include -I $(builddir)/../include

# Local Variables:
#    tab-width: 8
# End:


COVERAGE_DIR=coverage

# run lcov from scratch, always
lcov-reset:
	make lcov-run
	make lcov-report

# run lcov from scratch if the dir is not there
lcov:
	make lcov-reset

# reset run coverage tests
lcov-run:
	@-rm -rf $(COVERAGE_DIR)
	@-find . -name "*.gcda" -exec rm {} \;
	-make check

# generate report based on current coverage data
lcov-report:
	mkdir $(COVERAGE_DIR)
	$(LCOV_PATH) --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info
	$(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove
	$(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep "tests/" | cut -d: -f1 >> $(COVERAGE_DIR)/remove
	$(LCOV_PATH) --compat-libtool -r $(COVERAGE_DIR)/lcov.info `cat $(COVERAGE_DIR)/remove` > $(COVERAGE_DIR)/lcov.cleaned.info
	rm $(COVERAGE_DIR)/remove
	mv $(COVERAGE_DIR)/lcov.cleaned.info $(COVERAGE_DIR)/lcov.info
	genhtml -t "$(PACKAGE_STRING)" -o $(COVERAGE_DIR) $(COVERAGE_DIR)/lcov.info

Use the variable instead of calling make directly

COVERAGE_DIR=coverage

# run lcov from scratch, always
lcov-reset:
	$(MAKE) lcov-run
	$(MAKE) lcov-report

# run lcov from scratch if the dir is not there
lcov:
	$(MAKE) lcov-reset

# reset run coverage tests
lcov-run:
	@-rm -rf $(COVERAGE_DIR)
	@-find . -name "*.gcda" -exec rm {} \;
	-$(MAKE) check

# generate report based on current coverage data
lcov-report:
	mkdir $(COVERAGE_DIR)
	$(LCOV_PATH) --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info
	$(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove
	$(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep "tests/" | cut -d: -f1 >> $(COVERAGE_DIR)/remove
	$(LCOV_PATH) --compat-libtool -r $(COVERAGE_DIR)/lcov.info `cat $(COVERAGE_DIR)/remove` > $(COVERAGE_DIR)/lcov.cleaned.info
	rm $(COVERAGE_DIR)/remove
	mv $(COVERAGE_DIR)/lcov.cleaned.info $(COVERAGE_DIR)/lcov.info
	genhtml -t "$(PACKAGE_STRING)" -o $(COVERAGE_DIR) $(COVERAGE_DIR)/lcov.info


<%inherit file="master.mak"/>

Participants

Should have ${int(target_number)} blog posts

  %for student in student_data:

${student['irc']}

    <div class="sticky padded ${'bad' if student_posts[student['irc']] < target_number else 'good'}">

    ${student_posts[student['irc']]}

    ${student['blog']}

    % for geordi in student['forges']:

${geordi}

    %endfor

View details »

    %if (loop.index + 1) % 3 == 0:

    %endif
  %endfor

Use proper css classes, don't just hack elements...


# config.mk
#
# Product-specific compile-time definitions.
#

# The generic product target doesn't have any hardware-specific pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_CPU_ABI := x86
TARGET_ARCH := x86
TARGET_ARCH_VARIANT := x86-atom
TARGET_PRELINK_MODULE := false

# The IA emulator (qemu) uses the Goldfish devices
HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true

# no hardware camera
USE_CAMERA_STUB := true

# Set /system/bin/sh to ash, not mksh, to make sure we can switch back.
TARGET_SHELL := ash

# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
ifeq ($(HOST_OS),linux)
WITH_DEXPREOPT := true
endif

# Build OpenGLES emulation host and guest libraries
BUILD_EMULATOR_OPENGL := true

Enable HW accelerated view framework for generic_x86 builds.

# config.mk
#
# Product-specific compile-time definitions.
#

# The generic product target doesn't have any hardware-specific pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_CPU_ABI := x86
TARGET_ARCH := x86
TARGET_ARCH_VARIANT := x86-atom
TARGET_PRELINK_MODULE := false

# The IA emulator (qemu) uses the Goldfish devices
HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true

# no hardware camera
USE_CAMERA_STUB := true

# Set /system/bin/sh to ash, not mksh, to make sure we can switch back.
TARGET_SHELL := ash

# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
ifeq ($(HOST_OS),linux)
WITH_DEXPREOPT := true
endif

# Build OpenGLES emulation host and guest libraries
BUILD_EMULATOR_OPENGL := true

# Build and enable the OpenGL ES View renderer. When running on the emulator,
# the GLES renderer disables itself if host GL acceleration isn't available.
USE_OPENGL_RENDERER := true


#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This is a generic phone product that isn't specialized for a specific device.
# It includes the base Android platform.

PRODUCT_POLICY := android.policy_phone

PRODUCT_PACKAGES := \
    AccountAndSyncSettings \
    CarHome \
    DeskClock \
    AlarmProvider \
    Bluetooth \
    Calculator \
    Calendar \
    Camera \
    CertInstaller \
    DrmProvider \
    Email \
    Gallery3D \
    LatinIME \
    Launcher2 \
    Mms \
    Music \
    Provision \
    Phone \
    Protips \
    QuickSearchBox \
    Settings \
    Sync \
    SystemUI \
    Updater \
    CalendarProvider \
    SyncProvider

PRODUCT_PACKAGES += \
    icu.dat

$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)

# Overrides
PRODUCT_BRAND := generic
PRODUCT_DEVICE := generic
PRODUCT_NAME := generic

Revert "Explicitly manage fonts and ICU data"

#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This is a generic phone product that isn't specialized for a specific device.
# It includes the base Android platform.

PRODUCT_POLICY := android.policy_phone

PRODUCT_PACKAGES := \
    AccountAndSyncSettings \
    CarHome \
    DeskClock \
    AlarmProvider \
    Bluetooth \
    Calculator \
    Calendar \
    Camera \
    CertInstaller \
    DrmProvider \
    Email \
    Gallery3D \
    LatinIME \
    Launcher2 \
    Mms \
    Music \
    Provision \
    Phone \
    Protips \
    QuickSearchBox \
    Settings \
    Sync \
    SystemUI \
    Updater \
    CalendarProvider \
    SyncProvider

$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)

# Overrides
PRODUCT_BRAND := generic
PRODUCT_DEVICE := generic
PRODUCT_NAME := generic


APP_BUILD_SCRIPT := $(call my-dir)/Android.mk
APP_PLATFORM := android-14
APP_ABI := armeabi x86

Update platform to fix PIE issue

APP_BUILD_SCRIPT := $(call my-dir)/Android.mk
APP_PLATFORM := android-16
APP_ABI := armeabi x86


TGT_DIR += $(b)pybison

PYBISON_INC := -Iexternal/pybison/src/c -I/usr/include/python2.7

build: $(b)pybison/bison_.so $(b)pybison/bison.py

$(b)pybison/bison_.so: $(b)pybison/bison_.o $(b)pybison/bisondynlib-linux.o
	$(CC) -g -O0 -pipe -Wall -Wextra -shared -pthread -o $@ $^

$(b)pybison/bison.py: $(d)pybison/src/python/bison.py | $(b)pybison
	ln -s `realpath $<` $@

$(b)pybison/bisondynlib-linux.o $(b)pybison/bison_.o: | $(b)pybison
	$(CC) -g -O0 -pipe -Wall -Wextra -o $@ -c $< -pthread -fPIC $(PYBISON_INC)

$(b)pybison/bisondynlib-linux.o: $(d)pybison/src/c/bisondynlib-linux.c
$(b)pybison/bison_.o: $(b)pybison/bison_.c

$(b)pybison/%.c: $(d)pybison/src/pyrex/%.pyx
	pyrexc -o $@ $<

Enable optimized bison generated parser builds.

TGT_DIR += $(b)pybison

PYBISON_INC := -Iexternal/pybison/src/c -I/usr/include/python2.7

build: $(b)pybison/bison_.so $(b)pybison/bison.py

$(b)pybison/bison_.so: $(b)pybison/bison_.o $(b)pybison/bisondynlib-linux.o
	$(CC) -g -O3 -pipe -Wall -Wextra -shared -pthread -o $@ $^

$(b)pybison/bison.py: $(d)pybison/src/python/bison.py | $(b)pybison
	ln -s `realpath $<` $@

$(b)pybison/bisondynlib-linux.o $(b)pybison/bison_.o: | $(b)pybison
	$(CC) -g -O3 -pipe -Wall -Wextra -o $@ -c $< -pthread -fPIC $(PYBISON_INC)

$(b)pybison/bisondynlib-linux.o: $(d)pybison/src/c/bisondynlib-linux.c
$(b)pybison/bison_.o: $(b)pybison/bison_.c

$(b)pybison/%.c: $(d)pybison/src/pyrex/%.pyx
	pyrexc -o $@ $<


########################################################################
# conf/googlebenchmark.mk                                              #
# =========================                                            #
#                                                                      #
# Dependencies and compilation requirements for gbenchmark.            #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gbenchmark` is a microbenchmark support library, #
#                    which support unit-tests alike benchmarking. To   #
#                    create the benchmark binary, just set `BENCHBIN`  #
#                    with the name of the file that contains the main  #
#                    function for the benchmarks.                      #
#                    For further info about the library, access:       #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_BENCHMARK_MK
override GOOGLE_BENCHMARK_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gbenchmark => https://github.com/google/benchmark.git \
                  mkdir -p build && cd build \
                  && cmake -DCMAKE_BUILD_TYPE=Release .. && make

# Paths
# =======
CXXLIBS         += -isystem external/gbenchmark/include/
LDLIBS          += -L external/gbenchmark/build/src/

# Flags
# =======
LDBENCH         += -lbenchmark -pthread

endif # ifndef GOOGLE_BENCHMARK_MK

Enable self-contained download of dependencies in gbenchmark

########################################################################
# conf/googlebenchmark.mk                                              #
# =========================                                            #
#                                                                      #
# Dependencies and compilation requirements for gbenchmark.            #
# -------------------------------------------------------------------- #
# MAINTEINER_NAME := Renato Cordeiro Ferreira                          #
# MAINTEINER_MAIL := renato.cferreira@hotmail.com                      #
# DESCRIPTION     := `gbenchmark` is a microbenchmark support library, #
#                    which support unit-tests alike benchmarking. To   #
#                    create the benchmark binary, just set `BENCHBIN`  #
#                    with the name of the file that contains the main  #
#                    function for the benchmarks.                      #
#                    For further info about the library, access:       #
#                    https://code.google.com/p/googletest/             #
########################################################################

ifndef GOOGLE_BENCHMARK_MK
override GOOGLE_BENCHMARK_MK := T

# Dependencies
# ==============
GIT_DEPENDENCY  += \
    gbenchmark => https://github.com/google/benchmark.git \
                  mkdir -p build && cd build \
                  && cmake -DCMAKE_BUILD_TYPE=Release \
                           -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON .. \
                  && make

# Paths
# =======
CXXLIBS         += -isystem external/gbenchmark/include/
LDLIBS          += -L external/gbenchmark/build/src/

# Flags
# =======
LDBENCH         += -lbenchmark -pthread

endif # ifndef GOOGLE_BENCHMARK_MK


# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SDK_VERSION := current

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_RESOURCE_DIR = \
        $(LOCAL_PATH)/res \
        $(LOCAL_PATH)/../leanback/res
LOCAL_AAPT_FLAGS := \
        --auto-add-overlay \
        --extra-packages android.support.v17.leanback

LOCAL_STATIC_JAVA_LIBRARIES := \
        android-support-v4 \
        android-support-v7-recyclerview \
        android-support-v17-leanback
LOCAL_JAVA_LIBRARIES := android.test.runner

LOCAL_PACKAGE_NAME := AndroidLeanbackTests

include $(BUILD_PACKAGE)

Add resources to recyclerview dependency.

# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SDK_VERSION := current

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_RESOURCE_DIR = \
        $(LOCAL_PATH)/res \
        $(LOCAL_PATH)/../leanback/res \
        $(LOCAL_PATH)/../../v7/recyclerview/res
LOCAL_AAPT_FLAGS := \
        --auto-add-overlay \
        --extra-packages android.support.v17.leanback \
        --extra-packages android.support.v7.recyclerview

LOCAL_STATIC_JAVA_LIBRARIES := \
        android-support-v4 \
        android-support-v7-recyclerview \
        android-support-v17-leanback
LOCAL_JAVA_LIBRARIES := android.test.runner

LOCAL_PACKAGE_NAME := AndroidLeanbackTests

include $(BUILD_PACKAGE)


# The Mordax Microkernel OS
# (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com>
# Report bugs and issues on <http://github.com/skordal/mordax/issues>

# ARMv7 build configuration.

# Target prefix:
TARGET_PREFIX  ?= arm-none-eabi
TARGET_CFLAGS  += -mcpu=cortex-a8

# Target-dependent build tools:
export TARGET_CC      ?= $(TARGET_PREFIX)-gcc
export TARGET_LD      ?= $(TARGET_PREFIX)-ld
export TARGET_AR      ?= $(TARGET_PREFIX)-ar
export TARGET_OBJCOPY ?= $(TARGET_PREFIX)-objcopy

# Target-dependent build flags:
export TARGET_ASFLAGS  += -mno-unaligned-access -Wall -O2
export TARGET_CFLAGS   += -mno-unaligned-access -std=gnu11 -Wall -O2
export TARGET_LDFLAGS  +=

Add -fomit-frame-pointer to build flags

# The Mordax Microkernel OS
# (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com>
# Report bugs and issues on <http://github.com/skordal/mordax/issues>

# ARMv7 build configuration.

# Target prefix:
TARGET_PREFIX  ?= arm-none-eabi
TARGET_CFLAGS  += -mcpu=cortex-a8

# Target-dependent build tools:
export TARGET_CC      ?= $(TARGET_PREFIX)-gcc
export TARGET_LD      ?= $(TARGET_PREFIX)-ld
export TARGET_AR      ?= $(TARGET_PREFIX)-ar
export TARGET_OBJCOPY ?= $(TARGET_PREFIX)-objcopy

# Target-dependent build flags:
export TARGET_ASFLAGS  += -mno-unaligned-access -Wall -O2
export TARGET_CFLAGS   += -mno-unaligned-access -std=gnu11 -Wall -O2 -fomit-frame-pointer
export TARGET_LDFLAGS  +=


ifneq ($(strip $(USE_DEVICE_SPECIFIC_CAMERA)),true)
MM_V4L2_DRIVER_LIST += msm8960
MM_V4L2_DRIVER_LIST += msm8974
MM_V4L2_DRIVER_LIST += msm8226

ifeq ($(call is-board-platform-in-list,$(MM_V4L2_DRIVER_LIST)),true)
  ifneq ($(USE_CAMERA_STUB),true)
    ifneq ($(BUILD_TINY_ANDROID),true)
      include $(call all-subdir-makefiles)
    endif
  endif
endif
endif

Remove dependency on is-board-platform-in-list to determine target

ifneq ($(strip $(USE_DEVICE_SPECIFIC_CAMERA)),true)
ifneq ($(filter msm8960 msm8226 msm8974,$(TARGET_BOARD_PLATFORM)),)
  ifneq ($(USE_CAMERA_STUB),true)
    ifneq ($(BUILD_TINY_ANDROID),true)
      include $(call all-subdir-makefiles)
    endif
  endif
endif
endif


LD_FILE = boards/samd21x18-bootloader-external-flash.ld
USB_VID = 0x239A
USB_PID = 0x8023
USB_PRODUCT = "Feather M0 Express"
USB_MANUFACTURER = "Adafruit Industries LLC"

SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 2
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
LONGINT_IMPL = MPZ

CHIP_VARIANT = SAMD21G18A
CHIP_FAMILY = samd21

CIRCUITPY_NETWORK = 1
MICROPY_PY_WIZNET5K = 5500

CIRCUITPY_FREQUENCYIO = 0

Copy inline setting on feather m0 express that the metro has.

LD_FILE = boards/samd21x18-bootloader-external-flash.ld
USB_VID = 0x239A
USB_PID = 0x8023
USB_PRODUCT = "Feather M0 Express"
USB_MANUFACTURER = "Adafruit Industries LLC"

SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 2
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C"
LONGINT_IMPL = MPZ

CHIP_VARIANT = SAMD21G18A
CHIP_FAMILY = samd21

CFLAGS_INLINE_LIMIT = 70

CIRCUITPY_NETWORK = 1
MICROPY_PY_WIZNET5K = 5500

CIRCUITPY_FREQUENCYIO = 0


# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_scominit.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG

PROCEDURE=p9_mss_scominit
$(call ADD_MODULE_INCDIR,$(PROCEDURE),$(ROOTPATH)/chips/p9/procedures/hwp/initfiles)
$(call BUILD_PROCEDURE)

Add c_str generic API and update makefiles

# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_scominit.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG

# Include the macros and things for MSS procedures
-include 00common.mk

PROCEDURE=p9_mss_scominit
$(call ADD_MODULE_INCDIR,$(PROCEDURE),$(ROOTPATH)/chips/p9/procedures/hwp/initfiles)
$(eval $(call ADD_MEMORY_INCDIRS,$(PROCEDURE)))
$(call BUILD_PROCEDURE)


# dvtm version
VERSION = 0.4

# Customize below to fit your system

PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

INCS = -I. -I/usr/include -I/usr/local/include
LIBS = -lc -lutil -lncurses
LIBS_UTF8 = -lc -lutil -lncursesw

CFLAGS = -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
LDFLAGS = -L/usr/lib -L/usr/local/lib ${LIBS}

# Mouse handling
CFLAGS += -DHANDLE_MOUSE

DEBUG_CFLAGS = -std=c99 -O0 -g -ggdb ${INCS} -Wall -DVERSION=\"${VERSION}\"

CC = cc

Remove redundant flags for release and debug targets.

# dvtm version
VERSION = 0.4

# Customize below to fit your system

PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

INCS = -I. -I/usr/include -I/usr/local/include
LIBS = -lc -lutil -lncurses
LIBS_UTF8 = -lc -lutil -lncursesw

CFLAGS = -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
LDFLAGS = -L/usr/lib -L/usr/local/lib ${LIBS}

# Mouse handling
CFLAGS += -DHANDLE_MOUSE

DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall

CC = cc


VERSION=0.5.3
TIMESTAMP:=$(shell date "+%F %T%z")

#MANCOUNTRIES=en_GB

CFLAGS=-I. -I.. -ggdb -Wall -O2
LDFLAGS=-nopie -lsqlite3 -lwrap

CC=gcc
INSTALL=install
XGETTEXT=xgettext
MSGMERGE=msgmerge
MSGFMT=msgfmt
DOCBOOK2MAN=docbook2man.pl

prefix=/usr/local
mandir=${prefix}/share/man
localedir=${prefix}/share/locale

Change version to allow creation of pre-release tarballs.

VERSION=0.5.4~pre1
TIMESTAMP:=$(shell date "+%F %T%z")

#MANCOUNTRIES=en_GB

CFLAGS=-I. -I.. -ggdb -Wall -O2
LDFLAGS=-nopie -lsqlite3 -lwrap

CC=gcc
INSTALL=install
XGETTEXT=xgettext
MSGMERGE=msgmerge
MSGFMT=msgfmt
DOCBOOK2MAN=docbook2man.pl

prefix=/usr/local
mandir=${prefix}/share/man
localedir=${prefix}/share/locale


REBAR ?= $(shell pwd)/rebar3

test:
	mkdir -p logs
	${REBAR} eunit skip_deps=true

systests: rel
	mkdir -p logs
ifdef SUITE
	ct_run -pa ./_build/default/lib/*/ebin -logdir logs -suite test/${SUITE}
else
	ct_run -pa ./_build/default/lib/*/ebin -logdir logs -dir test
endif

docs:
	${REBAR} doc skip_deps=true

xref: compile
	${REBAR} xref skip_deps=true

dialyzer:
	${REBAR} dialyzer

Clean beam files before running systests

REBAR ?= $(shell pwd)/rebar3

test:
	mkdir -p logs
	${REBAR} eunit skip_deps=true

systests: rel
	rm -f test/*.beam
	mkdir -p logs
ifdef SUITE
	ct_run -pa ./_build/default/lib/*/ebin -logdir logs -suite test/${SUITE}
else
	ct_run -pa ./_build/default/lib/*/ebin -logdir logs -dir test
endif

docs:
	${REBAR} doc skip_deps=true

xref: compile
	${REBAR} xref skip_deps=true

dialyzer:
	${REBAR} dialyzer


## Build target for Queue tests

queue_tests: sl_queue_tests

# Queues
build/evaluator.o: examples/queues/evaluator.c | build
	$(CC) $(CFLAGS) -c $^ -o $@

build/evaluator: examples/queues/evaluator.o build/sl_queue.o
	$(CC) $(LDFLAGS) $^ -o $@

evaluator: build/evaluator

Add test target for evaluator.

## Build target for Queue tests

# Queues
build/evaluator.o: examples/queues/evaluator.c | build
	$(CC) $(CFLAGS) -c $^ -o $@

build/evaluator: examples/queues/evaluator.o build/sl_queue.o
	$(CC) $(LDFLAGS) $^ -o $@

evaluator: build/evaluator

test_evaluator: evaluator
	echo "123+45+98534" | ./build/$^
	echo "123+45-STRING&8+98534" | ./build/$^


# VARIABLES #

# Define the path of the [david][1] executable:
#
# To install david:
#     $ npm install david
#
# [1]: https://www.npmjs.com/package/david

DAVID ?= $(BIN_DIR)/david

# Define the path to the root `package.json`:
ROOT_PACKAGE_JSON ?= $(ROOT_DIR)/package.json

# Define the command-line options to use when invoking the david executable:
DAVID_FLAGS ?= \
	--package $(ROOT_PACKAGE_JSON) \
	--ignore update-notifier \
	--ignore remark \
	--ignore remark-html \
	--ignore remark-lint \
	--ignore remark-validate-links \
	--ignore remark-vdom \
	--ignore chai

# TARGETS #

# Check JavaScript dependencies.
#
# This target checks JavaScript dependencies for updates and security vulnerabilities.

check-javascript-deps: $(NODE_MODULES)
	$(QUIET) $(DAVID) $(DAVID_FLAGS)

.PHONY: check-javascript-deps

Update list of ignored deps

# VARIABLES #

# Define the path of the [david][1] executable:
#
# To install david:
#     $ npm install david
#
# [1]: https://www.npmjs.com/package/david

DAVID ?= $(BIN_DIR)/david

# Define the path to the root `package.json`:
ROOT_PACKAGE_JSON ?= $(ROOT_DIR)/package.json

# Define the command-line options to use when invoking the david executable:
DAVID_FLAGS ?= \
	--package $(ROOT_PACKAGE_JSON) \
	--ignore update-notifier \
	--ignore remark-html \
	--ignore remark-vdom \
	--ignore chai

# TARGETS #

# Check JavaScript dependencies.
#
# This target checks JavaScript dependencies for updates and security vulnerabilities.

check-javascript-deps: $(NODE_MODULES)
	$(QUIET) $(DAVID) $(DAVID_FLAGS)

.PHONY: check-javascript-deps


-load luamake.so

ifdef WINDIR
# ASSUMES we have makenew and libgnumake-1.dll.a in this directory
platform_opts = -L. -lgnumake-1.dll
endif

ifeq ($(shell uname),Darwin)
platform_opts = -undefined dynamic_lookup
endif

ifeq ($(shell uname),Linux)
platform_opts = -fPIC
endif

luamake.so: luamake.c
	gcc -Wall -shared -o $@ $^ $(platform_opts) -llua5.3 -I/usr/include/lua5.3

.PHONY: test

$(lua require,luamake)

test:
	# Call module function directly
	$(info $(lua proc,hi,another hello))
	# Use eval to convert to string for display
	$(info result is $(lua eval,tostring(55)))

Fix include path for OS X homebrew

-load luamake.so

ifdef WINDIR
# ASSUMES we have makenew and libgnumake-1.dll.a in this directory
platform_opts = -L. -lgnumake-1.dll
endif

ifeq ($(shell uname),Darwin)
platform_opts = -undefined dynamic_lookup -I/usr/local/Cellar/lua/5.3.5_1/include/lua
endif

ifeq ($(shell uname),Linux)
platform_opts = -fPIC -I/usr/include/lua5.3
endif

luamake.so: luamake.c
	gcc -Wall -shared -o $@ $^ $(platform_opts) -llua5.3

.PHONY: test

$(lua require,luamake)

test:
	# Call module function directly
	$(info $(lua proc,hi,another hello))
	# Use eval to convert to string for display
	$(info result is $(lua eval,tostring(55)))


# define CC3200 SDK libs and headers based on definitions above
#SDK_LIBS := $(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/simplelink/gcc/exe/libsimplelink.a \
#           $(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/oslib/gcc/exe/libtirtos.a

#SDK_INCS := -I$(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/simplelink/include \
#           -I$(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk

#VFP := -mcpu=cortex-m4 -mfloat-abi=soft
VFP := -mfloat-abi=soft

CPPFLAGS +=
CFLAGS += -DF_CPU=$(F_CPU) -DTARGET_IS_CC3200 -Dxdc__nolocalstring=1
OBJCOPY = $(CCROOT)/bin/arm-none-eabi-objcopy
OBJCOPY_FLAGS = -O binary
PLAT := cc3200

Add -DSL_PLATFORM_MULTI_THREADED compiler flags for cc3200emt

# define CC3200 SDK libs and headers based on definitions above
#SDK_LIBS := $(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/simplelink/gcc/exe/libsimplelink.a \
#           $(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/oslib/gcc/exe/libtirtos.a

#SDK_INCS := -I$(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk/simplelink/include \
#           -I$(APPLICATION_PATH)/hardware/cc3200emt/cc3200-sdk

#VFP := -mcpu=cortex-m4 -mfloat-abi=soft
VFP := -mfloat-abi=soft

CPPFLAGS +=-DSL_PLATFORM_MULTI_THREADED
CFLAGS += -DSL_PLATFORM_MULTI_THREADED -DF_CPU=$(F_CPU) -DTARGET_IS_CC3200 -Dxdc__nolocalstring=1
OBJCOPY = $(CCROOT)/bin/arm-none-eabi-objcopy
OBJCOPY_FLAGS = -O binary
PLAT := cc3200


.PHONY: all $(SUBDIRS-y) $(SUBDIRS-n)

create_objs_lst: $(SUBDIRS-y)
	@echo '$(addprefix $(CURDIR)/,$(OBJS-y)) \' >> $(ROOT_DIR)/objs.lst

create_include_dirs_lst: $(SUBDIRS-y) $(SUBDIRS-n)
	@echo ' -I$(CURDIR)\' >> $(ROOT_DIR)/include_dirs.lst

$(SUBDIRS-y):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

$(SUBDIRS-n):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

all: $(SUBDIRS-y) $(OBJS-y)

%.o:%.S
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $(OBJ_DIR)/$(BUILD)/$@ $<
	@printf "  [M]\t$@\n"

%.o:%.c
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $(OBJ_DIR)/$(BUILD)/$@ $<
	@printf "  [M]\t$@\n"

clean:
	@$(RM) $(OBJS-y) *.d

Fix some make files for increasing monitor build speed

.PHONY: all $(SUBDIRS-y) $(SUBDIRS-n) copy_objs

create_objs_lst: $(SUBDIRS-y)
	@echo '$(addprefix $(CURDIR)/,$(OBJS-y)) \' >> $(ROOT_DIR)/objs.lst

create_include_dirs_lst: $(SUBDIRS-y) $(SUBDIRS-n)
	@echo ' -I$(CURDIR)\' >> $(ROOT_DIR)/include_dirs.lst

$(SUBDIRS-y):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

$(SUBDIRS-n):
	@$(MAKE) --no-print-directory -C $@ $(MAKEOP)

all: $(SUBDIRS-y) $(OBJS-y) copy_objs

%.o:%.S
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $@ $<
	@printf "  [M]\t$@\n"

%.o:%.c
	@$(CC) $(CCFLAGS) $(INCLUDE_DIRS) -I$(INCLUDE_DIR) -o $@ $<
	@printf "  [M]\t$@\n"

copy_objs:
	  if [ ! -z "$(OBJS-y)" ]; then  cp -f $(OBJS-y) $(OBJ_DIR)/$(BUILD); fi

clean:
	rm -f  $(OBJS-y)


          ${applist_widget(category = 'right-content-column-apps', layout = layout)}

         % if tmpl_context.auth('Not(not_anonymous())'):

Welcome to Fedora Community!

           FIXME: This is not correct wording. Fedora Community is a place where
           Fedora package maintainers can collaborate on building and maintaining
           their packages.  Logging into your Fedora account in Fedora Community
           allows you to keep up with your packages and to keep track of your
           friends’ packages as well.

Need an account?

       % else:

Welcome back, ${tmpl_context.identity['person']['human_name']}!

       % endif

       ${applist_widget(category = 'left-content-column-apps', layout = layout)}

Update our intro paragraph with Spot's latestly revision

          ${applist_widget(category = 'right-content-column-apps', layout = layout)}

         % if tmpl_context.auth('Not(not_anonymous())'):

Welcome to Fedora Community!

		 Fedora Community provides a window into the Fedora distribution,
		 leveraging the power of Fedora's Account System, Bodhi, Bugzilla,
		 Koji, and PackageDB into a single user-friendly website. Built
		 entirely with Free Software such as Moksha and TurboGears 2, Fedora
		 Community is designed to simplify Fedora workflows and bring
		 transparency to Fedora processes.

Need an account?

       % else:

Welcome back, ${tmpl_context.identity['person']['human_name']}!

       % endif

       ${applist_widget(category = 'left-content-column-apps', layout = layout)}


APP_PROJECT_PATH := $(call my-dir)/..

APP_STL := gnustl_static
#APP_CFLAGS := -O3 -DNDEBUG -g # arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
APP_CFLAGS := -g # arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
APP_PLATFORM := android-17 # Android 4.2, it should be backward compatible to previous versions
APP_PIE := false # This feature makes executables incompatible to Android API 15 or lower

include jni/Settings.mk

Set NDK APP_PLATFORM to API level 4 (android 1.6) to match minSdkVersion and fix a warning

APP_PROJECT_PATH := $(call my-dir)/..

APP_STL := gnustl_static
#APP_CFLAGS := -O3 -DNDEBUG -g # arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
APP_CFLAGS := -g # arm-linux-androideabi-4.4.3 crashes in -O0 mode on SDL sources
APP_PLATFORM := android-4  # android 1.6
APP_PIE := false # This feature makes executables incompatible to Android API 15 or lower

include jni/Settings.mk


APP_BUILD_SCRIPT := Android.mk

APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-16

APP_MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

NDK_MODULE_PATH := $(APP_MK_DIR)$(HOST_DIRSEP)$(THIRD_PARTY_NDK_DIR)$(HOST_DIRSEP)$(REACT_COMMON_DIR)$(HOST_DIRSEP)$(APP_MK_DIR)first-party

APP_STL := gnustl_shared

# Make sure every shared lib includes a .note.gnu.build-id header
APP_CFLAGS := -Wall -Werror
APP_CPPFLAGS := -std=c++1y
APP_LDFLAGS := -Wl,--build-id

NDK_TOOLCHAIN_VERSION := 4.8

Use GCC 4.9 again with the NDK

APP_BUILD_SCRIPT := Android.mk

APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-16

APP_MK_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

NDK_MODULE_PATH := $(APP_MK_DIR)$(HOST_DIRSEP)$(THIRD_PARTY_NDK_DIR)$(HOST_DIRSEP)$(REACT_COMMON_DIR)$(HOST_DIRSEP)$(APP_MK_DIR)first-party

APP_STL := gnustl_shared

# Make sure every shared lib includes a .note.gnu.build-id header
APP_CFLAGS := -Wall -Werror
APP_CPPFLAGS := -std=c++1y
APP_LDFLAGS := -Wl,--build-id

NDK_TOOLCHAIN_VERSION := 4.9


# snore - sleep with feedback
VERSION = 0.2

# Customize below to fit your system

# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

# includes and libs
INCS =
LIBS =

# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\"
#CFLAGS   = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS  = -s ${LIBS}

# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}

# compiler and linker
CC = cc

Fix POSIX_C_SOURCE macro for snprintf() and clock_gettime()

# snore - sleep with feedback
VERSION = 0.2

# Customize below to fit your system

# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

# includes and libs
INCS =
LIBS =

# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\"
#CFLAGS   = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS  = ${LIBS}

# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}

# compiler and linker
CC = cc


PREFIX ?= /usr
MANPREFIX := $(PREFIX)/man

CC      ?= cc
LD      := $(CC)

CFLAGS  += -std=c99 -pedantic -Wall -Os
LDFLAGS += -lxcb

Change variables in Makfile for POSIX-compliance

PREFIX = /usr
MANPREFIX = $(PREFIX)/man

CC      = cc
LD      = $(CC)

CFLAGS  = -std=c99 -pedantic -Wall -Os
LDFLAGS = -lxcb


ifeq ($(HOST),armv7a-linux-android)
android_AR=$(ANDROID_TOOLCHAIN_BIN)/arm-linux-androideabi-ar
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/arm-linux-androideabi-ranlib
else
android_AR=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ar
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ranlib
endif
android_cmake_system=Android

Switch to llvm buinutils for Android builds


################################################
## A thin wrapper around BUILD_HOST_EXECUTABLE
## Common flags for host native tests are added.
################################################

LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
LOCAL_C_INCLUDES +=  \
                    bionic/libstdc++/include \
                    external/gtest/include \
                    external/astl/include
LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host libastl_host
LOCAL_SHARED_LIBRARIES +=

include $(BUILD_HOST_EXECUTABLE)

Use the host STL for host native test.

################################################
## A thin wrapper around BUILD_HOST_EXECUTABLE
## Common flags for host native tests are added.
################################################

LOCAL_CFLAGS += -DGTEST_OS_LINUX -DGTEST_HAS_STD_STRING -O0 -g
LOCAL_C_INCLUDES +=  \
    external/gtest/include

LOCAL_STATIC_LIBRARIES += libgtest_host libgtest_main_host
LOCAL_SHARED_LIBRARIES +=

include $(BUILD_HOST_EXECUTABLE)


VPATH+=	${TOPDIR}/network

ifndef USE_PCAP
ifeq "${OSNAME}" "Darwin"
USE_PCAP=	yes
endif

ifeq "${OSNAME}" "FreeBSD"
USE_PCAP=	yes
endif

ifndef USE_PCAP
USE_PCAP=	no
endif
endif

ifeq "${USE_PCAP}" "yes"
LDADD+=	-lpcap
USE_NETWORK_INTERFACES=	pcap
endif

ifdef USE_NETWORK_INTERFACES
SRCS+=	network_interface.cc
SRCS+=	$(addprefix network_interface_,$(addsuffix .cc, ${USE_NETWORK_INTERFACES}))
endif

NET_REQUIRES=	event io

Allow building a version that will just fail.

VPATH+=	${TOPDIR}/network

ifndef USE_PCAP
ifeq "${OSNAME}" "Darwin"
USE_PCAP=	yes
endif

ifeq "${OSNAME}" "FreeBSD"
USE_PCAP=	yes
endif

ifndef USE_PCAP
USE_PCAP=	no
endif
endif

ifeq "${USE_PCAP}" "yes"
LDADD+=	-lpcap
USE_NETWORK_INTERFACES=	pcap
endif

SRCS+=	network_interface.cc
ifdef USE_NETWORK_INTERFACES
SRCS+=	$(addprefix network_interface_,$(addsuffix .cc, ${USE_NETWORK_INTERFACES}))
endif

NET_REQUIRES=	event io


LUAJIT ?= $(or \
    $(shell command -v luajit51 || command -v luajit), \
    $(error Unable to find luajit command) \
)

LUA53_UTIL = LUA_CPATH=build/lua53/?.so LUA_PATH='./?.lua;;' $(LUA53)

CHECK_ALL = $(addprefix check-, $(BUILD_VERS))
CHECK_ANY = $(addprefix check-, $(LUAS_FOUND))

check: check-any
check-any: $(CHECK_ANY)
check-all: $(CHECK_ALL)

$(CHECK_ALL): check-lua%: build-lua%
	LUA_CPATH=build/lua$*/?.so LUA_PATH=./?.lua $(LUA$*) runtests.lua

check-luajit: build-lua51
	LUA_CPATH=build/lua51/?.so LUA_PATH=./?.lua $(LUAJIT) runtests.lua

coverage.txt: build-lua53
	$(LUA53_UTIL) -lluacov runtests.lua

luacheck:
	@luacheck .

CLEANFILES += coverage.txt .luacov-stats.txt
.PHONY: check check-all check-any $(CHECK_ALL) check-luajit luacheck

Fix "make coverage.txt" target to work with cluacov

LUAJIT ?= $(or \
    $(shell command -v luajit51 || command -v luajit), \
    $(error Unable to find luajit command) \
)

LUA53_UTIL = LUA_CPATH='build/lua53/?.so;;' LUA_PATH='./?.lua;;' $(LUA53)

CHECK_ALL = $(addprefix check-, $(BUILD_VERS))
CHECK_ANY = $(addprefix check-, $(LUAS_FOUND))

check: check-any
check-any: $(CHECK_ANY)
check-all: $(CHECK_ALL)

$(CHECK_ALL): check-lua%: build-lua%
	LUA_CPATH=build/lua$*/?.so LUA_PATH=./?.lua $(LUA$*) runtests.lua

check-luajit: build-lua51
	LUA_CPATH=build/lua51/?.so LUA_PATH=./?.lua $(LUAJIT) runtests.lua

coverage.txt: build-lua53
	$(LUA53_UTIL) -lluacov runtests.lua

luacheck:
	@luacheck .

CLEANFILES += coverage.txt .luacov-stats.txt
.PHONY: check check-all check-any $(CHECK_ALL) check-luajit luacheck


LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

appcompat_dir := ../../../frameworks/support/v7/appcompat
design_dir := ../../../frameworks/support/design
res_dir := app/src/main/res $(appcompat_dir)/res $(design_dir)/res

LOCAL_MODULE_TAGS := optional

LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))

LOCAL_SRC_FILES := \
        $(call all-java-files-under, app/src/main/java) \
        $(call all-java-files-under, app/src/androidx86/java)

LOCAL_MANIFEST_FILE := app/src/androidx86/AndroidManifest.xml

LOCAL_STATIC_JAVA_LIBRARIES := \
        android-support-v4 \
        android-support-v7-appcompat \
        android-support-v7-recyclerview \
        android-support-v7-design

LOCAL_PROGUARD_ENABLED := disabled

LOCAL_PACKAGE_NAME := Taskbar

LOCAL_JAVA_LANGUAGE_VERSION := 1.8

LOCAL_AAPT_FLAGS := \
        --auto-add-overlay
        --rename-manifest-package com.farmerbb.taskbar.androidx86 \
        --extra-packages android.support.v7.appcompat \
        --extra-packages android.support.v7.recyclerview \
        --extra-packages android.support.design

include $(BUILD_PACKAGE)

Fix a trivial building error

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

appcompat_dir := ../../../frameworks/support/v7/appcompat
design_dir := ../../../frameworks/support/design
res_dir := app/src/main/res $(appcompat_dir)/res $(design_dir)/res

LOCAL_MODULE_TAGS := optional

LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))

LOCAL_SRC_FILES := \
        $(call all-java-files-under, app/src/main/java) \
        $(call all-java-files-under, app/src/androidx86/java)

LOCAL_MANIFEST_FILE := app/src/androidx86/AndroidManifest.xml

LOCAL_STATIC_JAVA_LIBRARIES := \
        android-support-v4 \
        android-support-v7-appcompat \
        android-support-v7-recyclerview \
        android-support-v7-design

LOCAL_PROGUARD_ENABLED := disabled

LOCAL_PACKAGE_NAME := Taskbar

LOCAL_JAVA_LANGUAGE_VERSION := 1.8

LOCAL_AAPT_FLAGS := \
        --auto-add-overlay \
        --rename-manifest-package com.farmerbb.taskbar.androidx86 \
        --extra-packages android.support.v7.appcompat \
        --extra-packages android.support.v7.recyclerview \
        --extra-packages android.support.design

include $(BUILD_PACKAGE)


# Special target for building with the host GCC in coverage collecting mode.

TOOLPATH := /usr/bin
# Get the $(CFLAGSENV), $(CXXFLAGSENV), $(LDFLAGSENV)
include $(OPENMRNPATH)/etc/env.mk

CC = gcc
CXX = g++
AR = ar
LD = g++

HOST_TARGET := 1

STARTGROUP := -Wl,--start-group
ENDGROUP := -Wl,--end-group

ARCHOPTIMIZATION = -g -O0 -fprofile-arcs -ftest-coverage

CSHAREDFLAGS = -c -frandom-seed=$(shell echo $(abspath $<) | md5sum  | sed 's/\(.*\) .*/\1/') $(ARCHOPTIMIZATION) $(INCLUDES) -Wall -Werror -Wno-unknown-pragmas -MD -MP -fno-stack-protector -D_GNU_SOURCE

CFLAGS = $(CSHAREDFLAGS) -std=gnu99

CXXFLAGS = $(CSHAREDFLAGS) -std=c++0x -D__STDC_FORMAT_MACROS \
           -D__STDC_LIMIT_MACROS #-D__LINEAR_MAP__

LDFLAGS = $(ARCHOPTIMIZATION) -pg -Wl,-Map="$(@:%=%.map)"
SYSLIB_SUBDIRS +=
SYSLIBRARIES = -lrt -lpthread -lgcov -lavahi-client -lavahi-common $(SYSLIBRARIESEXTRA)

EXTENTION =

Add define for GTEST flag.

# Special target for building with the host GCC in coverage collecting mode.

TOOLPATH := /usr/bin
# Get the $(CFLAGSENV), $(CXXFLAGSENV), $(LDFLAGSENV)
include $(OPENMRNPATH)/etc/env.mk

CC = gcc
CXX = g++
AR = ar
LD = g++

HOST_TARGET := 1

STARTGROUP := -Wl,--start-group
ENDGROUP := -Wl,--end-group

ARCHOPTIMIZATION = -g -O0 -fprofile-arcs -ftest-coverage

CSHAREDFLAGS = -c -frandom-seed=$(shell echo $(abspath $<) | md5sum  | sed 's/\(.*\) .*/\1/') $(ARCHOPTIMIZATION) $(INCLUDES) -Wall -Werror -Wno-unknown-pragmas -MD -MP -fno-stack-protector -D_GNU_SOURCE -DGTEST

CFLAGS = $(CSHAREDFLAGS) -std=gnu99

CXXFLAGS = $(CSHAREDFLAGS) -std=c++0x -D__STDC_FORMAT_MACROS \
           -D__STDC_LIMIT_MACROS #-D__LINEAR_MAP__

LDFLAGS = $(ARCHOPTIMIZATION) -pg -Wl,-Map="$(@:%=%.map)"
SYSLIB_SUBDIRS +=
SYSLIBRARIES = -lrt -lpthread -lgcov -lavahi-client -lavahi-common $(SYSLIBRARIESEXTRA)

EXTENTION =


# Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
#
# This file is part of OpenRC. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.

SFX=		.GNU.in
PKG_PREFIX?=	/usr

CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DMAXPATHLEN=4096 -DPATH_MAX=4096
LIBDL=		-Wl,-Bdynamic -ldl

Drop the use of the _BSD_SOURCE macro on GNU/Hurd

# Copyright (c) 2007-2015 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
#
# This file is part of OpenRC. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.

SFX=		.GNU.in
PKG_PREFIX?=	/usr

CPPFLAGS+=	-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -DMAXPATHLEN=4096 -DPATH_MAX=4096
LIBDL=		-Wl,-Bdynamic -ldl


Description

${w.description}

Active Releases Overview

${w.children[0].display(package_name=w.package_info['name'])}

Upstream Summary

Project Homepage

            <%
                homepage = w.package_info.get('upstream_url', 'Unknown')
            %>
            ${homepage}

Work with packages that don't have a URL in their spec (like autofs).

Description

${w.description}

Active Releases Overview

${w.children[0].display(package_name=w.package_info['name'])}

    <%
        homepage = w.package_info.get('upstream_url', 'Unknown')
    %>
    % if homepage:

Upstream Summary

Project Homepage

            ${homepage}

    % endif


CC = gcc
CFLAGS = -Wall -I$(O)/include

include src/unix.mk

Add C99 compiler option for older GCCs.

CC = gcc -std=c99
CFLAGS = -Wall -I$(O)/include

include src/unix.mk


MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52832
SOFTDEV_VERSION = 2.0.1

LD_FILE = boards/feather52/custom_nrf52832_dfu_app.ld

NRF_DEFINES += -DNRF52832_XXAA

Update s132 target makefile with dfu-gen and dfu-flash. This enables feather52 with Bluetooth LE. Features to be configured in bluetooth_conf.h.

MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52832
SOFTDEV_VERSION = 2.0.1

LD_FILE = boards/feather52/custom_nrf52832_dfu_app.ld

NRF_DEFINES += -DNRF52832_XXAA

check_defined = \
    $(strip $(foreach 1,$1, \
    $(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
    $(if $(value $1),, \
    $(error Undefined make flag: $1$(if $2, ($2))))

.PHONY: dfu-gen dfu-flash

dfu-gen:
	nrfutil dfu genpkg --dev-type 0x0052 --application $(BUILD)/$(OUTPUT_FILENAME).hex $(BUILD)/dfu-package.zip

dfu-flash:
	@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyUSB0)
	sudo nrfutil dfu serial --package $(BUILD)/dfu-package.zip -p $(SERIAL)


# $PostgreSQL: pgsql/src/pl/plperl/nls.mk,v 1.2 2009/02/17 09:24:57 petere Exp $
CATALOG_NAME	:= plperl
AVAIL_LANGUAGES	:=
GETTEXT_FILES	:= plperl.c SPI.xs
GETTEXT_TRIGGERS:= _ errmsg errdetail errdetail_log errhint errcontext croak Perl_croak

Remove croak and Perl_croak from gettext triggers. While we could selectively mark up their arguments for translation, the Perl xsubpp tool generates a bunch of additional Perl_croak calls that we cannot control, so we'd be creating a confusing mix of translated and untranslated messages of a similar kind. This is something that might deserve a more comprehensive solution later.

# $PostgreSQL: pgsql/src/pl/plperl/nls.mk,v 1.3 2009/02/19 10:07:58 petere Exp $
CATALOG_NAME	:= plperl
AVAIL_LANGUAGES	:=
GETTEXT_FILES	:= plperl.c SPI.c
GETTEXT_TRIGGERS:= errmsg errdetail errdetail_log errhint errcontext


VARS_FILE = vars_c2cdev.yaml
INSTANCE_ID = sbrunner

include geoportailv3.mk

Set my makefile as devel

VARS_FILE = vars_c2cdev.yaml
DEVELOPMENT ?= TRUE
INSTANCE_ID = sbrunner

include geoportailv3.mk


include $(SRC_PATH)build/arch.mk
SHAREDLIBSUFFIX = so
SHAREDLIBSUFFIXFULLVER=$(SHAREDLIBSUFFIX).$(FULL_VERSION)
SHAREDLIBSUFFIXMAJORVER=$(SHAREDLIBSUFFIX).$(SHAREDLIB_MAJORVERSION)
SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER)
CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
ifeq ($(USE_STACK_PROTECTOR), Yes)
CFLAGS += -fstack-protector-all
endif
LDFLAGS += -lpthread
STATIC_LDFLAGS += -lpthread -lm
AR_OPTS = crD $@
ifeq ($(ASM_ARCH), x86)
ifeq ($(ARCH), x86_64)
ASMFLAGS += -f elf64
else
ASMFLAGS += -f elf
endif
endif
ifeq ($(ASM_ARCH), arm)
ASMFLAGS += -march=armv7-a -mfpu=neon
endif

ifeq ($(ASM_ARCH), arm64)
CFLAGS += -march=armv8-a
ASMFLAGS += -march=armv8-a
endif

ifeq ($(CXX), clang++)
CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal
endif

Add -Wno-class-memaccess on linux if building with g++ >= 8

include $(SRC_PATH)build/arch.mk
SHAREDLIBSUFFIX = so
SHAREDLIBSUFFIXFULLVER=$(SHAREDLIBSUFFIX).$(FULL_VERSION)
SHAREDLIBSUFFIXMAJORVER=$(SHAREDLIBSUFFIX).$(SHAREDLIB_MAJORVERSION)
SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER)
CFLAGS += -Wall -fno-strict-aliasing -fPIC -MMD -MP
ifeq ($(USE_STACK_PROTECTOR), Yes)
CFLAGS += -fstack-protector-all
endif
LDFLAGS += -lpthread
STATIC_LDFLAGS += -lpthread -lm
AR_OPTS = crD $@
ifeq ($(ASM_ARCH), x86)
ifeq ($(ARCH), x86_64)
ASMFLAGS += -f elf64
else
ASMFLAGS += -f elf
endif
endif
ifeq ($(ASM_ARCH), arm)
ASMFLAGS += -march=armv7-a -mfpu=neon
endif

ifeq ($(ASM_ARCH), arm64)
CFLAGS += -march=armv8-a
ASMFLAGS += -march=armv8-a
endif

ifeq ($(CXX), clang++)
CXXFLAGS += -Wc++11-compat-reserved-user-defined-literal
endif

ifeq ($(patsubst %g++,,$(CXX)),)
GCCVER_GTEQ8 = $(shell echo $$(($$($(CXX) -dumpversion | awk -F "." '{print $$1}') >= 8)))
ifeq ($(GCCVER_GTEQ8), 1)
CXXFLAGS += -Wno-class-memaccess
endif
endif


LD_FILE = boards/samd21x18-bootloader.ld
USB_VID = 0xBAB2
USB_PID = 0x1209
USB_PRODUCT = "CatWAN USBStick"
USB_MANUFACTURER = "Electronic Cats"

INTERNAL_FLASH_FILESYSTEM = 1
LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1

CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21

Disable frequencyio support for samd21-based catwan_usbstick target.

LD_FILE = boards/samd21x18-bootloader.ld
USB_VID = 0xBAB2
USB_PID = 0x1209
USB_PRODUCT = "CatWAN USBStick"
USB_MANUFACTURER = "Electronic Cats"

INTERNAL_FLASH_FILESYSTEM = 1
LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1

CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21

CIRCUITPY_FREQUENCYIO = 0


#
# Copyright (C) 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := android.support.v8.renderscript
#LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, java/src)

include $(BUILD_STATIC_JAVA_LIBRARY)

# Include this library in the build server's output directory
# TODO: Not yet.
#$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE):volley.jar)

# TODO: Build the tests as an APK here

include $(call all-makefiles-under, $(LOCAL_PATH))

Make RS compat lib only compile in bundled branches.

#
# Copyright (C) 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Don't build the library in unbundled branches.
ifeq (,$(TARGET_BUILD_APPS))

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := android.support.v8.renderscript
#LOCAL_SDK_VERSION := 17
LOCAL_SRC_FILES := $(call all-java-files-under, java/src)

include $(BUILD_STATIC_JAVA_LIBRARY)

# Include this library in the build server's output directory
# TODO: Not yet.
#$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE):volley.jar)

# TODO: Build the tests as an APK here

include $(call all-makefiles-under, $(LOCAL_PATH))

endif


COPTS = /Zi /MD /nologo /DHAVE_CONFIG_H /DVERSION=\"0.7.0\" /I$(TOPDIR)\src\include /D_WIN32_WINNT=0x0400
LINKFLAGS = /DEBUG /NOLOGO /INCREMENTAL:NO /MACHINE:IX86

install-headers:
	@for %i in ( $(HEADERS) ) do \
		@xcopy /d /q /y %i $(HEADERSDIR) > nul

install-headers-dir:
	@for %i in ( $(HEADERSDIRFROM2) ) do \
		@xcopy /d /q /y %i\*.h $(HEADERSDIR2)\*.h > nul

.c.obj::
	cl $(COPTS) /c $<

Remove hardcoded VERSION define, you'll need need to update versions from winconfig.h and also version.rc.

COPTS = /Zi /MD /nologo /DHAVE_CONFIG_H /I$(TOPDIR)\src\include /D_WIN32_WINNT=0x0400
LINKFLAGS = /DEBUG /NOLOGO /INCREMENTAL:NO /MACHINE:IX86

install-headers:
	@for %i in ( $(HEADERS) ) do \
		@xcopy /d /q /y %i $(HEADERSDIR) > nul

install-headers-dir:
	@for %i in ( $(HEADERSDIRFROM2) ) do \
		@xcopy /d /q /y %i\*.h $(HEADERSDIR2)\*.h > nul

.c.obj::
	cl $(COPTS) /c $<


# Android makefile for textsort shared lib, jni wrapper around libtextsort C API

APP_ABI := all
APP_OPTIM := release
APP_PLATFORM := android-8
# GCC 4.8 Toolchain - requires NDK r9
NDK_TOOLCHAIN_VERSION = 4.8
# GNU libc++ is the only Android STL which supports C++11 features
APP_STL := gnustl_static
APP_BUILD_SCRIPT := jni/Android.mk
APP_MODULES := libtextsort_jni

Use gcc 4.9 for example

# Android makefile for textsort shared lib, jni wrapper around libtextsort C API

APP_ABI := all
APP_OPTIM := release
APP_PLATFORM := android-8
# GCC 4.9 Toolchain - requires NDK r10
NDK_TOOLCHAIN_VERSION = 4.9
# GNU libc++ is the only Android STL which supports C++11 features
APP_STL := gnustl_static
APP_BUILD_SCRIPT := jni/Android.mk
APP_MODULES := libtextsort_jni


# This is the default variant when you `make` the Unix port.

PROG ?= micropython

# install micropython in /usr/local/bin
TARGET = micropython
PREFIX = $(DESTDIR)/usr/local
BINDIR = $(PREFIX)/bin

install: micropython
	install -d $(BINDIR)
	install $(TARGET) $(BINDIR)/$(TARGET)

# uninstall micropython
uninstall:
	-rm $(BINDIR)/$(TARGET)

Fix role of PREFIX when used to install.

# This is the default variant when you `make` the Unix port.

PROG ?= micropython

# install micropython in /usr/local/bin
TARGET = micropython
PREFIX = /usr/local
BINDIR = $(DESTDIR)$(PREFIX)/bin

install: micropython
	install -d $(BINDIR)
	install $(TARGET) $(BINDIR)/$(TARGET)

# uninstall micropython
uninstall:
	-rm $(BINDIR)/$(TARGET)


                    Name
                    Username

                                @{human_name}

                            @{username}

Fix a bug in the People Grid.

                    Name
                    Username

                                @{human_name}

                            @{username}


# Copyright 2017 Intel Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

.DEFAULT_GOAL := all

PROJECT_ROOT := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/..)

DPDK_VERSION = 17.02
DPDK_DIR = dpdk-$(DPDK_VERSION)
export RTE_SDK = $(PROJECT_ROOT)/test/dpdk/$(DPDK_DIR)
export RTE_TARGET = x86_64-native-linuxapp-gcc
export CGO_CFLAGS = -I$(RTE_SDK)/$(RTE_TARGET)/include
export CGO_LDFLAGS = -L$(RTE_SDK)/$(RTE_TARGET)/lib

# Universal check whether a variable is set
.PHONY: .check-defined-%
.check-defined-%:
	if [ -z '${${*}}' ]; then echo "Variable $* is undefined" && exit 1; fi

Switch to latest stable DPDK release

# Copyright 2017 Intel Corporation.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

.DEFAULT_GOAL := all

PROJECT_ROOT := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/..)

DPDK_VERSION = 17.02.1
DPDK_DIR = dpdk-stable-$(DPDK_VERSION)
export RTE_SDK = $(PROJECT_ROOT)/test/dpdk/$(DPDK_DIR)
export RTE_TARGET = x86_64-native-linuxapp-gcc
export CGO_CFLAGS = -I$(RTE_SDK)/$(RTE_TARGET)/include
export CGO_LDFLAGS = -L$(RTE_SDK)/$(RTE_TARGET)/lib

# Universal check whether a variable is set
.PHONY: .check-defined-%
.check-defined-%:
	if [ -z '${${*}}' ]; then echo "Variable $* is undefined" && exit 1; fi


# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
PROCEDURE=p9_mss_attr_update
$(call BUILD_PROCEDURE)

Add MSS customization support from CRP0 Lx MVPD

# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.mk $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2015,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
-include 00common.mk

PROCEDURE=p9_mss_attr_update
$(eval $(call ADD_MEMORY_INCDIRS,$(PROCEDURE)))
$(call BUILD_PROCEDURE)