From 14fced76f05ad7da302293f27d405792e181006a Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 25 Feb 2026 15:38:32 +0100 Subject: [PATCH] Initial commit --- .gitignore | 1 + Makefile | 19 +++++++++++++++++++ main.c | 5 +++++ 3 files changed, 25 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..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ef0bd85 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: all clean + +SRC := main.c +BINDIR := bin +OBJ := $(SRC:%.c=$(BINDIR)/%.o) + +all: c2 + +clean: + rm -rv bin + +c2: $(OBJ) + gcc -o $@ $< + +$(BINDIR)/%.o: %.c + gcc -c -o $@ $< + +$(BINDIR): + mkdir -p $(BINDIR) diff --git a/main.c b/main.c new file mode 100644 index 0000000..b3e1add --- /dev/null +++ b/main.c @@ -0,0 +1,5 @@ +#include + +int main(int argc, char** argv) { + puts("cool"); +}