examples/ecos_lpc2138_sja1000/src/Makefile.in
author frdupin
Mon, 29 Jan 2007 14:33:45 +0100
changeset 77 7b552428b48a
parent 19 93359140e18e
permissions -rw-r--r--
Add comment in config.h
19
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     1
export PREFIX := /usr/local/ecos/2138_install
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     2
export COMMAND_PREFIX := arm-elf-
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     3
export CC := $(COMMAND_PREFIX)gcc
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     4
export OBJCOPY := $(COMMAND_PREFIX)objcopy
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     5
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     6
ECOS_GLOBAL_CFLAGS=-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Os -ffunction-sections -fdata-sections -fno-exceptions -finline-functions
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     7
ECOS_GLOBAL_LDFLAGS=-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -nostdlib
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     8
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
     9
all: 
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    10
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    11
lpc2138.o  : lpc2138.c  lpc2138.h types.h
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    12
s1d13706.o : s1d13706.c lpc2138.h types.h
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    13
sja1000.o  : sja1000.c  lpc2138.h types.h
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    14
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    15
.c.o:
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    16
	$(CC) -g -c $(ECOS_GLOBAL_CFLAGS) -I$(PREFIX)/include -I$(PREFIX)/lib/driver $*.c
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    17
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    18
clean:
93359140e18e Add some files of the CANopen graphic terminal project.
oremeq
parents:
diff changeset
    19
	rm -f *.hex *.elf *.o *~