nbproject/Makefile-impl.mk
author František Kučera <franta-hg@frantovo.cz>
Sun, 19 Aug 2018 20:34:11 +0200
branchv_0
changeset 0 0f855036489e
permissions -rw-r--r--
common definitions of constants and types
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
# 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
# Generated Makefile - do not edit! 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
# 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
# Edit the Makefile in the project folder instead (../Makefile). Each target
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
# has a pre- and a post- target defined where you can add customization code.
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
#
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
# This makefile implements macros and targets common to all configurations.
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
#
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
# NOCDDL
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
# Building and Cleaning subprojects are done by default, but can be controlled with the SUB
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
# macro. If SUB=no, subprojects will not be built or cleaned. The following macro
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
# and .clean-reqprojects-conf unless SUB has the value 'no'
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
SUB_no=NO
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
SUBPROJECTS=${SUB_${SUB}}
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
BUILD_SUBPROJECTS_=.build-subprojects
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
BUILD_SUBPROJECTS_NO=
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}}
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
CLEAN_SUBPROJECTS_=.clean-subprojects
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
CLEAN_SUBPROJECTS_NO=
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}}
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
# Project Name
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
PROJECTNAME=relpipe-lib-protocol.cpp
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
# Active Configuration
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
DEFAULTCONF=Debug
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
CONF=${DEFAULTCONF}
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
# All Configurations
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
ALLCONFS=Debug Release 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
# build
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
.build-impl: .build-pre .validate-impl .depcheck-impl
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
	@#echo "=> Running $@... Configuration=$(CONF)"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
# clean
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
.clean-impl: .clean-pre .validate-impl .depcheck-impl
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
	@#echo "=> Running $@... Configuration=$(CONF)"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
# clobber 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    50
.clobber-impl: .clobber-pre .depcheck-impl
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
	@#echo "=> Running $@..."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    52
	for CONF in ${ALLCONFS}; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    53
	do \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    54
	    "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    55
	done
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    57
# all 
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
.all-impl: .all-pre .depcheck-impl
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    59
	@#echo "=> Running $@..."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    60
	for CONF in ${ALLCONFS}; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    61
	do \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    62
	    "${MAKE}" -f nbproject/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    63
	done
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    64
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    65
# build tests
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    66
.build-tests-impl: .build-impl .build-tests-pre
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    67
	@#echo "=> Running $@... Configuration=$(CONF)"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    68
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    69
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    70
# run tests
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    71
.test-impl: .build-tests-impl .test-pre
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    72
	@#echo "=> Running $@... Configuration=$(CONF)"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    73
	"${MAKE}" -f nbproject/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    74
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    75
# dependency checking support
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    76
.depcheck-impl:
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    77
	@echo "# This code depends on make tool being used" >.dep.inc
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    78
	@if [ -n "${MAKE_VERSION}" ]; then \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    79
	    echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES} \$${TESTOBJECTFILES}))" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    80
	    echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    81
	    echo "include \$${DEPFILES}" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    82
	    echo "endif" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    83
	else \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    84
	    echo ".KEEP_STATE:" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    85
	    echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    86
	fi
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    87
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    88
# configuration validation
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    89
.validate-impl:
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    90
	@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    91
	then \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    92
	    echo ""; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    93
	    echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    94
	    echo "See 'make help' for details."; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    95
	    echo "Current directory: " `pwd`; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    96
	    echo ""; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    97
	fi
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    98
	@if [ ! -f nbproject/Makefile-${CONF}.mk ]; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    99
	then \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   100
	    exit 1; \
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   101
	fi
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   102
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   103
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   104
# help
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   105
.help-impl: .help-pre
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   106
	@echo "This makefile supports the following configurations:"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   107
	@echo "    ${ALLCONFS}"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   108
	@echo ""
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   109
	@echo "and the following targets:"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   110
	@echo "    build  (default target)"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   111
	@echo "    clean"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   112
	@echo "    clobber"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   113
	@echo "    all"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   114
	@echo "    help"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   115
	@echo ""
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   116
	@echo "Makefile Usage:"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   117
	@echo "    make [CONF=<CONFIGURATION>] [SUB=no] build"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   118
	@echo "    make [CONF=<CONFIGURATION>] [SUB=no] clean"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   119
	@echo "    make [SUB=no] clobber"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   120
	@echo "    make [SUB=no] all"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   121
	@echo "    make help"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   122
	@echo ""
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   123
	@echo "Target 'build' will build a specific configuration and, unless 'SUB=no',"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   124
	@echo "    also build subprojects."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   125
	@echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no',"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   126
	@echo "    also clean subprojects."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   127
	@echo "Target 'clobber' will remove all built files from all configurations and,"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   128
	@echo "    unless 'SUB=no', also from subprojects."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   129
	@echo "Target 'all' will will build all configurations and, unless 'SUB=no',"
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   130
	@echo "    also build subprojects."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   131
	@echo "Target 'help' prints this message."
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   132
	@echo ""
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   133