etisserant@279: # etisserant@279: # Copyright (C) 2006 Laurent Bessard etisserant@279: # etisserant@279: # This file is part of canfestival, a library implementing the canopen etisserant@279: # stack etisserant@279: # etisserant@279: # This library is free software; you can redistribute it and/or etisserant@279: # modify it under the terms of the GNU Lesser General Public etisserant@279: # License as published by the Free Software Foundation; either etisserant@279: # version 2.1 of the License, or (at your option) any later version. etisserant@279: # etisserant@279: # This library is distributed in the hope that it will be useful, etisserant@279: # but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@279: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@279: # Lesser General Public License for more details. etisserant@279: # etisserant@279: # You should have received a copy of the GNU Lesser General Public etisserant@279: # License along with this library; if not, write to the Free Software etisserant@279: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@279: # etisserant@279: from os.path import join as opj etisserant@279: etisserant@279: CC = "SUB_CC" etisserant@279: PROG_CFLAGS = "SUB_PROG_CFLAGS" etisserant@279: EXE_CFLAGS = "SUB_EXE_CFLAGS" etisserant@279: OS_NAME = "SUB_OS_NAME" etisserant@279: ARCH_NAME = "SUB_ARCH_NAME" etisserant@279: PREFIX = "SUB_PREFIX" etisserant@279: TARGET = "SUB_TARGET" etisserant@279: CAN_DRIVER = "SUB_CAN_DRIVER" etisserant@279: TIMERS_DRIVER = "SUB_TIMERS_DRIVER" etisserant@279: etisserant@279: etisserant@279: def getCFLAGS(Cpth): etisserant@279: ipth = opj(Cpth, "include") etisserant@397: return PROG_CFLAGS + ' -I"' + ipth + '" -I"' + opj(ipth, TARGET) + '" -I"' + opj(ipth, CAN_DRIVER) + '" -I"' + opj(ipth,TIMERS_DRIVER) + '"' etisserant@279: etisserant@279: def getLDFLAGS(Cpth): etisserant@397: return EXE_CFLAGS + ' "' + opj(Cpth,"src","libcanfestival.a") + '" "' + opj(Cpth,"drivers", TARGET, "libcanfestival_%s.a"%TARGET)+ '"' etisserant@397: Edouard@769: # herafter is appended DLL_LIST declaration Edouard@769: