comparison loadtools/Makefile @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children b77005f6d315
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 CC= gcc
2 CFLAGS= -O2
3 PROGS= fc-iram fc-loadtool fc-xram fc-compalram
4 INSTBIN=/usr/local/bin
5
6 EXTRA_OBJ= compalload.o
7
8 COMPALRAM_OBJS= compalload.o compalram.o defpath.o sercomm.o ttypassthru.o
9
10 IRAM_OBJS= defpath.o hexdecode.o hwparam.o hwparamstubs.o romload.o \
11 sercomm.o sertool.o srecreader.o ttypassthru.o ${EXTRA_OBJ}
12
13 LOADTOOL_OBJS= crc32tab.o defpath.o flashops.o flcmplboot.o flmain.o flmisc.o \
14 flprogbin.o flprogsrec.o flutil.o hexdecode.o hwparam.o \
15 labaud.o ltdispatch.o ltdump.o ltexit.o lthelp.o ltmain.o \
16 ltmisc.o ltpassthru.o ltscript.o romload.o sercomm.o \
17 srecreader.o tpinterf.o tpinterf2.o tpinterf3.o ${EXTRA_OBJ}
18
19 XRAM_OBJS= chainload.o clmain.o defpath.o hexdecode.o hwparam.o \
20 hwparamstubs.o initscript.o labaud.o romload.o sercomm.o \
21 srecreader.o tpinterf.o ttypassthru.o ${EXTRA_OBJ}
22
23 all: ${PROGS}
24
25 fc-compalram: ${COMPALRAM_OBJS}
26 ${CC} ${CFLAGS} -o $@ ${COMPALRAM_OBJS}
27
28 fc-iram: ${IRAM_OBJS}
29 ${CC} ${CFLAGS} -o $@ ${IRAM_OBJS}
30
31 fc-loadtool: ${LOADTOOL_OBJS}
32 ${CC} ${CFLAGS} -o $@ ${LOADTOOL_OBJS}
33
34 fc-xram: ${XRAM_OBJS}
35 ${CC} ${CFLAGS} -o $@ ${XRAM_OBJS}
36
37 install:
38 mkdir -p ${INSTBIN}
39 install -c ${PROGS} ${INSTBIN}
40 ./install-helpers.sh
41
42 clean:
43 rm -f *.o *.out *errs ${PROGS}