drivers/timers_rtai/Makefile.in
author Christian Taedcke <hacking@taedcke.com>
Thu, 22 Dec 2011 13:46:00 +0100
changeset 675 e5c5101c4f0b
parent 658 7758d60e9260
child 790 1936110171a2
permissions -rwxr-xr-x
FIXED: - The AVR example now compiles in linux.
- adapted AVR code to current default branch.
454
bc000083297a - add RTAI support
greg
parents:
diff changeset
     1
#! gmake
bc000083297a - add RTAI support
greg
parents:
diff changeset
     2
bc000083297a - add RTAI support
greg
parents:
diff changeset
     3
#
bc000083297a - add RTAI support
greg
parents:
diff changeset
     4
# Copyright (C) 2006 Laurent Bessard
bc000083297a - add RTAI support
greg
parents:
diff changeset
     5
# 
bc000083297a - add RTAI support
greg
parents:
diff changeset
     6
# This file is part of canfestival, a library implementing the canopen
bc000083297a - add RTAI support
greg
parents:
diff changeset
     7
# stack
bc000083297a - add RTAI support
greg
parents:
diff changeset
     8
# 
bc000083297a - add RTAI support
greg
parents:
diff changeset
     9
# This library is free software; you can redistribute it and/or
bc000083297a - add RTAI support
greg
parents:
diff changeset
    10
# modify it under the terms of the GNU Lesser General Public
bc000083297a - add RTAI support
greg
parents:
diff changeset
    11
# License as published by the Free Software Foundation; either
bc000083297a - add RTAI support
greg
parents:
diff changeset
    12
# version 2.1 of the License, or (at your option) any later version.
bc000083297a - add RTAI support
greg
parents:
diff changeset
    13
# 
bc000083297a - add RTAI support
greg
parents:
diff changeset
    14
# This library is distributed in the hope that it will be useful,
bc000083297a - add RTAI support
greg
parents:
diff changeset
    15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
bc000083297a - add RTAI support
greg
parents:
diff changeset
    16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
bc000083297a - add RTAI support
greg
parents:
diff changeset
    17
# Lesser General Public License for more details.
bc000083297a - add RTAI support
greg
parents:
diff changeset
    18
# 
bc000083297a - add RTAI support
greg
parents:
diff changeset
    19
# You should have received a copy of the GNU Lesser General Public
bc000083297a - add RTAI support
greg
parents:
diff changeset
    20
# License along with this library; if not, write to the Free Software
bc000083297a - add RTAI support
greg
parents:
diff changeset
    21
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
bc000083297a - add RTAI support
greg
parents:
diff changeset
    22
# 
bc000083297a - add RTAI support
greg
parents:
diff changeset
    23
bc000083297a - add RTAI support
greg
parents:
diff changeset
    24
CC = SUB_CC
bc000083297a - add RTAI support
greg
parents:
diff changeset
    25
OPT_CFLAGS = -O2
bc000083297a - add RTAI support
greg
parents:
diff changeset
    26
CFLAGS = SUB_OPT_CFLAGS
bc000083297a - add RTAI support
greg
parents:
diff changeset
    27
PROG_CFLAGS = SUB_PROG_CFLAGS
bc000083297a - add RTAI support
greg
parents:
diff changeset
    28
OS_NAME = SUB_OS_NAME
bc000083297a - add RTAI support
greg
parents:
diff changeset
    29
ARCH_NAME = SUB_ARCH_NAME
bc000083297a - add RTAI support
greg
parents:
diff changeset
    30
PREFIX = SUB_PREFIX
bc000083297a - add RTAI support
greg
parents:
diff changeset
    31
TARGET = SUB_TARGET
bc000083297a - add RTAI support
greg
parents:
diff changeset
    32
CAN_DRIVER = SUB_CAN_DRIVER
bc000083297a - add RTAI support
greg
parents:
diff changeset
    33
TIMERS_DRIVER = SUB_TIMERS_DRIVER
bc000083297a - add RTAI support
greg
parents:
diff changeset
    34
bc000083297a - add RTAI support
greg
parents:
diff changeset
    35
INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER) -I../../include/$(TIMERS_DRIVER)
bc000083297a - add RTAI support
greg
parents:
diff changeset
    36
bc000083297a - add RTAI support
greg
parents:
diff changeset
    37
OBJS = $(TIMERS_DRIVER).o
bc000083297a - add RTAI support
greg
parents:
diff changeset
    38
bc000083297a - add RTAI support
greg
parents:
diff changeset
    39
SRC_HFILES = ../../include/$(TIMERS_DRIVER)/timerscfg.h
bc000083297a - add RTAI support
greg
parents:
diff changeset
    40
bc000083297a - add RTAI support
greg
parents:
diff changeset
    41
TARGET_HFILES = $(PREFIX)/include/canfestival/timerscfg.h
bc000083297a - add RTAI support
greg
parents:
diff changeset
    42
bc000083297a - add RTAI support
greg
parents:
diff changeset
    43
all: driver
bc000083297a - add RTAI support
greg
parents:
diff changeset
    44
bc000083297a - add RTAI support
greg
parents:
diff changeset
    45
driver: $(OBJS)
bc000083297a - add RTAI support
greg
parents:
diff changeset
    46
658
7758d60e9260 FIXED: - changed make targets from "%o: %c" to "%.o: %.c" (Patch from irc <oleg_osov>)
Christian Taedcke
parents: 454
diff changeset
    47
%.o: %.c
454
bc000083297a - add RTAI support
greg
parents:
diff changeset
    48
	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
bc000083297a - add RTAI support
greg
parents:
diff changeset
    49
bc000083297a - add RTAI support
greg
parents:
diff changeset
    50
install:
bc000083297a - add RTAI support
greg
parents:
diff changeset
    51
	mkdir -p $(PREFIX)/include/canfestival
bc000083297a - add RTAI support
greg
parents:
diff changeset
    52
	cp $(SRC_HFILES) $(PREFIX)/include/canfestival
bc000083297a - add RTAI support
greg
parents:
diff changeset
    53
bc000083297a - add RTAI support
greg
parents:
diff changeset
    54
uninstall:
bc000083297a - add RTAI support
greg
parents:
diff changeset
    55
	rm -f $(TARGET_HFILES)
bc000083297a - add RTAI support
greg
parents:
diff changeset
    56
bc000083297a - add RTAI support
greg
parents:
diff changeset
    57
clean:
bc000083297a - add RTAI support
greg
parents:
diff changeset
    58
	rm -f $(OBJS)
bc000083297a - add RTAI support
greg
parents:
diff changeset
    59
bc000083297a - add RTAI support
greg
parents:
diff changeset
    60
mrproper: clean