1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Rule 'test_print_twos' builds the (executable) file test_print_twos.
test_print_twos:  test_print_twos.o  print_twos.o
    # Link object files to create executable.
    gcc  test_print_twos.o  print_twos.o  -o test_print_twos

# Rule 'test_print_twos.o' builds the (object file) file test_print_twos.o.
test_print_twos.o:  test_print_twos.c
    # Compile test_print_twos.c to an object file test_print_twos.o.
    gcc  -c  test_print_twos.c

# Rule 'print_twos.o' builds the (object file) file print_twos.o.
print_twos.o:  print_twos.c
    # Compile print_twos.c to an object file print_twos.o.
    gcc  -c  print_twos.c

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