usaa24/sk2/Makefile
2025-02-11 21:27:44 +01:00

17 lines
302 B
Makefile

CC=gcc
CFLAGS=-Wall -Wextra -std=c11
OBJ=main.o calculator.o
all: calculator
calculator: $(OBJ)
$(CC) $(CFLAGS) -o calculator $(OBJ) -lm
main.o: main.c calculator.h
$(CC) $(CFLAGS) -c main.c
calculator.o: calculator.c calculator.h
$(CC) $(CFLAGS) -c calculator.c
clean:
rm -f calculator $(OBJ)