-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.39 KB
/
Copy pathMakefile
File metadata and controls
47 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#Variables
CC = g++
CFLAGS = -g -Wall -std=c++17
# Linking all the files and run the tests. Use your own header and
# object files.
main: check.cc checkbook.cc date.cc commented_main.cc
$(CC) check.cc checkbook.cc date.cc commented_main.cc -o commented_main.exe
run_main: commented_main.out
./commented_main.exe
commented_main_debug.out: check.cc checkbook.cc date.cc commented_main.cc
$(CC) -g check.cc checkbook.cc date.cc commented_main.cc -o commented_main_debug.out
testcheck.out: check.cc testcheck.cc date.cc
$(CC) $(CFLAGS) check.cc testcheck.cc date.cc -o testcheck.out
testcheckbook.out: check.cc checkbook.cc date.cc
$(CC) check.cc checkbook.cc date.cc -o testcheckbook.out
testdate.out: date.cc testdate.cc
$(CC) $(CFLAGS) date.cc testdate.cc -o testcheck.out
test_file_read.out: test_file_read.cc
$(CC) $(CFLAGS) test_file_read.cc -o test_file_read.out
date.o: date.cc date.h
$(CC) -c $(CFLAGS) date.cc -o date.o
check.o: check.cc check.h date.o
$(CC) -c $(CFLAGS) check.cc -o check.o
checkbook.o: checkbook.cc checkbook.h
$(CC) -c $(CFLAGS) checkbook.cc -o checkbook.o
testcheck.o: testcheck.cc check.h
$(CC) -c $(CFLAGS) testcheck.cc -o testcheck.o
test_check.out: check.cc testcheck.cc date.cc
$(CC) $(CFLAGS) check.cc testcheck.cc date.cc -o test_check.out
test_file_read.out: test_file_read.cc
$(CC) $(CFLAGS) test_file_read.cc -o test_file_read.out
clean:
rm -rf *.o *.out