From e3f60d06d45a89ad16831c4ea20bb67277e588b6 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 16 May 2026 14:42:53 +0800 Subject: Created gitignore, makefile, main. --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..59537c7 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC = cc +CFLAGS = -std=c11 -Wall -Wextra -Wpedantic -g -O0 +LDFLAGS = + +HDRS = +SRCS = main.c +OBJS = $(SRCS:.c=.o) +TARGET = glacier + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(OBJS) -o $(TARGET) $(LDFLAGS) + +%.o: %.c $(HDRS) + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJS) $(TARGET) + +.PHONY: all clean -- cgit v1.2.3