greg@267: #! gmake greg@267: greg@267: # greg@267: # Copyright (C) 2006 Laurent Bessard greg@267: # greg@267: # This file is part of canfestival, a library implementing the canopen greg@267: # stack greg@267: # greg@267: # This library is free software; you can redistribute it and/or greg@267: # modify it under the terms of the GNU Lesser General Public greg@267: # License as published by the Free Software Foundation; either greg@267: # version 2.1 of the License, or (at your option) any later version. greg@267: # greg@267: # This library is distributed in the hope that it will be useful, greg@267: # but WITHOUT ANY WARRANTY; without even the implied warranty of greg@267: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU greg@267: # Lesser General Public License for more details. greg@267: # greg@267: # You should have received a copy of the GNU Lesser General Public greg@267: # License along with this library; if not, write to the Free Software greg@267: # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA greg@267: # greg@267: greg@267: CC = mingw32-g++ greg@267: OPT_CFLAGS = -O2 greg@267: CFLAGS = $(OPT_CFLAGS) greg@267: PROG_CFLAGS = greg@267: OS_NAME = MINGW32 greg@267: ARCH_NAME = x86 greg@267: PREFIX = /usr/local greg@267: TARGET = win32 greg@267: CAN_DRIVER = can_peak_win32 greg@267: TIMERS_DRIVER = timers_win32 greg@267: greg@267: INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER) -I../../include/$(TIMERS_DRIVER) greg@267: greg@267: OBJS = $(TIMERS_DRIVER).o greg@267: greg@267: SRC_HFILES = ../../include/$(TIMERS_DRIVER)/timerscfg.h greg@267: greg@267: TARGET_HFILES = $(PREFIX)/include/canfestival/timerscfg.h greg@267: greg@267: all: driver greg@267: greg@267: driver: $(OBJS) greg@267: greg@267: %o: %cpp greg@267: $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< greg@267: greg@267: install: greg@267: mkdir -p $(PREFIX)/include/canfestival greg@267: cp $(SRC_HFILES) $(PREFIX)/include/canfestival greg@267: greg@267: uninstall: greg@267: rm -f $(TARGET_HFILES) greg@267: greg@267: clean: greg@267: rm -f $(OBJS) greg@267: greg@267: mrproper: clean greg@267: greg@267: