Files
auth_service_c/Makefile
T
wt e2b06fbc5d
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 7s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 6s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 6s
updated project name and added actions.yaml
2025-08-24 14:38:58 +07:00

22 lines
418 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)
$(TARGET): $(OBJS)
$(CROSS_COMPILE)$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
%.o: %.c
$(CROSS_COMPILE)$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)