1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Makefile to build using intermediate object files
#
# This is the NORMAL way big projects are build.

test_count_words:  count_words.o  test_count_words.o
    gcc  -o test_count_words  count_words.o  test_count_words.o

count_words.o:  count_words.c
    gcc  -c  count_words.c

test_count_words.o:  test_count_words.c
    gcc  -c  test_count_words.c


# HIERARCHY OF DEPENCIES
#
# test_count_words
# │
# ├─count_words.o
# │ └─count_words.c
# │
# └─test_count_words.o
#   └─test_count_words.c

© Copyright 2021 Alexander J. Quinn         This content is protected and may not be shared, uploaded, or distributed.