# Be careful about editing this file directly.  It is a master file
# that you may have reached by following a link from another Makefile.
# You may need to unlink that Makefile, copy this one into it's place
# and then edit.

BINARIES = ${BINARY}
BINARY = qlog query
SRCS = ${BINARIES:%=%.c}
OBJS = ${SRCS:%.c=%.o}
DEST = ../bin/${ARCH}

all: ${BINARIES}

# truncate following at ":" if there is only one object file.
# If there are several binaries, make an entry for each.
query: query.o
	cc -o $@ $<

qlog: qlog.o
	cc -o $@ $<

install: ${BINARIES}
	mkdir -p ${DEST}
	mv ${BINARIES} ${DEST}

clean:; rm -f ${OBJS}

spotless:; rm -f ${OBJS} ${BINARIES}


.KEEP_STATE:
