FDD-book/src/chapters/4/mathutils/Makefile
Edson Brandi 763601b5bc
Add Chapter 4 source code examples and exercises
Introduce the first batch of practical code examples for Chapter 4,
covering fundamental C programming.
2025-11-07 23:34:26 +00:00

14 lines
271 B
Makefile

CC = cc
CFLAGS = -Wall -Wextra -std=c99
mathprog: main.o mathutils.o
$(CC) $(CFLAGS) -o mathprog main.o mathutils.o
main.o: main.c mathutils.h
$(CC) $(CFLAGS) -c main.c
mathutils.o: mathutils.c mathutils.h
$(CC) $(CFLAGS) -c mathutils.c
clean:
rm -f *.o mathprog