view loadtools/Makefile @ 45:16315ed6401a

init-script logic implemented in fc-xram
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 17 Jun 2013 08:15:30 +0000
parents 5da0cbee2b89
children eb97cfe5e31a
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fc-loadtool fc-sertool fc-xram
SCRIPTS=scripts/pirelli.config scripts/pirelli.init
INSTBIN=/usr/local/bin
INSTSCR=/usr/local/share/freecalypso

SERTOOL_OBJS=	defpath.o hexdecode.o hwparam.o romload.o sercomm.o sertool.o \
		srecreader.o ttypassthru.o

LOADTOOL_OBJS=	crc32tab.o defpath.o hexdecode.o hwparam.o ltdispatch.o \
		ltdump.o ltexit.o ltmain.o ltpassthru.o ltscript.o romload.o \
		sercomm.o srecreader.o tpinterf.o tpinterf2.o

XRAM_OBJS=	chainload.o clmain.o defpath.o hexdecode.o hwparam.o \
		initscript.o romload.o sercomm.o srecreader.o tpinterf.o \
		ttypassthru.o

all:	${PROGS}

fc-sertool:	${SERTOOL_OBJS}
	${CC} -o $@ ${SERTOOL_OBJS}

fc-loadtool:	${LOADTOOL_OBJS}
	${CC} -o $@ ${LOADTOOL_OBJS}

fc-xram:	${XRAM_OBJS}
	${CC} -o $@ ${XRAM_OBJS}

install:
	#install -c ${PROGS} ${INSTBIN}
	install -c ${SCRIPTS} ${INSTSCR}

clean:
	rm -f *.o *.out *errs ${PROGS}