File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11NAME := webserv
2+ CONF := project.conf
23
34OBJ_DIR := obj
45SRC_DIR := src
56INC_DIR := include
67BIN_DIR := bin
8+ CONF_DIR := conf
79
810SRC += main.cpp
911SRC += global.cpp
@@ -105,6 +107,9 @@ fsanitize:
105107custom :
106108 make CXXFLAGS=" $( ARG) $( CXXFLAGS) "
107109
110+ run :
111+ $(BIN_DIR ) /$(NAME ) $(CONF_DIR ) /$(CONF )
112+
108113lines :
109114 @wc -l $(SRC_DIR ) /* .cpp $(INC_DIR ) /* .hpp $(SRC_DIR ) /* /* .cpp $(INC_DIR ) /* /* .hpp | sort
110115
@@ -118,6 +123,7 @@ help:
118123 @echo " performance : Build with optimization flags (-O3)"
119124 @echo " debug : Build with debugging symbols (-g)"
120125 @echo " custom : Build with custom CXXFLAGS (e.g., ARG='-DDEBUG')"
126+ @echo " run : Run webserv binary with project configuration file"
121127 @echo " lines : Count lines of code in source files"
122128
123129.PHONY : all clean fclean re performance debug fsanitize custom flamegraph jmeter lines help
You can’t perform that action at this time.
0 commit comments