comparison loadtools/Makefile @ 84:ccc5161848c7

loadtools: support building for GTA0x AP
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 20 Aug 2013 04:51:15 +0000
parents e2698daf40d1
children 57b8dbb029c2
comparison
equal deleted inserted replaced
83:ebe258a85813 84:ccc5161848c7
3 PROGS= fc-iram fc-loadtool fc-xram 3 PROGS= fc-iram fc-loadtool fc-xram
4 LASRC= ../target-utils/loadagent 4 LASRC= ../target-utils/loadagent
5 SCRIPTS=scripts/pirelli.config scripts/pirelli.init 5 SCRIPTS=scripts/pirelli.config scripts/pirelli.init
6 INSTBIN=/usr/local/bin 6 INSTBIN=/usr/local/bin
7 INSTSCR=/usr/local/share/freecalypso 7 INSTSCR=/usr/local/share/freecalypso
8 EXTRA_OBJ=
8 9
9 IRAM_OBJS= defpath.o hexdecode.o hwparam.o hwparamstubs.o romload.o \ 10 IRAM_OBJS= defpath.o hexdecode.o hwparam.o hwparamstubs.o romload.o \
10 sercomm.o sertool.o srecreader.o ttypassthru.o 11 sercomm.o sertool.o srecreader.o ttypassthru.o ${EXTRA_OBJ}
11 12
12 LOADTOOL_OBJS= crc32tab.o defpath.o flerase.o flprogbin.o flutil.o hexdecode.o\ 13 LOADTOOL_OBJS= crc32tab.o defpath.o flerase.o flprogbin.o flutil.o hexdecode.o\
13 hwparam.o labaud.o ltdispatch.o ltdump.o ltexit.o ltflash.o \ 14 hwparam.o labaud.o ltdispatch.o ltdump.o ltexit.o ltflash.o \
14 ltmain.o ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \ 15 ltmain.o ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \
15 srecreader.o tpinterf.o tpinterf2.o tpinterf3.o 16 srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
16 17
17 XRAM_OBJS= chainload.o clmain.o defpath.o hexdecode.o hwparam.o \ 18 XRAM_OBJS= chainload.o clmain.o defpath.o hexdecode.o hwparam.o \
18 hwparamstubs.o initscript.o labaud.o romload.o sercomm.o \ 19 hwparamstubs.o initscript.o labaud.o romload.o sercomm.o \
19 srecreader.o tpinterf.o ttypassthru.o 20 srecreader.o tpinterf.o ttypassthru.o ${EXTRA_OBJ}
20 21
21 all: ${PROGS} 22 all: ${PROGS}
22 23
23 fc-iram: ${IRAM_OBJS} 24 fc-iram: ${IRAM_OBJS}
24 ${CC} -o $@ ${IRAM_OBJS} 25 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS}
25 26
26 fc-loadtool: ${LOADTOOL_OBJS} 27 fc-loadtool: ${LOADTOOL_OBJS}
27 ${CC} -o $@ ${LOADTOOL_OBJS} 28 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS}
28 29
29 fc-xram: ${XRAM_OBJS} 30 fc-xram: ${XRAM_OBJS}
30 ${CC} -o $@ ${XRAM_OBJS} 31 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS}
31 32
32 # The loadagent.srec image needs to be installed in the "system" directory 33 # The loadagent.srec image needs to be installed in the "system" directory
33 # where fc-loadtool and fc-xram will find it. However, we have a dilemma: 34 # where fc-loadtool and fc-xram will find it. However, we have a dilemma:
34 # loadagent is built in the ../target-utils tree with the target cross-gcc, 35 # loadagent is built in the ../target-utils tree with the target cross-gcc,
35 # but the logical place to install it is here. The following hack is our 36 # but the logical place to install it is here. The following hack is our