fix: 🙈 Push the Makefile (why it was on the gitingore??)

This commit is contained in:
2024-09-29 22:59:42 +02:00
parent 4bff0893d9
commit 7b424278e8
2 changed files with 23 additions and 1 deletions

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
CC := gcc
CCFLAGS := -pedantic -std=c99
OBJ := main.o
TARGET := main
all: main use
main: $(OBJ)
$(CC) $(CCFLAGS) $(OBJ) -o $(TARGET)
./main
$(OBJ): main.c
$(CC) $(CCFLAGS) -c main.c -o $(OBJ)
use: use.o
$(CC) $(CCFLAGS) use.o -o use
use.o: use.c
$(CC) $(CCFLAGS) -c use.c -o use.o
.PHONY: clean
clean:
rm -f $(TARGET) $(OBJ) use.o use