etisserant@15: #! gmake etisserant@15: etisserant@15: # etisserant@15: # Copyright (C) 2006 Laurent Bessard etisserant@15: # etisserant@15: # This file is part of canfestival, a library implementing the canopen etisserant@15: # stack etisserant@15: # etisserant@15: # This library is free software; you can redistribute it and/or etisserant@15: # modify it under the terms of the GNU Lesser General Public etisserant@15: # License as published by the Free Software Foundation; either etisserant@15: # version 2.1 of the License, or (at your option) any later version. etisserant@15: # etisserant@15: # This library is distributed in the hope that it will be useful, etisserant@15: # but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@15: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@15: # Lesser General Public License for more details. etisserant@15: # etisserant@15: # You should have received a copy of the GNU Lesser General Public etisserant@15: # License along with this library; if not, write to the Free Software etisserant@15: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@15: # etisserant@15: etisserant@15: CC = SUB_CC etisserant@15: OPT_CFLAGS = -O2 etisserant@15: CFLAGS = SUB_OPT_CFLAGS etisserant@15: PROG_CFLAGS = SUB_PROG_CFLAGS etisserant@15: LIBS = -lm etisserant@15: SHAREDLIBOPT = -shared etisserant@15: OS_NAME = SUB_OS_NAME etisserant@15: ARCH_NAME = SUB_ARCH_NAME etisserant@15: PREFIX = SUB_PREFIX etisserant@15: TARGET = SUB_TARGET etisserant@15: TIMERS_DRIVER = SUB_TIMERS_DRIVER etisserant@15: CAN_DRIVER = SUB_CAN_DRIVER etisserant@15: LED_DRIVER = SUB_LED_DRIVER etisserant@15: NVRAM_DRIVER = SUB_NVRAM_DRIVER etisserant@15: etisserant@15: INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER) -I../../include/$(TIMERS_DRIVER) etisserant@15: etisserant@15: OBJS = $(LED_DRIVER).o etisserant@15: etisserant@15: all: driver etisserant@15: etisserant@15: driver: $(OBJS) etisserant@15: etisserant@15: %o: %c etisserant@15: $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< etisserant@15: etisserant@15: install: etisserant@15: etisserant@15: uninstall: etisserant@15: etisserant@15: clean: etisserant@40: rm -f $(OBJS) etisserant@15: etisserant@15: mrproper: clean etisserant@15: etisserant@15: