view miscutil/Makefile @ 89:f4619719834f

target-utils/libc: our own memcpy assembly implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 28 Oct 2016 22:55:51 +0000
parents 819335e06fd1
children a72bbc3ace09
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fc-fr2tch fc-rgbconv fc-serterm fc-tch2fr imei-luhn
SCRIPTS=c139explore pirexplore
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

FR2TCH_OBJS=	fc-fr2tch.o gsm0610.o
TCH2FR_OBJS=	fc-tch2fr.o gsm0610.o
SERTERM_OBJS=	fc-serterm.o openport.o ttypassthru.o

fc-fr2tch:	${FR2TCH_OBJS}
	${CC} ${CFLAGS} -o $@ ${FR2TCH_OBJS}

fc-rgbconv:	fc-rgbconv.c
	${CC} ${CFLAGS} -o $@ $@.c

fc-serterm:	${SERTERM_OBJS}
	${CC} ${CFLAGS} -o $@ ${SERTERM_OBJS}

ttypassthru.o:	../loadtools/ttypassthru.c
	${CC} ${CFLAGS} -c -o $@ $<

fc-tch2fr:	${TCH2FR_OBJS}
	${CC} ${CFLAGS} -o $@ ${TCH2FR_OBJS}

imei-luhn:	imei-luhn.c
	${CC} ${CFLAGS} -o $@ $@.c

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${SCRIPTS} ${INSTBIN}

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