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) -static-libgcc -static-libstdc++ -o $(COMMAND.qem) $(OBJECTS.qem) $(BIG_LIBRARY) -lwsock32 -lws2_32 -lwinmm -L. -lpcre2-8 $(BIG_LIBRARY) $(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



