Thumbnail

mins/hello-world.git

Clone URL: https://git.buni.party/mins/hello-world.git

commit fe92422a629e992de3b8bb12f46de196cc667599 Author: Abby K <abigail@minneelyyyy.dev> Date: Fri Feb 13 14:14:25 2026 +0000 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/.gitignore @@ -00 +1 @@ +hello diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d458489 --- /dev/null +++ b/Makefile @@ -00 +117 @@ + +OBJS := src/main.o + +.PHONY: all clean install +all: hello + +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +hello: $(OBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJS) + +clean: + rm hello $(OBJS) + +install: + install -m 0755 hello $(PREFIX) diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..b709025 --- /dev/null +++ b/src/main.c @@ -00 +110 @@ +#include <stdio.h> + +int main(int argc, char **argv) { + (void) argc; + (void) argv; + + printf("Hello, world!\n"); + + return 0; +}