-
Notifications
You must be signed in to change notification settings - Fork 26
/
makefile
58 lines (40 loc) · 1.38 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
compiler = gcc
versions = -std=c99
object = authenticate.o category.o customer.o decorate.o inventory.o main.o personnel.o pos.o promotion.o purchase.o report.o settings.o support.o systemcall.o transaction.o
exec_file = POS-System
$(exec_file): $(object)
$(compiler) $(versions) $(object) -o $(exec_file) -lm
-rm *.o
authenticate.o: authenticate.c main.h
$(compiler) $(versions) -c authenticate.c
category.o: category.c main.h
$(compiler) $(versions) -c category.c
customer.o: customer.c main.h
$(compiler) $(versions) -c customer.c
decorate.o: decorate.c main.h
$(compiler) $(versions) -c decorate.c
inventory.o: inventory.c main.h
$(compiler) $(versions) -c inventory.c
main.o: main.c main.h
$(compiler) $(versions) -c main.c
personnel.o: personnel.c main.h
$(compiler) $(versions) -c personnel.c
pos.o: pos.c main.h
$(compiler) $(versions) -c pos.c
promotion.o: promotion.c main.h
$(compiler) $(versions) -c promotion.c
purchase.o: purchase.c main.h
$(compiler) $(versions) -c purchase.c
report.o: report.c main.h
$(compiler) $(versions) -c report.c
settings.o: settings.c main.h
$(compiler) $(versions) -c settings.c
support.o: support.c main.h
$(compiler) $(versions) -c support.c
systemcall.o: systemcall.c main.h
$(compiler) $(versions) -c systemcall.c
transaction.o: transaction.c main.h
$(compiler) $(versions) -c transaction.c
.PHONY : clean
run:
./$(exec_file)