1 |
748 |
lampret |
|
2 |
|
|
all: eth.or32 eth-flash.or32 eth-xess-flash.or32
|
3 |
|
|
|
4 |
|
|
reset.o: reset.S Makefile
|
5 |
|
|
or32-rtems-gcc -c -o reset.o reset.S
|
6 |
|
|
|
7 |
|
|
reset-flash.o: reset-flash.S Makefile
|
8 |
|
|
or32-rtems-gcc -c -o reset-flash.o reset-flash.S
|
9 |
|
|
|
10 |
|
|
reset-xess-flash.o: reset-flash.S Makefile
|
11 |
|
|
or32-rtems-gcc -c -DXESS -o reset-xess-flash.o reset-flash.S
|
12 |
|
|
|
13 |
|
|
uart.o: uart.c Makefile
|
14 |
|
|
or32-rtems-gcc -O2 -c -o uart.o uart.c
|
15 |
|
|
|
16 |
|
|
uart-xess.o: uart.c Makefile
|
17 |
|
|
or32-rtems-gcc -O2 -DXESS -c -o uart-xess.o uart.c
|
18 |
|
|
|
19 |
|
|
eth.o: eth.c Makefile
|
20 |
|
|
or32-rtems-gcc -O2 -c -o eth.o eth.c
|
21 |
|
|
|
22 |
|
|
eth-xess.o: eth.c Makefile
|
23 |
|
|
or32-rtems-gcc -O2 -DXESS -c -o eth-xess.o eth.c
|
24 |
|
|
|
25 |
|
|
dhry.o: dhry.c Makefile dhry.h
|
26 |
|
|
or32-rtems-gcc -O2 -msoft-div -c -o dhry.o dhry.c
|
27 |
|
|
|
28 |
|
|
camera_test.o: camera_test.c Makefile
|
29 |
|
|
or32-rtems-gcc -O2 -c -o camera_test.o camera_test.c
|
30 |
|
|
|
31 |
|
|
eth.or32: reset.o uart.o eth.o camera_test.o dhry.o Makefile
|
32 |
|
|
or32-rtems-ld -Tram.ld -o eth.or32 reset.o uart.o eth.o camera_test.o dhry.o
|
33 |
|
|
or32-rtems-objcopy -O binary eth.or32 eth.bin
|
34 |
|
|
../utils/bin2flimg 4 eth.bin > eth.mem
|
35 |
|
|
../utils/bin2srec eth.bin > eth.srec
|
36 |
|
|
|
37 |
|
|
eth-flash.or32: reset-flash.o uart.o eth.o camera_test.o dhry.o Makefile
|
38 |
|
|
or32-rtems-ld -Txess.ld -o eth-flash.or32 reset-flash.o uart.o eth.o camera_test.o dhry.o
|
39 |
|
|
or32-rtems-objcopy -O binary eth-flash.or32 eth-flash.bin
|
40 |
|
|
../utils/bin2flimg 4 eth-flash.bin > /tmp/or32_flash.img
|
41 |
|
|
../utils/bin2flimg 1 eth-flash.bin > eth-flash_byte.img
|
42 |
|
|
|
43 |
|
|
eth-xess-flash.or32: reset-xess-flash.o uart-xess.o eth-xess.o camera_test.o dhry.o Makefile
|
44 |
|
|
or32-rtems-ld -Txess.ld -o eth-xess-flash.or32 reset-xess-flash.o uart-xess.o eth-xess.o camera_test.o dhry.o
|
45 |
|
|
or32-rtems-objcopy -O binary eth-xess-flash.or32 eth-xess-flash.bin
|
46 |
|
|
../utils/bin2flimg 1 eth-xess-flash.bin > eth-xess-flash_byte.img
|
47 |
|
|
../utils/bin2srec eth-xess-flash.bin > eth-xess-flash.srec
|
48 |
|
|
|
49 |
|
|
clean:
|
50 |
|
|
rm -f *.o *.or32 *.bin *.srec *.mem *.img
|