4
0

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

This commit is contained in:
Louis Gallet 2024-09-29 22:59:42 +02:00
parent 4bff0893d9
commit 7b424278e8
Signed by: lgallet
GPG Key ID: 84D3DF1528A84511
2 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View File

@ -175,7 +175,6 @@ CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json

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