author | greg |
Wed, 14 Oct 2009 16:37:37 +0200 | |
changeset 609 | c59dce78bbad |
parent 93 | 16c8ceea8f18 |
child 618 | 564a4a9862b1 |
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 |
|
39 |
$(MAKE) -C $(TARGET) $@ |
|
40 |
||
41 |
install: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
42 |
|
0 | 43 |
ifneq ($(TIMERS_DRIVER),timers_) |
44 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
45 |
endif |
|
46 |
||
47 |
ifneq ($(CAN_DRIVER),can_) |
|
48 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
49 |
endif |
|
50 |
$(MAKE) -C $(TARGET) $@ |
|
51 |
||
52 |
uninstall: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
53 |
|
0 | 54 |
ifneq ($(TIMERS_DRIVER),timers_) |
55 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
56 |
endif |
|
57 |
||
58 |
ifneq ($(CAN_DRIVER),can_) |
|
59 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
60 |
endif |
|
61 |
$(MAKE) -C $(TARGET) $@ |
|
62 |
||
63 |
clean: |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
64 |
|
0 | 65 |
ifneq ($(TIMERS_DRIVER),timers_) |
66 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
67 |
endif |
|
68 |
||
69 |
ifneq ($(CAN_DRIVER),can_) |
|
70 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
71 |
endif |
|
72 |
$(MAKE) -C $(TARGET) $@ |
|
73 |
||
74 |
mrproper: clean |
|
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
3
diff
changeset
|
75 |
|
0 | 76 |
ifneq ($(TIMERS_DRIVER),timers_) |
77 |
$(MAKE) -C $(TIMERS_DRIVER) $@ |
|
78 |
endif |
|
79 |
||
80 |
ifneq ($(CAN_DRIVER),can_) |
|
81 |
$(MAKE) -C $(CAN_DRIVER) $@ |
|
82 |
endif |
|
83 |
$(MAKE) -C $(TARGET) $@ |
|
84 |
||
85 |