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