author | Christian Taedcke <Christian.Taedcke@ica-traffic.de> |
Fri, 19 Feb 2010 08:18:40 +0100 | |
changeset 639 | 27c0a025acf3 |
parent 621 | 609aff93810a |
permissions | -rw-r--r-- |
0 | 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: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
31 |
|
0 | 32 |
ifneq ($(TIMERS_DRIVER),timers_) |
33 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
34 |
endif |
|
35 |
||
36 |
ifneq ($(CAN_DRIVER),can_) |
|
37 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
38 |
endif |
|
618 | 39 |
ifneq ($(TARGET),none) |
620
e56af5521e0e
fixed typo in makefile
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents:
618
diff
changeset
|
40 |
$(MAKE) -C $(TARGET) $@ |
618 | 41 |
endif |
0 | 42 |
|
43 |
install: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
44 |
|
0 | 45 |
ifneq ($(TIMERS_DRIVER),timers_) |
46 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
47 |
endif |
|
48 |
||
49 |
ifneq ($(CAN_DRIVER),can_) |
|
50 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
51 |
endif |
|
618 | 52 |
ifneq ($(TARGET),none) |
621
609aff93810a
fixed typo in makefile
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents:
620
diff
changeset
|
53 |
$(MAKE) -C $(TARGET) $@ |
618 | 54 |
endif |
0 | 55 |
|
56 |
uninstall: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
57 |
|
0 | 58 |
ifneq ($(TIMERS_DRIVER),timers_) |
59 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
60 |
endif |
|
61 |
||
62 |
ifneq ($(CAN_DRIVER),can_) |
|
63 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
64 |
endif |
|
618 | 65 |
ifneq ($(TARGET),none) |
621
609aff93810a
fixed typo in makefile
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents:
620
diff
changeset
|
66 |
$(MAKE) -C $(TARGET) $@ |
618 | 67 |
endif |
0 | 68 |
|
69 |
clean: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
70 |
|
0 | 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 |
|
618 | 78 |
ifneq ($(TARGET),none) |
621
609aff93810a
fixed typo in makefile
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents:
620
diff
changeset
|
79 |
$(MAKE) -C $(TARGET) $@ |
618 | 80 |
endif |
0 | 81 |
|
82 |
mrproper: clean |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
83 |
|
0 | 84 |
ifneq ($(TIMERS_DRIVER),timers_) |
85 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
86 |
endif |
|
87 |
||
88 |
ifneq ($(CAN_DRIVER),can_) |
|
89 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
90 |
endif |
|
618 | 91 |
ifneq ($(TARGET),none) |
621
609aff93810a
fixed typo in makefile
Edouard TISSERANT <edouard.tisserant@gmail.com>
parents:
620
diff
changeset
|
92 |
$(MAKE) -C $(TARGET) $@ |
618 | 93 |
endif |
0 | 94 |
|
95 |