usaa24/sk2/Makefile

17 lines
302 B
Makefile
Raw Permalink Normal View History

2025-01-31 18:14:04 +00:00
CC=gcc
2025-02-11 20:27:44 +00:00
CFLAGS=-Wall -Wextra -std=c11
2025-01-31 18:14:04 +00:00
OBJ=main.o calculator.o
all: calculator
2025-01-31 18:26:10 +00:00
calculator: $(OBJ)
2025-02-11 20:27:44 +00:00
$(CC) $(CFLAGS) -o calculator $(OBJ) -lm
2025-01-31 18:14:04 +00:00
2025-02-11 20:27:44 +00:00
main.o: main.c calculator.h
$(CC) $(CFLAGS) -c main.c
2025-01-31 18:14:04 +00:00
2025-02-11 20:27:44 +00:00
calculator.o: calculator.c calculator.h
$(CC) $(CFLAGS) -c calculator.c
2025-02-01 16:19:29 +00:00
2025-02-11 20:27:44 +00:00
clean:
rm -f calculator $(OBJ)