comparison loadtools/Makefile @ 250:8c011177adb9

loadtools reworked to use factored-out libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 23:07:01 +0000
parents 064d4eedb3a6
children 90d7c360a614
comparison
equal deleted inserted replaced
249:d0a4c05d98dc 250:8c011177adb9
5 INSTCONF=/opt/freecalypso/loadtools 5 INSTCONF=/opt/freecalypso/loadtools
6 INSTHELP=/opt/freecalypso/helpfiles 6 INSTHELP=/opt/freecalypso/helpfiles
7 7
8 EXTRA_OBJ= compalload.o 8 EXTRA_OBJ= compalload.o
9 9
10 COMPALRAM_OBJS= compalload.o compalram.o defpath.o sercomm.o ttypassthru.o 10 COMPALRAM_OBJS= compalload.o compalram.o defpath.o ttypassthru.o
11 11
12 IRAM_OBJS= defexitstub.o defpath.o flashstubs.o hexdecode.o hwparam.o \ 12 IRAM_OBJS= defexitstub.o defpath.o flashstubs.o hexdecode.o hwparam.o \
13 romload.o secondprog.o sercomm.o sertool.o srecreader.o \ 13 romload.o secondprog.o sertool.o srecreader.o ttypassthru.o \
14 ttypassthru.o ${EXTRA_OBJ} 14 ${EXTRA_OBJ}
15 15
16 LOADTOOL_OBJS= crc32tab.o defpath.o flashops.o flcmplboot.o flmain.o flmisc.o \ 16 LOADTOOL_OBJS= crc32tab.o defpath.o flashops.o flcmplboot.o flmain.o flmisc.o \
17 flprogbin.o flprogsrec.o flutil.o hexdecode.o hwparam.o \ 17 flprogbin.o flprogsrec.o flutil.o hexdecode.o hwparam.o \
18 labaud.o ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o \ 18 labaud.o ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o \
19 ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \ 19 ltmisc.o ltpassthru.o ltscript.o romload.o srecreader.o \
20 srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ} 20 tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
21 21
22 XRAM_OBJS= chainload.o clmain.o defexitstub.o defpath.o flashstubs.o \ 22 XRAM_OBJS= chainload.o clmain.o defexitstub.o defpath.o flashstubs.o \
23 hexdecode.o hwparam.o initscript.o labaud.o romload.o \ 23 hexdecode.o hwparam.o initscript.o labaud.o romload.o \
24 secondprog.o sercomm.o srecreader.o tpinterf.o ttypassthru.o \ 24 secondprog.o srecreader.o tpinterf.o ttypassthru.o ${EXTRA_OBJ}
25 ${EXTRA_OBJ}
26 25
27 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \ 26 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \
28 hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \ 27 hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \
29 sercomm.o srecreader.o tpinterf.o ${EXTRA_OBJ} 28 srecreader.o tpinterf.o ${EXTRA_OBJ}
29
30 LIBSERIAL= ../libserial/libserial.a
30 31
31 all: ${PROGS} 32 all: ${PROGS}
32 33
33 fc-compalram: ${COMPALRAM_OBJS} 34 fc-compalram: ${COMPALRAM_OBJS} ${LIBSERIAL}
34 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS} 35 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS} ${LIBSERIAL}
35 36
36 fc-iram: ${IRAM_OBJS} 37 fc-iram: ${IRAM_OBJS} ${LIBSERIAL}
37 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS} 38 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS} ${LIBSERIAL}
38 39
39 fc-loadtool: ${LOADTOOL_OBJS} 40 fc-loadtool: ${LOADTOOL_OBJS} ${LIBSERIAL}
40 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS} 41 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS} ${LIBSERIAL}
41 42
42 fc-xram: ${XRAM_OBJS} 43 fc-xram: ${XRAM_OBJS} ${LIBSERIAL}
43 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} 44 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} ${LIBSERIAL}
44 45
45 fc-buzplay: ${BUZPLAY_OBJS} 46 fc-buzplay: ${BUZPLAY_OBJS} ${LIBSERIAL}
46 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} 47 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBSERIAL}
47 48
48 install: 49 install:
49 mkdir -p ${INSTBIN} 50 mkdir -p ${INSTBIN}
50 install -c ${PROGS} ${INSTBIN} 51 install -c ${PROGS} ${INSTBIN}
51 mkdir -p ${INSTCONF} 52 mkdir -p ${INSTCONF}