src/Makefile.in
changeset 629 b9274b595650
parent 619 96f84395154f
child 658 7758d60e9260
equal deleted inserted replaced
628:9e496a2aadca 629:b9274b595650
     1 #! gmake
     1 #! gmake
     2 
     2 
     3 #
     3 #
     4 # Copyright (C) 2006 Laurent Bessard
     4 # Copyright (C) 2006 Laurent Bessard
     5 # 
     5 #
     6 # This file is part of canfestival, a library implementing the canopen
     6 # This file is part of canfestival, a library implementing the canopen
     7 # stack
     7 # stack
     8 # 
     8 #
     9 # This library is free software; you can redistribute it and/or
     9 # This library is free software; you can redistribute it and/or
    10 # modify it under the terms of the GNU Lesser General Public
    10 # modify it under the terms of the GNU Lesser General Public
    11 # License as published by the Free Software Foundation; either
    11 # License as published by the Free Software Foundation; either
    12 # version 2.1 of the License, or (at your option) any later version.
    12 # version 2.1 of the License, or (at your option) any later version.
    13 # 
    13 #
    14 # This library is distributed in the hope that it will be useful,
    14 # This library is distributed in the hope that it will be useful,
    15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    17 # Lesser General Public License for more details.
    17 # Lesser General Public License for more details.
    18 # 
    18 #
    19 # You should have received a copy of the GNU Lesser General Public
    19 # You should have received a copy of the GNU Lesser General Public
    20 # License along with this library; if not, write to the Free Software
    20 # License along with this library; if not, write to the Free Software
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    22 # 
    22 #
    23 
    23 
    24 ifneq ($(KERNELRELEASE),)
    24 ifneq ($(KERNELRELEASE),)
    25 # Kbuild part of Makefile
    25 # Kbuild part of Makefile
    26 obj-m := canfestival.o
    26 obj-m := canfestival.o
    27 canfestival-objs := $(OBJS)
    27 canfestival-objs := $(OBJS)
    58 
    58 
    59 ifeq ($(TARGET),unix)
    59 ifeq ($(TARGET),unix)
    60 OPT_CFLAGS = -O2
    60 OPT_CFLAGS = -O2
    61 endif
    61 endif
    62 
    62 
    63 # # # # Options # # # # 
    63 # # # # Options # # # #
    64 
    64 
    65 all: canfestival
    65 all: canfestival
    66 
    66 
    67 ifeq ($(TIMERS_DRIVER), timers_kernel)
    67 ifeq ($(TIMERS_DRIVER), timers_kernel)
       
    68 USE_KERNEL_TIMER = true
       
    69 endif
       
    70 ifeq ($(TIMERS_DRIVER), timers_kernel_xeno)
       
    71 USE_KERNEL_TIMER = true
       
    72 endif
       
    73 
       
    74 ifeq ($(USE_KERNEL_TIMER), true)
    68 OBJS := $(shell echo $(OBJS) | sed "s:$(TARGET)_::g")
    75 OBJS := $(shell echo $(OBJS) | sed "s:$(TARGET)_::g")
    69 OBJS += symbols.o
    76 OBJS += symbols.o
    70 OBJS += ../drivers/unix/libcanfestival_$(TARGET).o
    77 OBJS += ../drivers/unix/libcanfestival_$(TARGET).o
    71 EXTRA_CFLAGS := $(shell echo $(INCLUDES) | sed "s:-I:-I$(src)/:g")
    78 EXTRA_CFLAGS := $(shell echo $(INCLUDES) | sed "s:-I:-I$(src)/:g")
    72 EXTRA_CFLAGS += $(PROG_CFLAGS)
    79 EXTRA_CFLAGS += $(PROG_CFLAGS)