# This is a skeleton makefile to simplify building some of these little
# utilities. They probably won't be useful to many users, and they probably
# won't get used on a daily basis, but someone might find them useful for
# tinkering with their gear.

PROGS=	ashctl binlog binreplay lla2ecef motosend

ADDOBJS=../strl.o

all: $(PROGS)

ashctl: ashctl.c
	$(CC) $(CFLAGS) $(ADDOBJS) -o ashctl ashctl.c

binlog: binlog.c
	$(CC) $(CFLAGS) $(ADDOBJS) -o binlog binlog.c

binreplay: binreplay.c
	$(CC) $(CFLAGS) $(ADDOBJS) -o binreplay binreplay.c -lutil

lla2ecef: lla2ecef.c
	$(CC) $(CFLAGS) $(ADDOBJS) -o lla2ecef lla2ecef.c -lm

motosend: motosend.c
	$(CC) $(CFLAGS) $(ADDOBJS) -o motosend motosend.c

clean:
	rm -f $(PROGS) *.o *.core
