OBJ=queue queued qs qrm qmaster defer

all: ${OBJ}

queue: queue.o optcmp.o com.o readconf.o cspawn.o lock.o \
	newstring.o infile.o getrload.o selhost.o xfputs.o
	${CC} -o queue queue.o com.o optcmp.o readconf.o cspawn.o lock.o \
		newstring.o infile.o getrload.o selhost.o xfputs.o

queued: queued.o readconf.o enqueue.o newstring.o getstr.o \
	cspawn.o lock.o showqueue.o dequeue.o infile.o xfputs.o \
	getload.o
	${CC} -o queued queued.o readconf.o enqueue.o newstring.o getstr.o \
		cspawn.o lock.o showqueue.o dequeue.o infile.o xfputs.o \
		getload.o

qs: qs.o com.o readconf.o newstring.o
	${CC} -o qs qs.o com.o readconf.o newstring.o

qrm: qrm.o com.o readconf.o newstring.o
	${CC} -o qrm qrm.o com.o readconf.o newstring.o

qmaster: qmaster.o readconf.o newstring.o getrload.o infile.o
	${CC} -o qmaster qmaster.o readconf.o newstring.o getrload.o infile.o

defer: defer.o
	${CC} -o defer defer.o

clean:
	rm -f *.o ${OBJ}
