Files
auth_service_c/Makefile
T
wt 4c7a156723
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
added config and tls
2025-08-29 17:46:58 +07:00

25 lines
523 B
Makefile

CC = gcc
CFLAGS = -Wall -g -std=gnu2x -DMG_TLS=MG_TLS_BUILTIN
LDFLAGS =
LIBS = -lpthread -lcrypto -lsqlite3
INCLUDES = -I./src/lib -I./src
SRCS = $(wildcard src/*.c src/lib/*.c)
OBJS = $(SRCS:.c=.o)
TARGET = auth_service
BUILD_DIR=./build
CROSS_COMPILE =
all: $(TARGET)
$(TARGET): $(OBJS)
$(CROSS_COMPILE)$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
%.o: %.c
$(CROSS_COMPILE)$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET) $(shell find . -type f -name '*.log') users.db
test: $(TARGET)
bash ./tests.sh