drivers/timers_rtai/Makefile.in
author bmakuc <blaz.makuc@smarteh.si>
Fri, 24 Mar 2017 10:52:38 +0100
changeset 796 1c87f7a8cb8a
parent 790 1936110171a2
permissions -rwxr-xr-x
Send timeout is set to 10 ms. Without timeout PLC can be blocked by CAN driver: if CAN bus is not connected to controller CAN driver never returns and therfore PLC application halts. This is a temporary solution.
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
790
1936110171a2 Honor DESTDIR in install rules
Samuel Martin <s.martin49@gmail.com>
parents: 658
diff changeset
    41
TARGET_HFILES = $(DESTDIR)$(PREFIX)/include/canfestival/timerscfg.h
454
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:
790
1936110171a2 Honor DESTDIR in install rules
Samuel Martin <s.martin49@gmail.com>
parents: 658
diff changeset
    51
	mkdir -p $(DESTDIR)$(PREFIX)/include/canfestival
1936110171a2 Honor DESTDIR in install rules
Samuel Martin <s.martin49@gmail.com>
parents: 658
diff changeset
    52
	cp $(SRC_HFILES) $(DESTDIR)$(PREFIX)/include/canfestival
454
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