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. --- .gitignore | 7 +++++++ Makefile | 21 +++++++++++++++++++++ main.c | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ecbfec0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +**/*a.out +**/*.swp +**/*.core + +**/*.o + +glacier 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 diff --git a/main.c b/main.c new file mode 100644 index 0000000..31dbf45 --- /dev/null +++ b/main.c @@ -0,0 +1,4 @@ +int main(void) +{ + return 0; +} -- cgit v1.2.3