feat: ready to go
This commit is contained in:
parent
2cee4e9b04
commit
1e29d0707a
2 changed files with 21 additions and 0 deletions
16
2024/Day1/Makefile
Normal file
16
2024/Day1/Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
CC = gcc
|
||||
CC_FLAGS = -Wall -Wextra -Werror -Wpedantic -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function
|
||||
CC_LINK_FLAGS =
|
||||
|
||||
.PHONY: all run clean
|
||||
all: run
|
||||
|
||||
run: build
|
||||
./target/main.o
|
||||
|
||||
build: src/main.c
|
||||
$(CC) -o target/main.o src/main.c $(CC_FLAGS) $(CC_LINK_FLAGS)
|
||||
chmod u+x target/main.o
|
||||
|
||||
clean:
|
||||
rm -r target/*
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#include <stdio.h>
|
||||
int main(void) {
|
||||
printf("TEST");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue