mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Introduce the first batch of practical code examples for Chapter 4, covering fundamental C programming.
14 lines
271 B
Makefile
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
|