author | etisserant |
Thu, 31 Aug 2006 10:28:53 +0200 | |
changeset 47 | 8a1047ab51f4 |
parent 40 | ddeeb217ed71 |
permissions | -rw-r--r-- |
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
1 |
#! gmake |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
2 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
3 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
4 |
# Copyright (C) 2006 Laurent Bessard |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
5 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
6 |
# This file is part of canfestival, a library implementing the canopen |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
7 |
# stack |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
8 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
9 |
# This library is free software; you can redistribute it and/or |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
10 |
# modify it under the terms of the GNU Lesser General Public |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
11 |
# License as published by the Free Software Foundation; either |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
12 |
# version 2.1 of the License, or (at your option) any later version. |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
13 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
14 |
# This library is distributed in the hope that it will be useful, |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
15 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
16 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
17 |
# Lesser General Public License for more details. |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
18 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
19 |
# You should have received a copy of the GNU Lesser General Public |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
20 |
# License along with this library; if not, write to the Free Software |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
21 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
22 |
# |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
23 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
24 |
CC = SUB_CC |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
25 |
OPT_CFLAGS = -O2 |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
26 |
CFLAGS = SUB_OPT_CFLAGS |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
27 |
PROG_CFLAGS = SUB_PROG_CFLAGS |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
28 |
LIBS = -lm |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
29 |
SHAREDLIBOPT = -shared |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
30 |
OS_NAME = SUB_OS_NAME |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
31 |
ARCH_NAME = SUB_ARCH_NAME |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
32 |
PREFIX = SUB_PREFIX |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
33 |
TARGET = SUB_TARGET |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
34 |
TIMERS_DRIVER = SUB_TIMERS_DRIVER |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
35 |
CAN_DRIVER = SUB_CAN_DRIVER |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
36 |
LED_DRIVER = SUB_LED_DRIVER |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
37 |
NVRAM_DRIVER = SUB_NVRAM_DRIVER |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
38 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
39 |
INCLUDES = -I../../include -I../../include/$(TARGET) -I../../include/$(CAN_DRIVER) -I../../include/$(TIMERS_DRIVER) |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
40 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
41 |
OBJS = $(LED_DRIVER).o |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
42 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
43 |
all: driver |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
44 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
45 |
driver: $(OBJS) |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
46 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
47 |
%o: %c |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
48 |
$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
49 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
50 |
install: |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
51 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
52 |
uninstall: |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
53 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
54 |
clean: |
40
ddeeb217ed71
Updated configure and fixes in Makefiles.in for cygwin compiling.
etisserant
parents:
15
diff
changeset
|
55 |
rm -f $(OBJS) |
15
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
56 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
57 |
mrproper: clean |
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
58 |
|
e930a0e817de
Re-orginized led and nvram related code, for generic target.
etisserant
parents:
diff
changeset
|
59 |