Initial commit

This commit is contained in:
2025-02-14 23:50:25 +03:00
commit 22bf3c985b
3 changed files with 67 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
CC = gcc
CFLAGS = -Wall
BUILDDIR = .build/
TARGET = $(BUILDDIR)program
SRCS = src/
OBJS=$(patsubst $(SRCS)%.c, $(BUILDDIR)%.o, $(wildcard $(SRCS)*.c))
all: checkbuild $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
$(BUILDDIR)%.o: $(SRCS)%.c
$(CC) $(CFLAGS) -c $< -o $@
checkbuild:
./checkbuild.sh
clean:
rm -rf $(BUILDDIR)*