summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-05-16 14:42:53 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-05-16 14:42:53 +0800
commite3f60d06d45a89ad16831c4ea20bb67277e588b6 (patch)
treec51eed80d2dac2df0756c6fb4ef36664ccec4197
downloadglacier-master.tar.gz
Created gitignore, makefile, main.HEADmaster
-rw-r--r--.gitignore7
-rw-r--r--Makefile21
-rw-r--r--main.c4
3 files changed, 32 insertions, 0 deletions
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;
+}