first approximation of the parser
This commit is contained in:
@@ -50,14 +50,30 @@ CLANG_STDLIB ?= -stdlib=libc++
|
||||
# find returns files in filesystem order, which is not the same on every
|
||||
# machine. sort keeps the compile and link lines stable, so build logs and
|
||||
# clang-tidy output stay comparable.
|
||||
SRCS := $(sort $(shell find $(SRC_DIR) -type f -name '*.cpp'))
|
||||
OBJS := $(SRCS:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o)
|
||||
#SRCS := $(sort $(shell find $(SRC_DIR) -type f -name '*.cpp'))
|
||||
|
||||
SRCS := src/Log.cpp src/main.cpp src/Server.cpp \
|
||||
src/config/Config.cpp src/config/ConfigurationParser.cpp src/config/LocationConfig.cpp src/config/ServerConfig.cpp \
|
||||
src/event/Epoll.cpp src/event/EventToken.cpp \
|
||||
src/net/ByteBuffer.cpp src/net/Connection.cpp src/net/FileDescriptor.cpp src/net/Listener.cpp src/net/PauseMask.cpp src/net/SlotPool.cpp
|
||||
|
||||
# src/http/HttpStatus.cpp \
|
||||
|
||||
|
||||
OBJS := $(SRCS:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o)
|
||||
# Make only knows that obj/main.o comes from src/main.cpp, so editing Log.hpp
|
||||
# would leave the old main.o in place. Each .d adds the missing line, obj/main.o
|
||||
# also depends on include/Log.hpp, and -include at the bottom pulls them in.
|
||||
DEPS := $(OBJS:.o=.d)
|
||||
HDRS := $(sort $(shell find $(INC_DIR) $(SRC_DIR) -type f \
|
||||
\( -name '*.hpp' -o -name '*.tpp' \)))
|
||||
HDRS := include/config/Config.hpp include/config/ConfigurationParser.hpp include/config/LocationConfig.hpp include/config/ServerConfig.hpp \
|
||||
include/event/Epoll.hpp include/event/EventToken.hpp \
|
||||
include/http/HttpStatus.hpp \
|
||||
include/net/ByteBuffer.hpp include/net/Connection.hpp include/net/FileDescriptor.hpp include/net/Listener.hpp include/net/PauseMask.hpp include/net/SlotPool.hpp \
|
||||
include/Log.hpp include/Result.hpp include/Server.hpp \
|
||||
|
||||
|
||||
#HDRS := $(sort $(shell find $(INC_DIR) $(SRC_DIR) -type f \
|
||||
# \( -name '*.hpp' -o -name '*.tpp' \)))
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user