socket read with timeout, logging
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
target = r
|
||||
CXX = g++
|
||||
CXX_FLAGS := -std=c++14 -Iloguru
|
||||
LD_FLAGS := -lpthread -ldl
|
||||
BUILD := ./build
|
||||
OBJS := $(BUILD)/client.o $(BUILD)/loguru.o
|
||||
|
||||
all: $(target)
|
||||
|
||||
$(BUILD)/%.o: %.cc
|
||||
@mkdir -p $(BUILD)
|
||||
g++ -c $< -o $@ $(CXX_FLAGS)
|
||||
|
||||
$(BUILD)/loguru.o:
|
||||
@mkdir -p $(BUILD)
|
||||
g++ -c loguru/loguru.cpp -Iloguru -o $@ $(CXX_FLAGS)
|
||||
|
||||
r: $(OBJS)
|
||||
g++ -o $@ $^ $(LD_FLAGS)
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD) r
|
||||
Reference in New Issue
Block a user