author | etisserant |
Fri, 01 Feb 2008 18:06:55 +0100 | |
changeset 378 | d2abf6c8c27b |
parent 373 | fc32e8a796ae |
child 381 | 854c43cdc24a |
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 |
0 | 26 |
|
354 | 27 |
ifeq ($(TARGET),win32) |
28 |
BLD_TEST=1 |
|
29 |
endif |
|
30 |
ifeq ($(TARGET),unix) |
|
31 |
BLD_TEST=1 |
|
0 | 32 |
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
|
33 |
|
354 | 34 |
ifeq ($(WX),1) |
35 |
define build_command_seq_wx |
|
329 | 36 |
$(MAKE) -C DS401_Master $@ |
37 |
$(MAKE) -C DS401_Slave_Gui $@ |
|
354 | 38 |
endef |
0 | 39 |
endif |
40 |
||
354 | 41 |
ifdef BLD_TEST |
42 |
define build_command_seq |
|
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
43 |
$(MAKE) -C TestMasterSlave $@ |
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
44 |
$(MAKE) -C TestMasterMicroMod $@ |
354 | 45 |
$(build_command_seq_wx) |
46 |
endef |
|
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
47 |
endif |
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
48 |
|
0 | 49 |
ifeq ($(TARGET),hc12) |
354 | 50 |
define build_command_seq |
0 | 51 |
$(MAKE) -C gene_SYNC_HCS12 $@ |
354 | 52 |
endef |
267
96c688ebcde7
Add win32 target (--can=win32) to compile with msys and mingw32
greg
parents:
248
diff
changeset
|
53 |
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
|
54 |
|
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
|
55 |
|
354 | 56 |
all: |
57 |
$(build_command_seq) |
|
58 |
||
59 |
clean: |
|
60 |
$(build_command_seq) |
|
61 |
||
373 | 62 |
install: |
63 |
$(build_command_seq) |
|
64 |
||
0 | 65 |
mrproper: clean |
354 | 66 |
$(build_command_seq) |