author | etisserant |
Fri, 08 Feb 2008 14:52:48 +0100 | |
changeset 385 | fff25f16c923 |
parent 381 | 854c43cdc24a |
child 391 | 7802a7d5584f |
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 |
|
354 | 25 |
WX = SUB_WX |
381 | 26 |
ENABLE_LSS = SUB_ENABLE_LSS |
0 | 27 |
|
354 | 28 |
ifeq ($(TARGET),win32) |
29 |
BLD_TEST=1 |
|
30 |
endif |
|
31 |
ifeq ($(TARGET),unix) |
|
32 |
BLD_TEST=1 |
|
0 | 33 |
endif |
166
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
158
diff
changeset
|
34 |
|
354 | 35 |
ifeq ($(WX),1) |
36 |
define build_command_seq_wx |
|
329 | 37 |
$(MAKE) -C DS401_Master $@ |
38 |
$(MAKE) -C DS401_Slave_Gui $@ |
|
354 | 39 |
endef |
0 | 40 |
endif |
41 |
||
354 | 42 |
ifdef BLD_TEST |
381 | 43 |
ifeq ($(ENABLE_LSS),1) |
44 |
define build_command_seq |
|
45 |
$(MAKE) -C TestMasterSlave $@ |
|
46 |
$(MAKE) -C TestMasterSlaveLSS $@ |
|
47 |
$(MAKE) -C TestMasterMicroMod $@ |
|
48 |
$(build_command_seq_wx) |
|
49 |
endef |
|
50 |
else |
|
354 | 51 |
define build_command_seq |
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
52 |
$(MAKE) -C TestMasterSlave $@ |
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
53 |
$(MAKE) -C TestMasterMicroMod $@ |
354 | 54 |
$(build_command_seq_wx) |
55 |
endef |
|
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
56 |
endif |
381 | 57 |
endif |
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
58 |
|
0 | 59 |
ifeq ($(TARGET),hc12) |
354 | 60 |
define build_command_seq |
0 | 61 |
$(MAKE) -C gene_SYNC_HCS12 $@ |
354 | 62 |
endef |
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
63 |
endif |
166
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
158
diff
changeset
|
64 |
|
b6fbc1c59a44
Added a MicroMod Master sample in examples/TestMasterMicroMod. Fixed some SDO abort code and callback problem in sdo.c.
etisserant
parents:
158
diff
changeset
|
65 |
|
354 | 66 |
all: |
67 |
$(build_command_seq) |
|
68 |
||
69 |
clean: |
|
70 |
$(build_command_seq) |
|
71 |
||
373 | 72 |
install: |
73 |
$(build_command_seq) |
|
74 |
||
0 | 75 |
mrproper: clean |
354 | 76 |
$(build_command_seq) |