-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (51 loc) · 2.85 KB
/
Makefile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
gcc_opt = -ansi -pedantic -g -c -D DEBUG
#all target
all: stpre_inventory.zip store_inventory
#zip file target, the things that's submitted to carmen
store_inventory.zip: Makefile store_inventory.c inventory.h read_inventory.c insert.c get_option.c getNode.c inList.c delete_node.c revenue_one.c cost_two.c investment_three.c profit_four.c sold_five.c avgProfit_six.c instock_seven.c outstock_eight.c dept_nine.c add_ten.c delete_eleven.c exit_twelve.c
zip store_inventory.zip Makefile store_inventory.c inventory.h read_inventory.c insert.c get_option.c getNode.c inList.c delete_node.c revenue_one.c cost_two.c investment_three.c profit_four.c sold_five.c avgProfit_six.c instock_seven.c outstock_eight.c dept_nine.c add_ten.c delete_eleven.c exit_twelve.c
#executable target
store_inventory: store_inventory.o read_inventory.o insert.o get_option.o getNode.o inList.o delete_node.o revenue_one.o cost_two.o investment_three.o profit_four.o sold_five.o avgProfit_six.o instock_seven.o outstock_eight.o dept_nine.o add_ten.o delete_eleven.o exit_twelve.o
gcc store_inventory.o read_inventory.o insert.o get_option.o getNode.o inList.o delete_node.o revenue_one.o cost_two.o investment_three.o profit_four.o sold_five.o avgProfit_six.o instock_seven.o outstock_eight.o dept_nine.o add_ten.o delete_eleven.o exit_twelve.o -o lab4
#.o files for the .c main file and 12 .c option files and misc. function .c files
store_inventory.o: store_inventory.c inventory.h
gcc $(gcc_opt) store_inventory.c
read_inventory.o: read_inventory.c inventory.h
gcc $(gcc_opt) read_inventory.c
insert.o: insert.c inventory.h
gcc $(gcc_opt) insert.c
get_option.o: get_option.c inventory.h
gcc $(gcc_opt) get_option.c
getNode.o: getNode.c inventory.h
gcc $(gcc_opt) getNode.c
inList.o: inList.c inventory.h
gcc $(gcc_opt) inList.c
delete_node.o: delete_node.c inventory.h
gcc $(gcc_opt) delete_node.c
revenue_one.o: revenue_one.c inventory.h
gcc $(gcc_opt) revenue_one.c
cost_two.o: cost_two.c inventory.h
gcc $(gcc_opt) cost_two.c
investment_three.o: investment_three.c inventory.h
gcc $(gcc_opt) investment_three.c
profit_four.o: profit_four.c inventory.h
gcc $(gcc_opt) profit_four.c
sold_five.o: sold_five.c inventory.h
gcc $(gcc_opt) sold_five.c
avgProfit_six.o: avgProfit_six.c inventory.h
gcc $(gcc_opt) avgProfit_six.c
instock_seven.o: instock_seven.c inventory.h
gcc $(gcc_opt) instock_seven.c
outstock_eight.o: outstock_eight.c inventory.h
gcc $(gcc_opt) outstock_eight.c
dept_nine.o: dept_nine.c inventory.h
gcc $(gcc_opt) dept_nine.c
add_ten.o: add_ten.c inventory.h
gcc $(gcc_opt) add_ten.c
delete_eleven.o: delete_eleven.c inventory.h
gcc $(gcc_opt) delete_eleven.c
exit_twelve.o: exit_twelve.c inventory.h
gcc $(gcc_opt) exit_twelve.c
#clean target to delete all .o files and lab4 executable as well as the lab4.zip file
clean:
rm -rf *.o store_inventory store_inventory.zip