export COMMAND.qem = qem

export SOURCES.qem = \
	qem.cc \
	qem_options.cc \
	scheduler.cc

export BASES.qem	= $(basename $(SOURCES.qem))
export OBJECTS.qem	= $(addsuffix .o,$(BASES.qem))

.PHONY:	all.qem
all.qem: $(COMMAND.qem)

$(COMMAND.qem): $(OBJECTS.qem) $(BIG_LIBRARY)
	$(CXX) $(LDFLAGS) -o $(COMMAND.qem) $(OBJECTS.qem) $(BIG_LIBRARY) @LIBS@  `pkg-config --cflags --libs libpcre2-8` $(BIG_LIBRARY)

.PHONY: install.qem
install.qem: @QPHOME@/bin/$(COMMAND.qem)

@QPHOME@/bin/$(COMMAND.qem): $(COMMAND.qem)
	@INSTALL@ $(COMMAND.qem) @QPHOME@/bin

.PHONY:	clean.qem
clean.qem:
	$(RM) $(OBJECTS.qem) $(COMMAND.qem) Makefile.qem


