SRC=$(wildcard *.cpp)
TARGETS = $(patsubst %.cpp, %, $(SRC))
LIB=libxele_futures_trader_api.so

all: debug $(TARGETS)

debug:
	@echo $(SRC)
	@echo $(TARGETS)

$(TARGETS):%:%.cpp
	g++ -Wall -O3 -g -std=c++11 $< -lpthread -lrt -L../lib -l:$(LIB) -Wl,-rpath=../lib -I../include -o $@

.PHONY:clean
clean:
	rm -f $(TARGETS)
