comparison loadtools/Makefile @ 548:2e4ab60919b9

fc-dspromdump front end program implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Oct 2019 22:08:38 +0000
parents 0dd2c87c1b63
children b22cc34b6fc9
comparison
equal deleted inserted replaced
547:a28e4ddd09a6 548:2e4ab60919b9
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram fc-buzplay 3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram fc-buzplay fc-dspromdump
4 4
5 INSTALL_PREFIX= /opt/freecalypso 5 INSTALL_PREFIX= /opt/freecalypso
6 6
7 INSTBIN=${INSTALL_PREFIX}/bin 7 INSTBIN=${INSTALL_PREFIX}/bin
8 INSTCONF=${INSTALL_PREFIX}/loadtools 8 INSTCONF=${INSTALL_PREFIX}/loadtools
28 28
29 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \ 29 BUZPLAY_OBJS= bpdispatch.o bpmain.o buzplay.o defpath.o flashstubs.o \
30 hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \ 30 hexdecode.o hwparam.o labaud.o ltexit.o ltpassthru.o romload.o \
31 srecreader.o tpinterf.o ${EXTRA_OBJ} 31 srecreader.o tpinterf.o ${EXTRA_OBJ}
32 32
33 ROMDUMP_OBJS= defpath.o flashstubs.o hexdecode.o hwparam.o labaud.o ltexit.o \
34 romdump.o romload.o srecreader.o tpinterf.o tpinterf2.o \
35 ${EXTRA_OBJ}
36
33 LIBSERIAL= ../libserial/libserial.a 37 LIBSERIAL= ../libserial/libserial.a
34 38
35 all: ${PROGS} 39 all: ${PROGS}
36 40
37 fc-compalram: ${COMPALRAM_OBJS} ${LIBSERIAL} 41 fc-compalram: ${COMPALRAM_OBJS} ${LIBSERIAL}
47 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} ${LIBSERIAL} 51 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS} ${LIBSERIAL}
48 52
49 fc-buzplay: ${BUZPLAY_OBJS} ${LIBSERIAL} 53 fc-buzplay: ${BUZPLAY_OBJS} ${LIBSERIAL}
50 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBSERIAL} 54 ${CC} ${CFLAGS} -o $@ ${BUZPLAY_OBJS} ${LIBSERIAL}
51 55
56 fc-dspromdump: ${ROMDUMP_OBJS} ${LIBSERIAL}
57 ${CC} ${CFLAGS} -o $@ ${ROMDUMP_OBJS} ${LIBSERIAL}
58
52 install: 59 install:
53 mkdir -p ${INSTBIN} 60 mkdir -p ${INSTBIN}
54 install -c ${PROGS} ${INSTBIN} 61 install -c ${PROGS} ${INSTBIN}
55 mkdir -p ${INSTCONF} 62 mkdir -p ${INSTCONF}
56 install -c -m 644 scripts/* ${INSTCONF} 63 install -c -m 644 scripts/* ${INSTCONF}