Files
wt aeefe1ea7f
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Waiting to run
some optimization
2025-02-14 11:54:07 +07:00

37 lines
736 B
Makefile

CXX=g++
CXXFLAGS=-Wall \
-l ssl \
-l crypto \
-I src/libs \
-I src/auth \
-I src/security \
-I src/users \
-I src
SOURCES=src/auth_service.cpp \
src/auth/auth.cpp \
src/auth/verify_auth.cpp \
src/security/cors.cpp \
src/users/access_request.cpp \
src/users/add_user.cpp \
src/users/change_password.cpp \
src/users/change_user.cpp \
src/users/delete_user.cpp \
src/users/get_all_users.cpp \
src/users/get_user.cpp \
src/AuthService/AuthService.cpp
TARGET=auth_service
BUILD_DIR=build
default: all
all: build
.PHONY: build
build:
@if [ ! -d $(BUILD_DIR) ]; then \
mkdir $(BUILD_DIR); \
fi
$(CXX) -o $(BUILD_DIR)/$(TARGET) $(SOURCES) $(CXXFLAGS)
clean:
@if [ -d $(BUILD_DIR) ]; then \
rm -rv $(BUILD_DIR); \
fi