fix: 🙈 Push the Makefile (why it was on the gitingore??)
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal 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
|
Reference in New Issue
Block a user