examples/ecos_lpc2138_sja1000/src/Makefile.in
changeset 93 16c8ceea8f18
parent 92 0d84d95790d9
child 94 bdf4c86be6b2
equal deleted inserted replaced
92:0d84d95790d9 93:16c8ceea8f18
     1 export PREFIX := /usr/local/ecos/2138_install
       
     2 export COMMAND_PREFIX := arm-elf-
       
     3 export CC := $(COMMAND_PREFIX)gcc
       
     4 export OBJCOPY := $(COMMAND_PREFIX)objcopy
       
     5 
       
     6 ECOS_GLOBAL_CFLAGS=-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Os -ffunction-sections -fdata-sections -fno-exceptions -finline-functions
       
     7 ECOS_GLOBAL_LDFLAGS=-mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -nostdlib
       
     8 
       
     9 all: 
       
    10 
       
    11 lpc2138.o  : lpc2138.c  lpc2138.h types.h
       
    12 s1d13706.o : s1d13706.c lpc2138.h types.h
       
    13 sja1000.o  : sja1000.c  lpc2138.h types.h
       
    14 
       
    15 .c.o:
       
    16 	$(CC) -g -c $(ECOS_GLOBAL_CFLAGS) -I$(PREFIX)/include -I$(PREFIX)/lib/driver $*.c
       
    17 
       
    18 clean:
       
    19 	rm -f *.hex *.elf *.o *~