Initial commit

This commit is contained in:
2026-02-25 15:38:32 +01:00
commit 14fced76f0
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bin/

19
Makefile Normal file
View File

@@ -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)

5
main.c Normal file
View File

@@ -0,0 +1,5 @@
#include <stdio.h>
int main(int argc, char** argv) {
puts("cool");
}