Add boilerplate.

This commit is contained in:
Rasmus Rasmussen 2025-03-09 15:36:40 +01:00
parent 8bf03def63
commit fbed68ebe0
2 changed files with 24 additions and 0 deletions

16
makefile Normal file
View File

@ -0,0 +1,16 @@
# Makefile for hello.c
CC = gcc # C compiler
CFLAGS = -O2 # Compiler flags (optimization level)
main: main.o
$(CC) $(CFLAGS) -o $@ $^
main.o: main.c
$(CC) $(CFLAGS) -c $<
run:
./main
clean:
rm -f *.o

8
src/main.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
}