Files
auth_service_c/Makefile
T
wt f2a11fa1db
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 7s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 7s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 6s
added tests
2025-08-24 15:52:44 +07:00

25 lines
504 B
Makefile

CC = gcc
CFLAGS = -Wall -g -std=gnu2x
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) test
$(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