drivers/Makefile.in
changeset 0 4472ee7c6c3e
child 3 d9cf34cd6823
equal deleted inserted replaced
-1:000000000000 0:4472ee7c6c3e
       
     1 #! gmake
       
     2 
       
     3 #
       
     4 # Copyright (C) 2006 Laurent Bessard
       
     5 # 
       
     6 # This file is part of canfestival, a library implementing the canopen
       
     7 # stack
       
     8 # 
       
     9 # This library is free software; you can redistribute it and/or
       
    10 # modify it under the terms of the GNU Lesser General Public
       
    11 # License as published by the Free Software Foundation; either
       
    12 # version 2.1 of the License, or (at your option) any later version.
       
    13 # 
       
    14 # This library is distributed in the hope that it will be useful,
       
    15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    17 # Lesser General Public License for more details.
       
    18 # 
       
    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
       
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    22 # 
       
    23 
       
    24 TARGET = SUB_TARGET
       
    25 CAN_DRIVER = SUB_CAN_DRIVER
       
    26 TIMERS_DRIVER = SUB_TIMERS_DRIVER
       
    27 
       
    28 all: driver
       
    29 
       
    30 driver:
       
    31 ifneq ($(TIMERS_DRIVER),timers_)
       
    32 	$(MAKE) -C $(TIMERS_DRIVER) $@
       
    33 endif
       
    34 
       
    35 ifneq ($(CAN_DRIVER),can_)
       
    36 	$(MAKE) -C $(CAN_DRIVER) $@
       
    37 endif
       
    38 	$(MAKE) -C $(TARGET) $@
       
    39 
       
    40 install:
       
    41 ifneq ($(TIMERS_DRIVER),timers_)
       
    42 	$(MAKE) -C $(TIMERS_DRIVER) $@
       
    43 endif
       
    44 
       
    45 ifneq ($(CAN_DRIVER),can_)
       
    46 	$(MAKE) -C $(CAN_DRIVER) $@
       
    47 endif
       
    48 	$(MAKE) -C $(TARGET) $@
       
    49 
       
    50 uninstall:
       
    51 ifneq ($(TIMERS_DRIVER),timers_)
       
    52 	$(MAKE) -C $(TIMERS_DRIVER) $@
       
    53 endif
       
    54 
       
    55 ifneq ($(CAN_DRIVER),can_)
       
    56 	$(MAKE) -C $(CAN_DRIVER) $@
       
    57 endif
       
    58 	$(MAKE) -C $(TARGET) $@
       
    59 
       
    60 clean:
       
    61 ifneq ($(TIMERS_DRIVER),timers_)
       
    62 	$(MAKE) -C $(TIMERS_DRIVER) $@
       
    63 endif
       
    64 
       
    65 ifneq ($(CAN_DRIVER),can_)
       
    66 	$(MAKE) -C $(CAN_DRIVER) $@
       
    67 endif
       
    68 	$(MAKE) -C $(TARGET) $@
       
    69 
       
    70 mrproper: clean
       
    71 ifneq ($(TIMERS_DRIVER),timers_)
       
    72 	$(MAKE) -C $(TIMERS_DRIVER) $@
       
    73 endif
       
    74 
       
    75 ifneq ($(CAN_DRIVER),can_)
       
    76 	$(MAKE) -C $(CAN_DRIVER) $@
       
    77 endif
       
    78 	$(MAKE) -C $(TARGET) $@
       
    79 
       
    80