diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2016-12-08 13:51:04 +0100 |
---|---|---|
committer | Christian Gromm <christian.gromm@microchip.com> | 2016-12-08 13:51:04 +0100 |
commit | 8c5f2324d7aa61669324aec1a0ad091fe1379489 (patch) | |
tree | 29cbdcdbe3657e1400d596ec3d560a2573d80817 /buildX86 | |
parent | e89ba11bd9111f02a940f227cf979f1947e975ac (diff) |
src: unicens: import sources
This patch adds the source tree of the NetworkManager v3.0.4.
Additionally, it provides the needed configuration scripts.
Change-Id: I23778b51423b51a4f87741957e0fb208bceb79b3
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'buildX86')
-rw-r--r-- | buildX86/Makefile-Release.mk | 368 | ||||
-rw-r--r-- | buildX86/Makefile-impl.mk | 133 | ||||
-rw-r--r-- | buildX86/Makefile-variables.mk | 27 | ||||
-rw-r--r-- | buildX86/Package-Release.bash | 76 | ||||
-rw-r--r-- | buildX86/project.xml | 27 |
5 files changed, 631 insertions, 0 deletions
diff --git a/buildX86/Makefile-Release.mk b/buildX86/Makefile-Release.mk new file mode 100644 index 0000000..7419a76 --- /dev/null +++ b/buildX86/Makefile-Release.mk @@ -0,0 +1,368 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a -pre and a -post target defined where you can add customized code. +# +# This makefile implements configuration specific macros and targets. + + +# Environment +MKDIR=mkdir +CP=cp +GREP=grep +NM=nm +CCADMIN=CCadmin +RANLIB=ranlib +CC=${CROSS_COMPILE}gcc +CCC=${CROSS_COMPILE}g++ +CXX=${CROSS_COMPILE}g++ +FC=${CROSS_COMPILE}gfortran +AS=${CROSS_COMPILE}as + +# Macros +CND_PLATFORM=GNU-Linux-x86 +CND_DLIB_EXT=so +CND_CONF=Release +CND_DISTDIR=dist +CND_BUILDDIR=build + +# Include project Makefile +include Makefile + +# Object Directory +OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM} + +# Object Files +OBJECTFILES= \ + ${OBJECTDIR}/Src/ConnectionInfo.o \ + ${OBJECTDIR}/Src/Console.o \ + ${OBJECTDIR}/Src/IP/MostIpc.o \ + ${OBJECTDIR}/Src/IP/MostMsg.o \ + ${OBJECTDIR}/Src/IP/MostMsgTx.o \ + ${OBJECTDIR}/Src/IP/MsgAddr.o \ + ${OBJECTDIR}/Src/IP/MsgFilter.o \ + ${OBJECTDIR}/Src/MacAddr.o \ + ${OBJECTDIR}/Src/Main.o \ + ${OBJECTDIR}/Src/Network/Network.o \ + ${OBJECTDIR}/Src/Network/Network_CB.o \ + ${OBJECTDIR}/Src/Network/Network_Private.o \ + ${OBJECTDIR}/Src/Network/NetworkDevice.o \ + ${OBJECTDIR}/Src/Network/NetworkDeviceListener.o \ + ${OBJECTDIR}/Src/Network/NodeDatabase.o \ + ${OBJECTDIR}/Src/Network/IndustrialStack.o \ + ${OBJECTDIR}/Src/Network/IndustrialStack_LLD.o \ + ${OBJECTDIR}/Src/Network/IndustrialStack_MNS.o \ + ${OBJECTDIR}/Src/Network/base/Board.o \ + ${OBJECTDIR}/Src/Network/base/DriverConfiguration.o \ + ${OBJECTDIR}/Src/Thread.o \ + ${OBJECTDIR}/Src/ScriptXml.o \ + ${OBJECTDIR}/Src/VodXml.o \ + ${OBJECTDIR}/Src/Xml.o \ + ${OBJECTDIR}/mnsl/mns_alm.o \ + ${OBJECTDIR}/mnsl/mns_ams.o \ + ${OBJECTDIR}/mnsl/mns_amsmessage.o \ + ${OBJECTDIR}/mnsl/mns_amspool.o \ + ${OBJECTDIR}/mnsl/mns_base.o \ + ${OBJECTDIR}/mnsl/mns_dl.o \ + ${OBJECTDIR}/mnsl/mns_eh.o \ + ${OBJECTDIR}/mnsl/mns_encoder.o \ + ${OBJECTDIR}/mnsl/mns_lldpool.o \ + ${OBJECTDIR}/mnsl/mns_message.o \ + ${OBJECTDIR}/mnsl/mns_misc.o \ + ${OBJECTDIR}/mnsl/mns_obs.o \ + ${OBJECTDIR}/mnsl/mns_pmchannel.o \ + ${OBJECTDIR}/mnsl/mns_pmfifo.o \ + ${OBJECTDIR}/mnsl/mns_pmp.o \ + ${OBJECTDIR}/mnsl/mns_pool.o \ + ${OBJECTDIR}/mnsl/mns_scheduler.o \ + ${OBJECTDIR}/mnsl/mns_segmentation.o \ + ${OBJECTDIR}/mnsl/mns_timer.o \ + ${OBJECTDIR}/mnsl/mns_telqueue.o \ + ${OBJECTDIR}/mnsl/mns_transceiver.o \ + ${OBJECTDIR}/mnsl/mns_pmcmd.o \ + ${OBJECTDIR}/mnsl/mns_pmfifos.o \ + ${OBJECTDIR}/mnsl/mnsl.o + + +# Include Path +C_INCLUDE=-Imnsl -ISrc -ISrc/IP -ISrc/Network -ISrc/Network/base -I/usr/include/libxml2 ${INCLUDE_PATH} + +# C Compiler Flags +CFLAGS=-c -Wall -O2 -MMD -MP -DNDEBUG ${PROJECT_C_FLAGS} + +# CC Compiler Flags +CCFLAGS=-Wall -O2 -MMD -MP -DNDEBUG ${PROJECT_C_FLAGS} +CXXFLAGS=${CCFLAGS} + +# Fortran Compiler Flags +FFLAGS= + +# Assembler Flags +ASFLAGS= + +# Link Libraries and Options +LDLIBSOPTIONS=-lpthread -lxml2 -lrt ${LIBRARIES_FLAGS} + +# Build Targets +.build-conf: ${BUILD_SUBPROJECTS} + "${MAKE}" -f buildX86/Makefile-${CND_CONF}.mk NetworkManager + +NetworkManager: ${OBJECTFILES} + ${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM} + ${LINK.cc} -o NetworkManager ${OBJECTFILES} ${LDLIBSOPTIONS} + +${OBJECTDIR}/Src/ConnectionInfo.o: Src/ConnectionInfo.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/ConnectionInfo.o Src/ConnectionInfo.cpp + +${OBJECTDIR}/Src/Console.o: Src/Console.c + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Console.o Src/Console.c + +${OBJECTDIR}/Src/IP/MostIpc.o: Src/IP/MostIpc.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostIpc.o Src/IP/MostIpc.cpp + +${OBJECTDIR}/Src/IP/MostMsg.o: Src/IP/MostMsg.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostMsg.o Src/IP/MostMsg.cpp + +${OBJECTDIR}/Src/IP/MostMsgTx.o: Src/IP/MostMsgTx.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostMsgTx.o Src/IP/MostMsgTx.cpp + +${OBJECTDIR}/Src/IP/MsgAddr.o: Src/IP/MsgAddr.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MsgAddr.o Src/IP/MsgAddr.cpp + +${OBJECTDIR}/Src/IP/MsgFilter.o: Src/IP/MsgFilter.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MsgFilter.o Src/IP/MsgFilter.cpp + +${OBJECTDIR}/Src/MacAddr.o: Src/MacAddr.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/MacAddr.o Src/MacAddr.cpp + +${OBJECTDIR}/Src/Main.o: Src/Main.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Main.o Src/Main.cpp + +${OBJECTDIR}/Src/Network/Network.o: Src/Network/Network.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/Network.o Src/Network/Network.cpp + +${OBJECTDIR}/Src/Network/Network_CB.o: Src/Network/Network_CB.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/Network_CB.o Src/Network/Network_CB.cpp + +${OBJECTDIR}/Src/Network/Network_Private.o: Src/Network/Network_Private.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/Network_Private.o Src/Network/Network_Private.cpp + +${OBJECTDIR}/Src/Network/NetworkDevice.o: Src/Network/NetworkDevice.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/NetworkDevice.o Src/Network/NetworkDevice.cpp + +${OBJECTDIR}/Src/Network/NetworkDeviceListener.o: Src/Network/NetworkDeviceListener.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/NetworkDeviceListener.o Src/Network/NetworkDeviceListener.cpp + +${OBJECTDIR}/Src/Network/NodeDatabase.o: Src/Network/NodeDatabase.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/NodeDatabase.o Src/Network/NodeDatabase.cpp + +${OBJECTDIR}/Src/Network/IndustrialStack.o: Src/Network/IndustrialStack.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/IndustrialStack.o Src/Network/IndustrialStack.cpp + +${OBJECTDIR}/Src/Network/IndustrialStack_LLD.o: Src/Network/IndustrialStack_LLD.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/IndustrialStack_LLD.o Src/Network/IndustrialStack_LLD.cpp + +${OBJECTDIR}/Src/Network/IndustrialStack_MNS.o: Src/Network/IndustrialStack_MNS.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Network + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/IndustrialStack_MNS.o Src/Network/IndustrialStack_MNS.cpp + +${OBJECTDIR}/Src/Network/base/Board.o: Src/Network/base/Board.c + ${MKDIR} -p ${OBJECTDIR}/Src/Network/base + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/base/Board.o Src/Network/base/Board.c + +${OBJECTDIR}/Src/Network/base/DriverConfiguration.o: Src/Network/base/DriverConfiguration.c + ${MKDIR} -p ${OBJECTDIR}/Src/Network/base + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Network/base/DriverConfiguration.o Src/Network/base/DriverConfiguration.c + +${OBJECTDIR}/Src/Thread.o: Src/Thread.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Thread.o Src/Thread.cpp + +${OBJECTDIR}/Src/ScriptXml.o: Src/ScriptXml.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/ScriptXml.o Src/ScriptXml.cpp + +${OBJECTDIR}/Src/VodXml.o: Src/VodXml.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/VodXml.o Src/VodXml.cpp + +${OBJECTDIR}/Src/Xml.o: Src/Xml.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Xml.o Src/Xml.cpp + +${OBJECTDIR}/mnsl/mns_alm.o: mnsl/mns_alm.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_alm.o mnsl/mns_alm.c + +${OBJECTDIR}/mnsl/mns_ams.o: mnsl/mns_ams.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_ams.o mnsl/mns_ams.c + +${OBJECTDIR}/mnsl/mns_amsmessage.o: mnsl/mns_amsmessage.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_amsmessage.o mnsl/mns_amsmessage.c + +${OBJECTDIR}/mnsl/mns_amspool.o: mnsl/mns_amspool.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_amspool.o mnsl/mns_amspool.c + +${OBJECTDIR}/mnsl/mns_base.o: mnsl/mns_base.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_base.o mnsl/mns_base.c + +${OBJECTDIR}/mnsl/mns_dl.o: mnsl/mns_dl.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_dl.o mnsl/mns_dl.c + +${OBJECTDIR}/mnsl/mns_eh.o: mnsl/mns_eh.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_eh.o mnsl/mns_eh.c + +${OBJECTDIR}/mnsl/mns_encoder.o: mnsl/mns_encoder.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_encoder.o mnsl/mns_encoder.c + +${OBJECTDIR}/mnsl/mns_lldpool.o: mnsl/mns_lldpool.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_lldpool.o mnsl/mns_lldpool.c + +${OBJECTDIR}/mnsl/mns_message.o: mnsl/mns_message.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_message.o mnsl/mns_message.c + +${OBJECTDIR}/mnsl/mns_misc.o: mnsl/mns_misc.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_misc.o mnsl/mns_misc.c + +${OBJECTDIR}/mnsl/mns_obs.o: mnsl/mns_obs.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_obs.o mnsl/mns_obs.c + +${OBJECTDIR}/mnsl/mns_pmchannel.o: mnsl/mns_pmchannel.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pmchannel.o mnsl/mns_pmchannel.c + +${OBJECTDIR}/mnsl/mns_pmfifo.o: mnsl/mns_pmfifo.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pmfifo.o mnsl/mns_pmfifo.c + +${OBJECTDIR}/mnsl/mns_pmp.o: mnsl/mns_pmp.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pmp.o mnsl/mns_pmp.c + +${OBJECTDIR}/mnsl/mns_pool.o: mnsl/mns_pool.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pool.o mnsl/mns_pool.c + +${OBJECTDIR}/mnsl/mns_scheduler.o: mnsl/mns_scheduler.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_scheduler.o mnsl/mns_scheduler.c + +${OBJECTDIR}/mnsl/mns_segmentation.o: mnsl/mns_segmentation.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_segmentation.o mnsl/mns_segmentation.c + +${OBJECTDIR}/mnsl/mns_timer.o: mnsl/mns_timer.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_timer.o mnsl/mns_timer.c + +${OBJECTDIR}/mnsl/mns_telqueue.o: mnsl/mns_telqueue.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_telqueue.o mnsl/mns_telqueue.c +${OBJECTDIR}/mnsl/mns_transceiver.o: mnsl/mns_transceiver.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_transceiver.o mnsl/mns_transceiver.c + +${OBJECTDIR}/mnsl/mns_pmcmd.o: mnsl/mns_pmcmd.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pmcmd.o mnsl/mns_pmcmd.c + +${OBJECTDIR}/mnsl/mns_pmfifos.o: mnsl/mns_pmfifos.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mns_pmfifos.o mnsl/mns_pmfifos.c + +${OBJECTDIR}/mnsl/mnsl.o: mnsl/mnsl.c + ${MKDIR} -p ${OBJECTDIR}/mnsl + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/mnsl/mnsl.o mnsl/mnsl.c + +# Subprojects +.build-subprojects: + +# Clean Targets +.clean-conf: ${CLEAN_SUBPROJECTS} + ${RM} -r ${CND_BUILDDIR}/${CND_CONF} + ${RM} NetworkManager + +# Subprojects +.clean-subprojects: + +# Enable dependency checking +.dep.inc: .depcheck-impl + +include .dep.inc diff --git a/buildX86/Makefile-impl.mk b/buildX86/Makefile-impl.mk new file mode 100644 index 0000000..96feb83 --- /dev/null +++ b/buildX86/Makefile-impl.mk @@ -0,0 +1,133 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a pre- and a post- target defined where you can add customization code. +# +# This makefile implements macros and targets common to all configurations. +# +# NOCDDL + + +# Building and Cleaning subprojects are done by default, but can be controlled with the SUB +# macro. If SUB=no, subprojects will not be built or cleaned. The following macro +# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf +# and .clean-reqprojects-conf unless SUB has the value 'no' +SUB_no=NO +SUBPROJECTS=${SUB_${SUB}} +BUILD_SUBPROJECTS_=.build-subprojects +BUILD_SUBPROJECTS_NO= +BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}} +CLEAN_SUBPROJECTS_=.clean-subprojects +CLEAN_SUBPROJECTS_NO= +CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}} + + +# Project Name +PROJECTNAME=NetworkManager + +# Active Configuration +DEFAULTCONF=Release +CONF=${DEFAULTCONF} + +# All Configurations +ALLCONFS=Release + + +# build +.build-impl: .build-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf + + +# clean +.clean-impl: .clean-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf + + +# clobber +.clobber-impl: .clobber-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + "${MAKE}" -f buildX86/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \ + done + +# all +.all-impl: .all-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + "${MAKE}" -f buildX86/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \ + done + +# build tests +.build-tests-impl: .build-impl .build-tests-pre + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf + +# run tests +.test-impl: .build-tests-impl .test-pre + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf + +# dependency checking support +.depcheck-impl: + @echo "# This code depends on make tool being used" >.dep.inc + @if [ -n "${MAKE_VERSION}" ]; then \ + echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES}))" >>.dep.inc; \ + echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \ + echo "include \$${DEPFILES}" >>.dep.inc; \ + echo "endif" >>.dep.inc; \ + else \ + echo ".KEEP_STATE:" >>.dep.inc; \ + echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \ + fi + +# configuration validation +.validate-impl: + @if [ ! -f buildX86/Makefile-${CONF}.mk ]; \ + then \ + echo ""; \ + echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \ + echo "See 'make help' for details."; \ + echo "Current directory: " `pwd`; \ + echo ""; \ + fi + @if [ ! -f buildX86/Makefile-${CONF}.mk ]; \ + then \ + exit 1; \ + fi + + +# help +.help-impl: .help-pre + @echo "This makefile supports the following configurations:" + @echo " ${ALLCONFS}" + @echo "" + @echo "and the following targets:" + @echo " build (default target)" + @echo " clean" + @echo " clobber" + @echo " all" + @echo " help" + @echo "" + @echo "Makefile Usage:" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] build" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] clean" + @echo " make [SUB=no] clobber" + @echo " make [SUB=no] all" + @echo " make help" + @echo "" + @echo "Target 'build' will build a specific configuration and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no'," + @echo " also clean subprojects." + @echo "Target 'clobber' will remove all built files from all configurations and," + @echo " unless 'SUB=no', also from subprojects." + @echo "Target 'all' will will build all configurations and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'help' prints this message." + @echo "" + diff --git a/buildX86/Makefile-variables.mk b/buildX86/Makefile-variables.mk new file mode 100644 index 0000000..92eaac7 --- /dev/null +++ b/buildX86/Makefile-variables.mk @@ -0,0 +1,27 @@ +# +# Generated - do not edit! +# +# NOCDDL +# +CND_BASEDIR=`pwd` +CND_BUILDDIR=build +CND_DISTDIR=dist +# Release configuration +CND_PLATFORM_Release=GNU-Linux-x86 +CND_ARTIFACT_DIR_Release=dist/Release/GNU-Linux-x86 +CND_ARTIFACT_NAME_Release=tmp +CND_ARTIFACT_PATH_Release=dist/Release/GNU-Linux-x86/tmp +CND_PACKAGE_DIR_Release=dist/Release/GNU-Linux-x86/package +CND_PACKAGE_NAME_Release=tmp.tar +CND_PACKAGE_PATH_Release=dist/Release/GNU-Linux-x86/package/tmp.tar +# +# include compiler specific variables +# +# dmake command +ROOT:sh = test -f nbproject/private/Makefile-variables.mk || \ + (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk) +# +# gmake command +.PHONY: $(shell test -f nbproject/private/Makefile-variables.mk || (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk)) +# +include nbproject/private/Makefile-variables.mk diff --git a/buildX86/Package-Release.bash b/buildX86/Package-Release.bash new file mode 100644 index 0000000..fb38dd2 --- /dev/null +++ b/buildX86/Package-Release.bash @@ -0,0 +1,76 @@ +#!/bin/bash -x + +# +# Generated - do not edit! +# + +# Macros +TOP=`pwd` +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Release +CND_DISTDIR=dist +CND_BUILDDIR=build +CND_DLIB_EXT=so +NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging +TMPDIRNAME=tmp-packaging +OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/tmp +OUTPUT_BASENAME=tmp +PACKAGE_TOP_DIR=tmp/ + +# Functions +function checkReturnCode +{ + rc=$? + if [ $rc != 0 ] + then + exit $rc + fi +} +function makeDirectory +# $1 directory path +# $2 permission (optional) +{ + mkdir -p "$1" + checkReturnCode + if [ "$2" != "" ] + then + chmod $2 "$1" + checkReturnCode + fi +} +function copyFileToTmpDir +# $1 from-file path +# $2 to-file path +# $3 permission +{ + cp "$1" "$2" + checkReturnCode + if [ "$3" != "" ] + then + chmod $3 "$2" + checkReturnCode + fi +} + +# Setup +cd "${TOP}" +mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package +rm -rf ${NBTMPDIR} +mkdir -p ${NBTMPDIR} + +# Copy files and create directories and links +cd "${TOP}" +makeDirectory "${NBTMPDIR}/tmp/bin" +copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 + + +# Generate tar file +cd "${TOP}" +rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/tmp.tar +cd ${NBTMPDIR} +tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/tmp.tar * +checkReturnCode + +# Cleanup +cd "${TOP}" +rm -rf ${NBTMPDIR} diff --git a/buildX86/project.xml b/buildX86/project.xml new file mode 100644 index 0000000..f4d9328 --- /dev/null +++ b/buildX86/project.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.cnd.makeproject</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/make-project/1"> + <name>app</name> + <c-extensions>c</c-extensions> + <cpp-extensions>cpp</cpp-extensions> + <header-extensions>h</header-extensions> + <sourceEncoding>UTF-8</sourceEncoding> + <make-dep-projects/> + <sourceRootList> + <sourceRootElem>mnsl</sourceRootElem> + <sourceRootElem>Src</sourceRootElem> + </sourceRootList> + <confList> + <confElem> + <name>Release</name> + <type>1</type> + </confElem> + </confList> + <formatting> + <project-formatting-style>false</project-formatting-style> + </formatting> + </data> + </configuration> +</project> |