1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#___________________________________
# VARIABLES
EXECUTABLE=test_count_words
SRC_C=count_words.c
TEST_C=test_count_words.c
ASG_NICKNAME=HW06

#___________________________________
# RULES
$(EXECUTABLE):  $(SRC_C)  $(TEST_C)
    gcc  -o $(EXECUTABLE)  $(SRC_C)  $(TEST_C)

submit:  clean  $(EXECUTABLE)
    264submit  $(ASG_NICKNAME)  $(SRC_C)  $(TEST_C)

clean:
    rm  -f  -v  $(EXECUTABLE)

# The 'submit' rule is like a command or script.  In make terminology, it is referred
# to as a "PHONY" rule.  It must be added to the .PHONY rule at the bottom.

.PHONY: submit

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